Giter Club home page Giter Club logo

Comments (8)

moyans avatar moyans commented on August 20, 2024

@makefile
Traceback (most recent call last):
File "/data/code/caffe/convert_model.py", line 91, in
(net.params['bbox_pred'][0].data * stds[:, np.newaxis])
KeyError: 'bbox_pred'
I got a problem too,I just comment this line of code.

from frcnn.

makefile avatar makefile commented on August 20, 2024

@moyans There is no need run the convert_model.py since bbox unnormalize is done at test time in the C++ code.

from frcnn.

lucasjinreal avatar lucasjinreal commented on August 20, 2024

I have trained rfcn model and bbox accuracy got 97%, but when inference got no result, I am not convert model..... with:

BUILD=build/examples/FRCNN/demo_frcnn_api.bin

$BUILD --gpu $gpu \
       --model examples/FRCNN/rfcn-res50-voc/test_merged-atrous.proto \
       --weights examples/FRCNN/snapshot/rfcn-ohem-soft-nms-res50-voc_iter_80000.caffemodel \
       --default_c examples/FRCNN/config/voc_config.json \
       --image_dir examples/images/  \
       --out_dir examples/FRCNN/results/

from frcnn.

lucasjinreal avatar lucasjinreal commented on August 20, 2024
Output Dir Is : examples/FRCNN/results/
I0813 11:08:07.946373 14934 demo_frcnn_api.cpp:70] 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Demo for cat gray.jpg
I0813 11:08:08.044909 14934 demo_frcnn_api.cpp:75] Predict cat gray.jpg cost 94.1493 ms.
I0813 11:08:08.044935 14934 demo_frcnn_api.cpp:76] There are 0 objects in picture.
I0813 11:08:14.342118 14934 demo_frcnn_api.cpp:70] 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Demo for cat.jpg
I0813 11:08:14.392055 14934 demo_frcnn_api.cpp:75] Predict cat.jpg cost 45.6962 ms.
I0813 11:08:14.392086 14934 demo_frcnn_api.cpp:76] There are 0 objects in picture.
I0813 11:08:26.512833 14934 demo_frcnn_api.cpp:70] 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Demo for cat_gray.jpg
I0813 11:08:26.561453 14934 demo_frcnn_api.cpp:75] Predict cat_gray.jpg cost 44.95 ms.
I0813 11:08:26.561476 14934 demo_frcnn_api.cpp:76] There are 0 objects in picture.

from frcnn.

makefile avatar makefile commented on August 20, 2024

@jinfagang Try lower the threshold, if there is no object, that may be caused by wrong labels used for training.

from frcnn.

lucasjinreal avatar lucasjinreal commented on August 20, 2024

@makefile Just simply using VOC, this data is veryfied training with zf-fasterrcnn, it worked. And the network loaded and trained, but inference got no result. Also, when I convert model it says no layer called bbox_pred which this issue got.

So I don't convert directly inference using demo_frcnn_api, it gots no result, not sure what's the problem, the threshold is 0.3 is already low enough.

from frcnn.

SuperPowerLF2 avatar SuperPowerLF2 commented on August 20, 2024

@jinfagang I had the same problem .Have you solved it?

from frcnn.

lucasjinreal avatar lucasjinreal commented on August 20, 2024

@SuperPowerLF2 No idea so far.

from frcnn.

Related Issues (18)

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.