imatge-upc / activitynet-2016-cvprw

Tools to participate in the ActivityNet Challenge 2016 (NIPSW 2016)
https://imatge-upc.github.io/activitynet-2016-cvprw/
MIT License
195 stars 85 forks source link

ValueError: You are trying to load a weight file containing 0 layers into a model with 11 layers. #24

Closed graphific closed 6 years ago

graphific commented 6 years ago

Getting an error running the run_all_pipeline.py, might there be something wrong with the c3d-sports1M_weights.h5 weights file?

  File "run_all_pipeline.py", line 289, in <module>
    args.activity_threshold)
  File "run_all_pipeline.py", line 45, in run_all_pipeline
    model = C3D_conv_features(True)
  File "run_all_pipeline.py", line 233, in C3D_conv_features
    model.load_weights('data/models/c3d-sports1M_weights.h5')
  File "/home/ubuntu/anaconda3/envs/theano_p27/lib/python2.7/site-packages/keras/models.py", line 738, in load_weights
    topology.load_weights_from_hdf5_group(f, layers, reshape=reshape)
  File "/home/ubuntu/anaconda3/envs/theano_p27/lib/python2.7/site-packages/keras/engine/topology.py", line 3354, in load_weights_from_hdf5_group
    str(len(filtered_layers)) + ' layers.')
ValueError: You are trying to load a weight file containing 0 layers into a model with 11 layers.
albertomontesg commented 6 years ago

Please note the versions of the frameworks used for this repository. The versions used are some years old and can be found on the requirements.txt file.

m-sakha commented 6 years ago

@graphific Were you able to resolve this issue? If yes, is it due to incompatible versions or something else? I am also getting similar error

albertomontesg commented 6 years ago

Close due to inactivity.