TianzhongSong / C3D-keras

train C3D with keras for action recognition
http://www.tianzsong.xyz/2018/04/08/c3d-keras/
MIT License
119 stars 60 forks source link

model.load_weights('.\results\weights_c3d.h5', by_name=True) #7

Closed huangzhenjie closed 5 years ago

huangzhenjie commented 5 years ago

您好,非常感谢你的分享,我安装了对应版本的tensorflow和keras,当我运行video_demo.py时,加载模型时出现下面的问题: Traceback (most recent call last): File "video_demo.py", line 64, in main() File "video_demo.py", line 22, in main load_model('.\results\weights_c3d.h5') File "C:\Anaconda2\envs\py3\envs\keras\lib\site-packages\keras\models.py", line 233, in load_model with h5py.File(filepath, mode='r') as f: File "C:\Anaconda2\envs\py3\envs\keras\lib\site-packages\h5py_hl\files.py", line 312, in init fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr) File "C:\Anaconda2\envs\py3\envs\keras\lib\site-packages\h5py_hl\files.py", line 142, in make_fid fid = h5f.open(name, flags, fapl=fapl) File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py\h5f.pyx", line 78, in h5py.h5f.open esults\weights_c3d.h5', errno = 22, error message = 'Invalid argument', flags = 0, o_flags = 0) 作者你有遇到过吗?非常感谢