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

sr_model.py里有个idx变量错误 #10

Open
eblis88 opened this issue Jan 17, 2024 · 1 comment
Open

sr_model.py里有个idx变量错误 #10

eblis88 opened this issue Jan 17, 2024 · 1 comment

Comments

@eblis88
Copy link

eblis88 commented Jan 17, 2024

Testing RealCE...
0image [00:00, ?image/s]
Traceback (most recent call last):
File "/root/autodl-tmp/Real-CE/basicsr/test.py", line 46, in
test_pipeline(root_path)
File "/root/autodl-tmp/Real-CE/basicsr/test.py", line 40, in test_pipeline
model.validation(test_loader, current_iter=opt['name'], tb_logger=None, save_img=opt['val']['save_img'])
File "/root/autodl-tmp/Real-CE/basicsr/models/base_model.py", line 48, in validation
self.nondist_validation(dataloader, current_iter, tb_logger, save_img)
File "/root/autodl-tmp/Real-CE/basicsr/models/sr_model.py", line 691, in nondist_validation
self.metric_results[metric] /= (idx + 1)
UnboundLocalError: local variable 'idx' referenced before assignment

@ZY1234-pixel
Copy link

请问你使用那个预训练模型跑的呀,作者好像没有公开net_g_100000.pth

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