rohitgirdhar / AttentionalPoolingAction

Code/Model release for NIPS 2017 paper "Attentional Pooling for Action Recognition"
https://rohitgirdhar.github.io/AttentionalPoolingAction/
Other
258 stars 63 forks source link

cannot generate tfrecord #3

Closed hwjwayne closed 6 years ago

hwjwayne commented 6 years ago

dir of annotation and image files are set correctly, but when I run "python gen_tfrecord_mpii.py", the following error occured:

Traceback (most recent call last): File "gen_tfrecord_mpii.py", line 259, in main() File "gen_tfrecord_mpii.py", line 182, in main with open(_SPLITS_PATH.format(spl), 'r') as fin: IOError: [Errno 2] No such file or directory: '../../src/data/mpii/lists/'

The link of rec file is also incorrect

rohitgirdhar commented 6 years ago

My bad, I forgot to push the dataset split files. Pushed them now.

lixiaoyu0575 commented 6 years ago

@rohitgirdhar Thanks for your code and answer, but I still cannot generate tfrecord yet. After I set the paths for MPII images and annotations file and run "python gen_tfrecord_mpii.py", another error occured: Traceback (most recent call last): File "gen_tfrecord_mpii.py", line 259, in main() File "gen_tfrecord_mpii.py", line 182, in main with open(_SPLITS_PATH.format(spl), 'r') as fin: IOError: [Errno 21] Is a directory: '../../src/data/mpii/lists/'

YinRui1991 commented 6 years ago

@wemakefocus in gen_tfrecord_mpii.py you need to modify line 23 like this: _SPLITS_PATH = '/data/YinRui/AttentionalPoolingAction-master/src/data/mpii/lists/imagesmpii'
add "imagesmpii" after "lists/"

hawklucky commented 6 years ago

I still cannot generate the tfreocrd because the function in "image_to_tfexample" need the parameter "salicon_image_data". And I don't know where it is?@rohitgirdhar @YinRui1991

rohitgirdhar commented 6 years ago

Actually that parameter was not required. I just removed it.