linux下面运行出现了错误,windows却可以运行虽然会有点bug
anleleaaa opened this issue · comments
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]]/ailab-main/ailab-main/Real-CUGAN#
TypeError: 'NoneType' object is not subscriptable root@autodl-container-804a11b7ac-e94b09c6:
运行到最后时候Linux要读取一个文件,但是那个路径读取的结果却为空 下面2个代码的地方出错了
os.symlink(inp_path, tmp_path)#linux用软链接
frame = cv2.imread(tmp_path)[:, :, [2, 1, 0]]