Skip to content

Instantly share code, notes, and snippets.

Last active November 14, 2023 16:20
Star You must be signed in to star a gist
What would you like to do?
C3D Model for Keras

C3D Model for Keras

This is the C3D model used with a fork of Caffe to the Sports1M dataset migrated to Keras. Details about the network architecture can be found in the following arXiv paper:

Tran, Du, et al. "Learning Spatiotemporal Features With 3D Convolutional Networks." Proceedings of the IEEE International Conference on Computer Vision. 2015.


Download: weights

Display the source blob
Display the rendered blob
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Copy link

aslucki commented Feb 5, 2019

@supun-kanda Based on this project:
I created an updated version of the model (for keras 2.2.4):
and weights.

Copy link

iriyagupta commented Sep 10, 2019

Hi, I am facing this error. Did anyone else face this issue?

AttributeError Traceback (most recent call last)
22 weights_b = np.array(layer.blobs[1].data, dtype=np.float32)
23 weights_p = np.array(layer.blobs[0].data, dtype=np.float32).reshape(
---> 24 layer.blobs[0].num, layer.blobs[0].channels, layer.blobs[0].length,
25 layer.blobs[0].height, layer.blobs[0].width
26 )

AttributeError: length

I am new to caffe and getting attributes from blob using hpp files is sort of not understandable to me here.
Thanks in advance.

Copy link

Is there any training code for the sports-1m dataset?

Copy link

how can we use the C3D features to model violence detection on videos?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment