Yukun-Huang / Person-Attribute-Recognition-MarketDuke

A simple baseline implemented in PyTorch for pedestrian attribute recognition task, evaluating on Market-1501 and DukeMTMC-reID dataset.
371 stars 88 forks source link

the specified path could not be found #17

Closed jzf1995 closed 4 years ago

jzf1995 commented 4 years ago

Hello, this problem occurred when I entered the instruction to run the training file. What is the reason? Waiting for your reply.thank you

(pytorch37) D:\attribute recongnize\Person-Attribute-Recognition-MarketDuke-master>python train.py --data-path ~/dataset --dataset duke --model resnet50 Please Download DukeMTMC-reID Dataset Traceback (most recent call last): File "train.py", line 92, in train_val='train') File "D:\attribute recongnize\Person-Attribute-Recognition-MarketDuke-master\datafolder\folder.py", line 16, in init train, query, gallery = import_MarketDuke_nodistractors(data_dir, dataset_name) File "D:\attribute recongnize\Person-Attribute-Recognition-MarketDuke-master\datafolder\reid_dataset\import_MarketDuke_nodistractors.py", line 20, in import_MarketDuke_nodistractors file_list=sorted(os.listdir(name_dir)) FileNotFoundError: [WinError 3] 系统找不到指定的路径。: '~/dataset\DukeMTMC-reID\bounding_box_train'

Yukun-Huang commented 4 years ago

You should prepare DukeMTMC-reID dataset first, then set "--data-path" correctly.