Closed wiliankaien closed 1 year ago
放入数据集,运行train报错 File "/tmp/pycharm project 69/train.py", line 404, in train_ seg(i, Logger) File "/tmp/pycharm_project_69/train.py", line 87, in trainseg ds = CityScapes(' ./MSRS/', cropsize=cropsize, mode='train', Method=Method) File "/ tmp/pycharm project_ 69/cityscapes.py", line 58,in -- init__folders = os.listdir (gtpth) FileNotFoundError: [Errno 2] No such file or directory: './MSRS/Label/train‘
换成ds = CityScapes(' /hy-tmp/MSRS', cropsize=cropsize, mode='train', Method=Method)绝对路径 还是报错路径错误 FileNotFoundError: [Errno 2] No such file or directory: ' /hy-tmp/NSRS/Fusion/train'
由于之前的水平有限 所以融合和分割的dataloader写的相对比较乱 如果可以的话建议直接建议在使用的时候把两个dataloader统一一下应该就没问题的。
放入数据集,运行train报错 File "/tmp/pycharm project 69/train.py", line 404, in
train_ seg(i, Logger)
File "/tmp/pycharm_project_69/train.py", line 87, in trainseg
ds = CityScapes(' ./MSRS/', cropsize=cropsize, mode='train', Method=Method)
File "/ tmp/pycharm project_ 69/cityscapes.py", line 58,in -- init__folders = os.listdir (gtpth)
FileNotFoundError: [Errno 2] No such file or directory: './MSRS/Label/train‘
换成ds = CityScapes(' /hy-tmp/MSRS', cropsize=cropsize, mode='train', Method=Method)绝对路径 还是报错路径错误 FileNotFoundError: [Errno 2] No such file or directory: ' /hy-tmp/NSRS/Fusion/train'