mitmul / deeppose

DeepPose implementation in Chainer
http://static.googleusercontent.com/media/research.google.com/ja//pubs/archive/42237.pdf
GNU General Public License v2.0
408 stars 129 forks source link

tr_plus_indices.mat not found #42

Closed arnitkun closed 4 years ago

arnitkun commented 6 years ago

running python datasets/flic_dataset.py gives me the following error: FileNotFoundError: [Errno 2] No such file or directory: 'data/FLIC-full/tr_plus_indices.mat'

I have manually downloaded FLIC-full to the dataset location directory. But I can't seem to find tr_plus_indices.mat even in the source zip.

sridarah commented 5 years ago

It is available here http://cims.nyu.edu/~tompson/data/tr_plus_indices.mat

aspenlin commented 5 years ago

The link above is not working and I couldnot find it by google. Did anyone have it downloaded and can share the data? Thanks!

aspenlin commented 5 years ago

I solve this problem using the same method as in lsp_dataset.py to generate indices since I couldn't find the .mat file anywhere.

In flic_dataset.py, I used

N_test = int(len(examples) * 0.1) testing_indices = np.random.permutation(int(len(examples)))[:N_test].tolist()

instead of: training_indices = loadmat('data/FLIC-full/tr_plus_indices.mat') training_indices = training_indices['tr_plus_indices'].flatten()

to generate indices for testing, and change

if i in training_indices: print(msg, file=fp_train) else: print(msg, file=fp_test) to: if i in not in testing_indices: print(msg, file=fp_train) else: print(msg, file=fp_test)

alpha9934 commented 4 years ago

@aspenlin can you please elaborate your process a bit further.