Open ymtupup opened 3 years ago
Hi, It looks like you mistakenly deleted a character. The error you got is saying:
File "C:\Users\15479\Desktop\ZSSR\utils.py", line 192, in prepare_result_dir if conf.create_result_dir: AttributeError: 'Config' object has no attribute 'create_result_dir'
but if you check the code here, you will see that line 192 has 'create_results_dir' Try to fix it if you have some variant of the coder or revert to the original code. Good luck, Assaf.
And my version of python is 3.6 .It's obviously different than what you use in your code.So,could it be a different version of Python? In fact,I run the original code from your github repository.
You will also have a bit of trouble with py version (see other issues I resolved. Mind mostly for division / ). But note how the quoted code is not the code in the repository. There is a missing S: https://github.com/assafshocher/ZSSR/blob/d2948526fde799a0c111469b78cd9e1b8659cb0f/utils.py#L192
I can't think of any scenario where this is possible with the original code. Try to fix this 's' or to fork/download the code again
thank you Assaf!You are so nice!
---Original--- From: "Assaf Shocher"<notifications@github.com> Date: Mon, Jan 11, 2021 22:00 PM To: "assafshocher/ZSSR"<ZSSR@noreply.github.com>; Cc: "ymtupup"<1547930078@qq.com>;"Author"<author@noreply.github.com>; Subject: Re: [assafshocher/ZSSR] AttributeError: 'Config' object has no attribute 'create_result_dir' ?Please help me,please . (#29)
You will also have a bit of trouble with py version (see other issues I resolved. Mind mostly for division / ). But note how the quoted code is not the code in the repository. There is a missing S: https://github.com/assafshocher/ZSSR/blob/d2948526fde799a0c111469b78cd9e1b8659cb0f/utils.py#L192
I can't think of any scenario where this is possible with the original code. Try to fix this 's' or to fork/download the code again
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
And I fix the 's' run python run_ZSSR.py is ok . But using the Quick usage examples that you write has error,such as python run_ZSSR.py X2_IDEAL_WITH_PLOT_CONF, python run_ZSSR.py X2_GIVEN_KERNEL_CONF, File "run_ZSSR.py", line 18, in main res_dir = prepare_result_dir(conf) File "C:\Users\15479\Desktop\ZSSR\utils.py", line 192, in prepare_result_dir if conf.create_results_dir: AttributeError: 'NoneType' object has no attribute 'create_results_dir' this error comes again.
Traceback (most recent call last): File "C:/Users/15479/Desktop/ZSSR/run_ZSSR.py", line 75, in
main(conf_str, gpu_str)
File "C:/Users/15479/Desktop/ZSSR/run_ZSSR.py", line 18, in main
res_dir = prepare_result_dir(conf)
File "C:\Users\15479\Desktop\ZSSR\utils.py", line 192, in prepare_result_dir
if conf.create_result_dir:
AttributeError: 'Config' object has no attribute 'create_result_dir'
Process finished with exit code 1