Skip to content

Commit

Permalink
feat: support VSR
Browse files Browse the repository at this point in the history
  • Loading branch information
Tohrusky committed Oct 9, 2024
1 parent d547425 commit 714b2fe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_iconvsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@
DEVICE = get_device() if sys.platform != "darwin" else torch.device("cpu")


@pytest.mark.skipif(os.environ.get("GITHUB_ACTIONS") != "true", reason="Skip on local test")
class Test_IconVSR:
def test_load(self) -> None:
for k in [ConfigType.IconVSR_REDS_4x, ConfigType.IconVSR_Vimeo90K_BD_4x, ConfigType.IconVSR_Vimeo90K_BI_4x]:
cfg: BaseConfig = AutoConfig.from_pretrained(k)
model: VSRBaseModel = AutoModel.from_config(config=cfg, fp16=False, device=DEVICE)
assert model is not None

@pytest.mark.skipif(os.environ.get("GITHUB_ACTIONS") != "true", reason="Skip on local test")
def test_official(self) -> None:
img = load_image()
imgList = [img, img, img, img, img, img, img]
Expand Down

0 comments on commit 714b2fe

Please sign in to comment.