You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\Alarak>python D:\桌面\CDAN-master\pytorch\train_image.py --gpu_id id --net ResNet50 --dset office-home --test_interval 2000 --s_dset_path D:\OfficeHomeDataset_10072016\Art.txt --t_dset_path D:\OfficeHomeDataset_10072016\Clipart.txt CDAN
Traceback (most recent call last):
File "D:\桌面\CDAN-master\pytorch\train_image.py", line 278, in
train(config)
File "D:\桌面\CDAN-master\pytorch\train_image.py", line 84, in train
dsets["source"] = ImageList(open(data_config["source"]["list_path"]).readlines(),
File "D:\桌面\CDAN-master\pytorch\data_list.py", line 35, in init
imgs = make_dataset(image_list, labels)
File "D:\桌面\CDAN-master\pytorch\data_list.py", line 17, in make_dataset
images = [(val.split()[0], np.array([int(la) for la in val.split()[1:]])) for val in image_list]
File "D:\桌面\CDAN-master\pytorch\data_list.py", line 17, in
images = [(val.split()[0], np.array([int(la) for la in val.split()[1:]])) for val in image_list]
File "D:\桌面\CDAN-master\pytorch\data_list.py", line 17, in
images = [(val.split()[0], np.array([int(la) for la in val.split()[1:]])) for val in image_list]
ValueError: invalid literal for int() with base 10: 'Clock/00001.png|'
C:\Users\Alarak>python D:\桌面\CDAN-master\pytorch\train_image.py --gpu_id id --net ResNet50 --dset office-home --test_interval 2000 --s_dset_path D:\桌面\OfficeHomeDataset_10072016/Art.txt --t_dset_path D:\桌面\OfficeHomeDataset_10072016/Clipart.txt CDAN
Traceback (most recent call last):
File "D:\桌面\CDAN-master\pytorch\train_image.py", line 278, in
train(config)
File "D:\桌面\CDAN-master\pytorch\train_image.py", line 84, in train
dsets["source"] = ImageList(open(data_config["source"]["list_path"]).readlines(),
FileNotFoundError: [Errno 2] No such file or directory: 'D:\桌面\OfficeHomeDataset_10072016/Art.txt'
我按照贵课题组给出的命令格式,下载好office-home数据集后,将命令格式中的../data/office-home替换成了我的实际路径D:\桌面\OfficeHomeDataset_10072016,同时加入了train_image.py的路径。但运行后出现了上面的报错。我按照报错手动在相应目录下创建了Art.txt和clipart.txt后,出现了更多错误,请问应该如何正确设置相关参数?
The text was updated successfully, but these errors were encountered: