coxlab / prednet

Code and models accompanying "Deep Predictive Coding Networks for Video Prediction and Unsupervised Learning"
https://arxiv.org/abs/1605.08104
MIT License
759 stars 259 forks source link

"old hickle version" error #53

Closed LanaSina closed 5 years ago

LanaSina commented 5 years ago

Hi! When running kitty_evaluate.py, I get this error:

  File "kitti_evaluate.py", line 50, in <module>
    test_generator = SequenceGenerator(test_file, test_sources, nt, sequence_start_mode='unique', data_format=data_format)
  File "...\prednet\data_utils.py", line 12, in __init__
    self.X = hkl.load(data_file)  # X will be like (n_images, nb_cols, nb_rows, nb_channels)
  File "...\virtual_envs\prednet_venv\lib\site-packages\hickle\hickle.py", line 523, in load
    raise RuntimeError("Cannot open file. This file was likely"
RuntimeError: Cannot open file. This file was likely created with Python 2 and an old hickle version.

I am using Python 3.6 because the readme said that version was supported. I'm going to try with 2.7 but I'm reporting this error in case you want to look into it

matinhosseiny commented 5 years ago

I had the same issue but if you create your hickle file with python 3, it will be fixed.

LanaSina commented 5 years ago

I ended up loading the hkl files with python 2 and an old version of hickle, dumping them in a new file, and reading that file with python 3 and the newest version of hickle

LanaSina commented 5 years ago

I could put those files somewhere for others to use, but where...

kimna4 commented 5 years ago

I could put those files somewhere for others to use, but where...

Hello, Can I get the dumped hkl files? I had also the same issue. Thank you

LanaSina commented 5 years ago

@kimna4 consider this a temporary solution, as I don't know of a stable alternative to store it: https://drive.google.com/open?id=1KVXw6geQTw2IRTACG4MlwC8EA8OC1d-m

kimna4 commented 5 years ago

@LanaSina Thank you very much for sharing the hkl files. With these files I can run this project. However, the result of 'kitti_test.py' is a little strange like below image. (not a color) predicted

Do you have a same problem?? Thank you.

jiahaosu commented 5 years ago

@LanaSina Thank you very much for sharing the hkl files. With these files I can run this project. However, the result of 'kitti_test.py' is a little strange like below image. (not a color) predicted

Do you have a same problem?? Thank you.

I face the same problem. How can I resolve it?

Man-Sung commented 5 years ago

I could put those files somewhere for others to use, but where... LanaSina, Could I get the dumped hkl files? I had also the same issue. Thank you

LanaSina commented 5 years ago

hkl files now available here: https://figshare.com/articles/KITTI_hkl_files/7985684 For other bugs, please make sure it's really a bug and then open another issue ticket.

Po0ria commented 4 years ago

@LanaSina I still can't open the hkl files that you provided. This is the error: File "h5py/h5f.pyx", line 88, in h5py.h5f.open OSError: Unable to open file (truncated file: eof = 323616768, sblock->base_addr = 0, stored_eof = 2543376384)