Git Product home page Git Product logo

Comments (3)

gyglim avatar gyglim commented on August 25, 2024

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.

chuckcho avatar chuckcho commented on August 25, 2024

@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.

chuckcho avatar chuckcho commented on August 25, 2024

@gyglim : made this change. thanks for your contribution!

from c3d-keras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.