Giter VIP home page Giter VIP logo

Comments (6)

weiliu89 avatar weiliu89 commented on August 15, 2024

The script is not fully tested for model which is trained with batch normalization (BN), you should make adjust to certain settings if you want to try ResNet.

For your specific problems, you should change mbox_source_layers to layer names you want to use for prediction in ResNet152. And you should use ResNet152Body(net, from_layer='data', use_pool5=False).

from caffe.

peternara avatar peternara commented on August 15, 2024

yes, i already changed "mbox_source_layers" part.
I try to change layer names(many time) for prediction in ResNet152. but I have still a error .

I0716 11:52:04.729372 1913 net.cpp:752] Ignoring source layer fc7_relu7_0_split
F0716 11:52:04.730145 1913 net.cpp:765] Cannot copy param 0 weights from layer 'conv6_1'; shape mismatch. Source param shape is 256 1024 1 1 (262144); target param shape is 256 2048 1 1 (524288). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer.

thank you.

from caffe.

weiliu89 avatar weiliu89 commented on August 15, 2024

It is weird that you have fc7_relu7_0_split, which is not part of ResNet152 (assuming you download it from here). Make sure you are not loading from a previously saved wrong snapshot.

from caffe.

peternara avatar peternara commented on August 15, 2024

@weiliu89
thank you.
this problem remained previously logs(model...etc). I delete this log.
i try to again.
fortunately, above error not generating!

when resnet execute for training, it generate out of gpu memory.
but, it not generate when I excute using 8 core gpu.
i running(train) and yet not out of memory.

and
I have a questions.
l wonder optimal layer names to use for prediction in ResNet152(using mbox_source_layers variable).
how to select optimal ResNet152 ' layer name?(only test??)

sorry, I am not good at English. and Thank you for the reply.

from caffe.

weiliu89 avatar weiliu89 commented on August 15, 2024

ResNet has a problem of consuming a lot of memory. I think usually people use ResNet101 for detection. According to my experience, it's performance is similar to VGG (at least on VOC0712) within the SSD framework.

For optimal layers, you can find corresponding layers which has similar feature map size as the ones used in VGG.

from caffe.

peternara avatar peternara commented on August 15, 2024

tankyou~^^

from caffe.

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.