Giter Club home page Giter Club logo

c3d's People

Contributors

adamcasson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

c3d's Issues

Train

How do I train in my own dataset?

Using theano backend

I am using another trained classifier which uses c3d features and has a theano backend. If I use theano backend with your code it computes different features in fc6 layer, which are not accurate. Is there anyway I can use your code with Theano backend or are C3D weights ported in theano? Please help me out.

Problem layers shape

Hi,

First thanks for your package.

I'm encountering an issue when trying to use the pretrained C3D model. The output shape declared don't seem to systematically match the actual shape.

For example, layer pool1 is supposed to be of shape (None, 16, 56, 56, 64) but when I run the model it generate an output of shape (1, 14, 57, 57, 64)

The mistmaches aren't systematic, but can be easily checked with the following example.

Would you have any idea on why that is?

import numpy as np
from keras.models import Model
from c3d import C3D
base_model = C3D(weights='sports1M')

# input of 16-images movie
x = np.zeros((1, 16, 112, 112, 3))

# for each layer, print expected and actual output shape
for layer in base_model.layers:
    head_model = Model(inputs=base_model.input,
                       outputs=layer.output)
    print(layer.name, 
          layer.output_shape,
          head_model.predict(x).shape)

outputs:

('conv1', (None, 16, 112, 112, 64), (1, 16, 112, 112, 64))
('pool1', (None, 16, 56, 56, 64), (1, 14, 57, 57, 64))
('conv2', (None, 16, 56, 56, 128), (1, 14, 57, 57, 128))
('pool2', (None, 8, 28, 28, 128), (1, 7, 28, 28, 128))
('conv3a', (None, 8, 28, 28, 256), (1, 7, 28, 28, 256))
('conv3b', (None, 8, 28, 28, 256), (1, 7, 28, 28, 256))
('pool3', (None, 4, 14, 14, 256), (1, 3, 14, 14, 256))
('conv4a', (None, 4, 14, 14, 512), (1, 3, 14, 14, 512))
('conv4b', (None, 4, 14, 14, 512), (1, 3, 14, 14, 512))
('pool4', (None, 2, 7, 7, 512), (1, 1, 7, 7, 512))
('conv5a', (None, 2, 7, 7, 512), (1, 1, 7, 7, 512))
('conv5b', (None, 2, 7, 7, 512), (1, 1, 7, 7, 512))
('zero_padding3d_1', (None, 2, 9, 9, 512), (1, 2, 9, 9, 512))
('pool5', (None, 1, 4, 4, 512), (1, 1, 4, 4, 512))
('flatten_1', (None, 8192), (1, 8192))
('fc6', (None, 4096), (1, 4096))
('dropout_1', (None, 4096), (1, 4096))
('fc7', (None, 4096), (1, 4096))
('dropout_2', (None, 4096), (1, 4096))
('fc8', (None, 487), (1, 487))

How to generate .txt file?

Hi! I'm new to this repo and C3D. May I ask how to generate .txt file?
Thank you so much for your help!

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.