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

Problem running #10

Open
wei-hub opened this issue Apr 6, 2022 · 3 comments
Open

Problem running #10

wei-hub opened this issue Apr 6, 2022 · 3 comments

Comments

@wei-hub
Copy link

wei-hub commented Apr 6, 2022

How can I solve this problem when I run it?

(realvsr) lzw@computer3:~/code/RealVSR/RealVSR-main/codes$ python test_RealVSR_wi_GT.py
22-04-06 17:05:11.072 - INFO: Data: RealVSR - /home/lzw/code/data/ycbcr/LQ_YCbCr_test
22-04-06 17:05:11.073 - INFO: Padding mode: replicate
22-04-06 17:05:11.073 - INFO: Model path: /home/lzw/code/data/ycbcr/RealVSR-Models/001_EDVR_NoUp_woTSA_scratch_lr1e-4_150k_RealVSR_3frame_WiCutBlur_YCbCr_LapPyr+GW.pth
22-04-06 17:05:11.073 - INFO: Save images: True
Traceback (most recent call last):
File "test_RealVSR_wi_GT.py", line 220, in
main()
File "test_RealVSR_wi_GT.py", line 98, in main
imgs = data_util.read_img_seq(subfolder, color=color)
File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 116, in read_img_seq
img_l = [read_img(None, v) for v in img_path_l]
File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 116, in
img_l = [read_img(None, v) for v in img_path_l]
File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 95, in read_img
img = img.astype(np.float32) / 255.
AttributeError: 'NoneType' object has no attribute 'astype'

@IanYeung
Copy link
Owner

IanYeung commented Apr 6, 2022

How can I solve this problem when I run it?

(realvsr) lzw@computer3:~/code/RealVSR/RealVSR-main/codes$ python test_RealVSR_wi_GT.py 22-04-06 17:05:11.072 - INFO: Data: RealVSR - /home/lzw/code/data/ycbcr/LQ_YCbCr_test 22-04-06 17:05:11.073 - INFO: Padding mode: replicate 22-04-06 17:05:11.073 - INFO: Model path: /home/lzw/code/data/ycbcr/RealVSR-Models/001_EDVR_NoUp_woTSA_scratch_lr1e-4_150k_RealVSR_3frame_WiCutBlur_YCbCr_LapPyr+GW.pth 22-04-06 17:05:11.073 - INFO: Save images: True Traceback (most recent call last): File "test_RealVSR_wi_GT.py", line 220, in main() File "test_RealVSR_wi_GT.py", line 98, in main imgs = data_util.read_img_seq(subfolder, color=color) File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 116, in read_img_seq img_l = [read_img(None, v) for v in img_path_l] File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 116, in img_l = [read_img(None, v) for v in img_path_l] File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 95, in read_img img = img.astype(np.float32) / 255. AttributeError: 'NoneType' object has no attribute 'astype'

This means the loading function does not load any image. Please check the loading path.

@wei-hub
Copy link
Author

wei-hub commented Apr 6, 2022 via email

@IanYeung
Copy link
Owner

IanYeung commented Apr 7, 2022

Thanks for your reply,Excuse me what the loading path refers to ?Do you mean the one in my screenshot?

------------------ 原始邮件 ------------------ 发件人: "Xi @.>; 发送时间: 2022年4月6日(星期三) 晚上8:34 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [IanYeung/RealVSR] Problem running (Issue #10) How can I solve this problem when I run it? (realvsr) @.:~/code/RealVSR/RealVSR-main/codes$ python test_RealVSR_wi_GT.py 22-04-06 17:05:11.072 - INFO: Data: RealVSR - /home/lzw/code/data/ycbcr/LQ_YCbCr_test 22-04-06 17:05:11.073 - INFO: Padding mode: replicate 22-04-06 17:05:11.073 - INFO: Model path: /home/lzw/code/data/ycbcr/RealVSR-Models/001_EDVR_NoUp_woTSA_scratch_lr1e-4_150k_RealVSR_3frame_WiCutBlur_YCbCr_LapPyr+GW.pth 22-04-06 17:05:11.073 - INFO: Save images: True Traceback (most recent call last): File "test_RealVSR_wi_GT.py", line 220, in main() File "test_RealVSR_wi_GT.py", line 98, in main imgs = data_util.read_img_seq(subfolder, color=color) File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 116, in read_img_seq img_l = [read_img(None, v) for v in img_path_l] File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 116, in img_l = [read_img(None, v) for v in img_path_l] File "/home/lzw/code/RealVSR/RealVSR-main/codes/data/util.py", line 95, in read_img img = img.astype(np.float32) / 255. AttributeError: 'NoneType' object has no attribute 'astype' This means the loading function does not load any image. Please check the loading path. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

22-04-06 17:05:11.072 - INFO: Data: RealVSR - /home/lzw/code/data/ycbcr/LQ_YCbCr_test

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