Code Monkey home page Code Monkey logo

Comments (7)

shamoqianting avatar shamoqianting commented on July 16, 2024 1

@mzolfaghari could you give more details about how to set the "mean_value" in the VideoData layer ? I am new to caffe and don't understand the variable very well. Thank you very much.

from temporal-segment-networks.

jeena72 avatar jeena72 commented on July 16, 2024 1

@mzolfaghari I did as you suggested, and was successful in training using different number of segments. Thanks a lot for your prompt help!

from temporal-segment-networks.

yjxiong avatar yjxiong commented on July 16, 2024

Segment number has also to be changed in the consensus module.

In particular, please change the num_segments param in

https://github.com/yjxiong/temporal-segment-networks/blob/master/models/ucf101/tsn_bn_inception_rgb_train_val.prototxt#L11

and the 3 in the pooling and the reshape layer at

https://github.com/yjxiong/temporal-segment-networks/blob/master/models/ucf101/tsn_bn_inception_rgb_train_val.prototxt#L790

from temporal-segment-networks.

mzolfaghari avatar mzolfaghari commented on July 16, 2024

@yjxiong Thanks for your quick reply. Also, "mean_value" in the VideoData layer need to be set properly based on the number of segments.
Now, it works.

Thanks,

from temporal-segment-networks.

yjxiong avatar yjxiong commented on July 16, 2024

Great to know. And good luck with your experiments!

Closing this. Please feel free to reopen it if you meet any further problem.

from temporal-segment-networks.

jeena72 avatar jeena72 commented on July 16, 2024

@mzolfaghari if possible kindly share the exact changes required to be made in '*_train_val.prototxt' to train TSN using different number of segment, thanks a lot in advance!

from temporal-segment-networks.

mzolfaghari avatar mzolfaghari commented on July 16, 2024

@shamoqianting @jeena72
lets assume that we have 5 segments( on UCF101 dataset). Then necessary changes:

In data layer:

num_segments: 5
mean_value: [104, 117, 123,104, 117, 123,104, 117, 123,104, 117, 123,104, 117, 123]

In loss accuracy part:

layer { name: "reshape_fc" type: "Reshape" bottom: "fc" top: "reshape_fc" reshape_param { shape { dim: [-1, 1, 5, 101] } } } 
layer { name: "segment_consensus" type: "Pooling" bottom: "reshape_fc" top: "pool_fusion" pooling_param { pool: AVE kernel_h: 5 kernel_w: 1 } }

from temporal-segment-networks.

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.