KovenYu / MAR

Pytorch code for our CVPR'19 (oral) work: Unsupervised person re-identification by soft multilabel learning
https://kovenyu.com/publication/2019-cvpr-mar/
315 stars 83 forks source link

Unable to open file: name = 'data/market.mat', ?? #12

Closed Ensoleille closed 5 years ago

Ensoleille commented 5 years ago

hello,Baidu cloud network down the content and code did not mention market.mat? Are Market.mat? Why is this error? File "src/main.py", line 47, in main() File "src/main.py", line 14, in main args.crop_size, args.padding, args.batch_size//2, False) File "/home/gfp/Downloads/MAR-master/src/utils.py", line 525, in get_transfer_dataloaders target_data = Market('data/{}.mat'.format(target), state='train') File "/home/gfp/Downloads/MAR-master/src/ReIDdatasets.py", line 19, in init f = h5py.File(self.root, 'r') File "/home/gfp/anaconda3/lib/python3.6/site-packages/h5py/_hl/files.py", line 272, in init fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr) File "/home/gfp/anaconda3/lib/python3.6/site-packages/h5py/_hl/files.py", line 92, in make_fid fid = h5f.open(name, flags, fapl=fapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/home/ilan/minonda/conda-bld/h5py_1482475225177/work/h5py/_objects.c:2856) File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/home/ilan/minonda/conda-bld/h5py_1482475225177/work/h5py/_objects.c:2814) File "h5py/h5f.pyx", line 76, in h5py.h5f.open (/home/ilan/minonda/conda-bld/h5py_1482475225177/work/h5py/h5f.c:2102) OSError: Unable to open file (Unable to open file: name = 'data/market.mat', errno = 2, error message = 'no such file or directory', flags = 0, o_flags = 0)

KovenYu commented 5 years ago

Hi @Ensoleille , did you modify the "target" entry in args.yaml? The default one should be "target: Market" which would be used in this line:

File "/home/gfp/Downloads/MAR-master/src/utils.py", line 525, in get_transfer_dataloaders target_data = Market('data/{}.mat'.format(target), state='train')

and thus the value of "target_data" should be "data/Market.mat", which refers to the file in BAIDUPAN.