Skip to content

Commit

Permalink
[Fix] skip restorer's unit test when torch <= 1.5.1 (#1607)
Browse files Browse the repository at this point in the history
skip restorer's unit test when torch <= 1.5.1
  • Loading branch information
LeoXing1996 authored Jan 19, 2023
1 parent 3a64977 commit 8de2721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_models/test_restorers/test_basic_restorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_basic_restorer():
# evaluation with metrics must have gt images
restorer(lq=inputs, test_mode=True)

if version.parse(torch.__version__) <= version.parse('1.5.1'):
if version.parse(torch.__version__) > version.parse('1.5.1'):
with tempfile.TemporaryDirectory() as tmpdir:
outputs = restorer(
**data_batch,
Expand Down

0 comments on commit 8de2721

Please sign in to comment.