bilibili / ailab

5.63k stars 552 forks source link

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

Open anleleaaa opened 1 year ago

anleleaaa commented 1 year ago

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]]