Comments (3)
I made some progress regarding this.
The padding here is incorrect:
https://github.com/axon-research/c3d-keras/blob/master/c3d_model.py#L49
The original has no padding:
https://github.com/facebook/C3D/blob/master/C3D-v1.0/src/caffe/layers/pool3d_layer.cpp#L46
or, rather it has right only padding, through this:
https://github.com/facebook/C3D/blob/master/C3D-v1.0/src/caffe/layers/pool3d_layer.cpp#L92
by changing above line to
model.add(ZeroPadding3D(padding=((0, 0), (0, 1), (0, 1)), name='zeropad5'))
I now get probablities that are closer to the reference implementation:
wiffle ball: 28.18%
knife throwing: 13.11%
croquet: 10.82%
disc golf: 7.88%
rounders: 4.97%
kickball: 4.46%
bocce: 3.11%
boomerang: 2.02%
dodgeball: 1.78%
pitch and putt: 1.40%
Also, I used the mean from here, which helped getting more accurate results:
https://github.com/Lasagne/Recipes/blob/master/examples/Video%20features%20with%20C3D.ipynb
from c3d-keras.
@gyglim thanks for your effort. i was puzzled myself. right-padding instead of symmetric padding did make it close to reference results.
from c3d-keras.
@gyglim : made this change. thanks for your contribution!
from c3d-keras.
Related Issues (20)
- Is the mean cube dataset-specific? HOT 2
- I can't find sports1M_weights_tf.h5 and sports1M_weights_tf.json HOT 5
- use convert_caffe_model.py HOT 9
- OpenCV's incompatibility HOT 2
- Have you tried the newly released C3D v1.1? HOT 1
- Fine Tuning in Keras HOT 4
- sports1M_weights_tf.json HOT 1
- Pretrained Models & Weights for TensorFlow HOT 2
- Hello,How can I finetune the C3D model using my own dataset? HOT 1
- pretrained-model HOT 1
- about the sports1M_weights_tf.json HOT 1
- Export model and weights for Keras and tensorflow
- ImportError: No module named 'caffe_pb2' HOT 1
- How to cater for "image_dim_ordering" error ??
- Is there a script/way to retrain the model for any other/own dataset? HOT 2
- using theano backend
- IndexError: too many indices for array HOT 5
- Training the network? HOT 1
- use convert_caffe_model.py to convert c3d_finetune_on_ucf model HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c3d-keras.