Bringing-Old-Photos-Back-to-Life icon indicating copy to clipboard operation
Bringing-Old-Photos-Back-to-Life copied to clipboard

GUI.py error "...can't open/read file: check file path/integrity.."

Open anikmal opened this issue 3 years ago • 5 comments

Hello,

While running the GUI.py I am getting the following error

[ WARN:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_ 2022-01-02_21-19-31 ('./output/final_output/IMG_20220101_202735.jpg'): can't open/read file: check file path/integrity

Any idea on why is this happening?

anikmal avatar Jan 02 '22 15:01 anikmal

mee too python36

Xlinlin avatar Jan 09 '22 01:01 Xlinlin

check you the output path in gui.py, may as well use absolute path

xiaopingzhong avatar Mar 02 '22 12:03 xiaopingzhong

modify to f_image = f"/home/{getpass.getuser()}/Bringing-Old-Photos-Back-to-Life/output/final_output/{n3}"

xiaopingzhong avatar Mar 02 '22 13:03 xiaopingzhong

Got same issue, it seems that there's no image generated in the final output folder, nothing to do with the var f_image.

SunixLiu avatar Mar 14 '22 12:03 SunixLiu

修改为 f_image = f"/home/{getpass.getuser()}/Bringing-Old-Photos-Back-to-Life/output/final_output/{n3}" Thanks!!!!!!!

wangshirely avatar Mar 04 '23 06:03 wangshirely