Closed BuaaAlen closed 5 years ago
After I ran the 'construct_dataset_Market.m' using MATLAB, I found that the 'Market.mat' 's size is only 300M. However, the file you shared in the BaiduYun Link is 2G+. What's wrong with me? Thx Maybe the torch.cat question above is due to this.
Hi @BuaaAlen ,
No. The 'train_data' matrix in Market.mat generated by me is None. I have no idea and I ordered the 'readme.md' strictly during the generating process. Thx.
@BuaaAlen Then I think the problem is in your formatting of the image data in the training set (and probably the testing set as well). I assumed the file names of the images were kept unchanged as they were downloaded: something looks like 0000_c1s1_000111_01.jpg, so that a filter would apply to filter out the special filenames (i.e. the "." and ".." in Linux file system).
Given that your matrix is empty, probably the filter has let out all the entries for the training set.
Therefore,
Firstly I am very grateful for your comprehensive answer! I uploaded the necessary files to a BaiduYun Link, containing 1 a folder named"Market-1501-v15.09.15" 2 "construct_dataset_Market.m" 3 "uniquize.m"
https://pan.baidu.com/s/1nrSKd87CAwVmZomAUYo8ng password:dwi0
If you run the "construct_dataset_Market.m" code using MATLAb, you will get a wrong "Market.mat" whose size is 300M, not 2.7G+. I will appreciate it if you can run the codes to reproduce the problem I met.
I just found the mistake I made from a closed issue......Thanks again!
@BuaaAlen great to see your problem addressed. would you mind giving a link to the closed issue to provide references to other guys who might encounter similar problems?
The issue's link is https://github.com/KovenYu/MAR/issues/4
The error I met is(in the epoch 0): features = torch.cat(features, dim=0) RuntimeError: expected a non-empty list of Tensors