Skip to content

Commit

Permalink
Update test_sr_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
the-database committed Oct 6, 2024
1 parent e8ac6f6 commit bb5113c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_models/test_sr_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def test_srmodel(monkeypatch: MonkeyPatch) -> None:
opt.use_amp = False
opt.path.pretrain_network_g = None
opt.path.pretrain_network_g_ema = None
assert opt.val is not None
opt.val.val_enabled = True
opt.val.metrics_enabled = True

# build model
model = SRModel(opt)
Expand Down

0 comments on commit bb5113c

Please sign in to comment.