Closed yayinliqing closed 5 months ago
运行python ./scripts/crop_DF2K时报错, (marcotrain) shenweilu@node5:~/MARCONet/Train$ python ./scripts/crop_DF2K.py Traceback (most recent call last): File "/home/shenweilu/MARCONet/Train/./scripts/crop_DF2K.py", line 79, in SplitNames = os.listdir(TestImgPath) FileNotFoundError: [Errno 2] No such file or directory: '~/DIV2K_train_HR' 当我把路径改成绝对路径后还是会报错 (marcotrain) shenweilu@node5:~/MARCONet/Train$ python ./scripts/crop_DF2K.py Traceback (most recent call last): File "/home/shenweilu/MARCONet/Train/./scripts/crop_DF2K.py", line 85, in KeyLists = os.listdir(osp.join(TestImgPath, split, fi)) NotADirectoryError: [Errno 20] Not a directory: '/home/shenweilu/MARCONet/Train/scripts/DIV2K_train_HR/0759.png' 请告诉我需要裁剪的数据集,我该把数据集放在那里,数据集的结构是怎样的,期待您的回复
在代码 ./Train/scripts/crop_DF2K.py 第72到73行, 更改输入路径TestImgPath和保存路径SavePath即可。
运行python ./scripts/crop_DF2K时报错, (marcotrain) shenweilu@node5:~/MARCONet/Train$ python ./scripts/crop_DF2K.py Traceback (most recent call last): File "/home/shenweilu/MARCONet/Train/./scripts/crop_DF2K.py", line 79, in
SplitNames = os.listdir(TestImgPath)
FileNotFoundError: [Errno 2] No such file or directory: '~/DIV2K_train_HR'
当我把路径改成绝对路径后还是会报错
(marcotrain) shenweilu@node5:~/MARCONet/Train$ python ./scripts/crop_DF2K.py
Traceback (most recent call last):
File "/home/shenweilu/MARCONet/Train/./scripts/crop_DF2K.py", line 85, in
KeyLists = os.listdir(osp.join(TestImgPath, split, fi))
NotADirectoryError: [Errno 20] Not a directory: '/home/shenweilu/MARCONet/Train/scripts/DIV2K_train_HR/0759.png'
请告诉我需要裁剪的数据集,我该把数据集放在那里,数据集的结构是怎样的,期待您的回复