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

linux下面运行出现了错误,windows却可以运行虽然会有点bug #121

Open
anleleaaa opened this issue Dec 30, 2022 · 0 comments

Comments

@anleleaaa
Copy link

root@autodl-container-804a11b7ac-e94b09c6:/ailab-main/ailab-main/Real-CUGAN# python upcunet_v3.py .ipynb_checkpoints /root/ailab-main/ailab-main/Real-CUGAN/inputs/.ipynb_checkpoints /root/ailab-main/ailab-main/Real-CUGAN/tmp/1672422511961812.ipynb_checkpoints Traceback (most recent call last): File "upcunet_v3.py", line 1321, in frame = cv2.imread(tmp_path)[:, :, [2, 1, 0]]
TypeError: 'NoneType' object is not subscriptable root@autodl-container-804a11b7ac-e94b09c6:
/ailab-main/ailab-main/Real-CUGAN#

运行到最后时候Linux要读取一个文件,但是那个路径读取的结果却为空 下面2个代码的地方出错了
os.symlink(inp_path, tmp_path)#linux用软链接
frame = cv2.imread(tmp_path)[:, :, [2, 1, 0]]

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

1 participant