huawei-noah / Pretrained-IPT

Apache License 2.0
424 stars 63 forks source link

NameError: name 'model' is not defined #16

Closed amateurbo closed 1 year ago

amateurbo commented 2 years ago

When I enter “python main.py --dir_data datasets --pretrain models --data_test Set5+Set14+B100+Urban100 --scale 2+3+4” The following error occurs:

Traceback (most recent call last): File "main.py", line 45, in main() File "main.py", line 24, in main _model = model.Model(args, checkpoint) NameError: name 'model' is not defined

What is the reason for this? How to solve it?

HantingChen commented 2 years ago

Thanks for the feedback. We have fixed the bug.