Giter VIP home page Giter VIP logo

Comments (5)

weiliu89 avatar weiliu89 commented on August 15, 2024

Can you try to run the provided example/ssd/score_ssd_pascal.py and see if there are results saved in the output directory?

Make sure you have provided the valid output_directory, label_map_file, and name_size_file according to here.

Please let me know what you find.

BTW. The mAP looks very high. If you didn't mix testing images with training, then congratulations :)

from caffe.

lebronyxm avatar lebronyxm commented on August 15, 2024

Actually, i have run the provided example/ssd/score_ssd_pascal.py successfully. And the results (txt files, which are blank) are saved. I'm sure i have provided valid output_directory, label_map_file, and name_size_file. To make my confusion clearly: I have obtained the output files, but all those files are blank...

Thanks for your reminder about the mAP issue. my data is small, only have 5 classes object. And the number of test images is only 119, (training data num. is 1084). So this may be the reason why mAP is very high.

from caffe.

weiliu89 avatar weiliu89 commented on August 15, 2024

Ah, you should change this line to:
test_iter = math.ceil(float(num_test_image) / test_batch_size)

or you could change test_batch_size to 1.

The reason is that 119 / 8 = 14, and it will never reach to here.

from caffe.

lebronyxm avatar lebronyxm commented on August 15, 2024

Wow, thank god i have mentioned the number 119...Also, thank you very much for detailed help! I have done with this problem!

BTW,

test_iter = math.ceil(float(num_test_image) / test_batch_size)

should be added an int type transform or it will lead to an error about data type.

test_iter = int(math.ceil(float(num_test_image) / test_batch_size))

Again, thank you for your help~

from caffe.

weiliu89 avatar weiliu89 commented on August 15, 2024

You are right. I updated the script and added a note to it. Thanks for pointing out the bug!

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.