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

IndexError: list index out of range #4

Open
CodeMadUser opened this issue Jul 4, 2022 · 3 comments
Open

IndexError: list index out of range #4

CodeMadUser opened this issue Jul 4, 2022 · 3 comments

Comments

@CodeMadUser
Copy link

CodeMadUser commented Jul 4, 2022

作者,你好,请问
Traceback (most recent call last):
File "test.py", line 24, in
opt = option.parse(parser.parse_args().opt, is_train=False)
File "D:\pythonProject\7_4\DCLS-SR-master\DCLS-SR-master\codes\config\DCLS\options.py", line 60, in parse
config_dir = path.split("/")[-2]
IndexError: list index out of range
这个是为啥?一直不行,还有一个问题就是先验模型放在哪个位置呢?可以详细写下测试过程吗?测试过程不需要数据集吧?感谢

@CodeMadUser CodeMadUser changed the title indexError: IndexError: list index out of range Jul 4, 2022
@Algolzw
Copy link
Collaborator

Algolzw commented Jul 5, 2022

  1. 测试是需要测试集的。你需要下载所需的数据集(Set5、Set14、Urban100、BSD100、Manga109),然后run:
    python3 codes/scripts/generate_mod_blur_LR_bic.py
    (记得修改参数)

  2. 模型位置你可以在config文件中修改,具体参考codes/config/DCLS/options/setting1/test/test_setting1_x4.yml

@CodeMadUser
Copy link
Author

  1. 测试是需要测试集的。你需要下载所需的数据集(Set5、Set14、Urban100、BSD100、Manga109),然后run:
    python3 codes/scripts/generate_mod_blur_LR_bic.py
    (记得修改参数)
  2. 模型位置你可以在config文件中修改,具体参考codes/config/DCLS/options/setting1/test/test_setting1_x4.yml
    感谢你回复我。如果我要用自己的图片来测试的化只需要修改数据集的路径,并生成数据集文件就可以使用你训练好的先验模型进行测试了。可以吗?

@Algolzw
Copy link
Collaborator

Algolzw commented Jul 5, 2022

  • 测试是需要测试集的。你需要下载所需的数据集(Set5、Set14、Urban100、BSD100、Manga109),然后run:
    python3 codes/scripts/generate_mod_blur_LR_bic.py
    (记得修改参数)
  • 模型位置你可以在config文件中修改,具体参考codes/config/DCLS/options/setting1/test/test_setting1_x4.yml
    感谢你回复我。如果我要用自己的图片来测试的化只需要修改数据集的路径,并生成数据集文件就可以使用你训练好的先验模型进行测试了。可以吗?

是的

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