Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion Error #21

Open
anandhiray opened this issue Nov 25, 2022 · 1 comment
Open

Assertion Error #21

anandhiray opened this issue Nov 25, 2022 · 1 comment

Comments

@anandhiray
Copy link

File "quick_test.py", line 28, in
assert args.sr_size[0] / lr.size(2) > 1 and args.sr_size[0] / lr.size(2) <= 4
AssertionError

Can you help me fix the above issue I get when I try the quick_test.py?
Thank you!

@breknddone
Copy link

breknddone commented Apr 14, 2023

Because your magnification or reduction factor exceeds 4 or is less than 1,You can see the comment on line 26 to 27 of quick_test.py:

model is trained on scale factors in range [1, 4]
one can also try out-of-distribution scale factors but the results may be

So you can delete the assert statement on lines 28-29 to solve this problem, but this may cause unsatisfactory results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants