Git Product home page Git Product logo

Comments (7)

safayildirim avatar safayildirim commented on July 29, 2024 1

You should provide number of custom classes you have as parameters.

from object-detection-api.

cat768 avatar cat768 commented on July 29, 2024 1

You should provide number of custom classes you have as parameters.

How do I do that? (I have 31 classes)

from object-detection-api.

cat768 avatar cat768 commented on July 29, 2024

image

from object-detection-api.

cat768 avatar cat768 commented on July 29, 2024

Here is my cfg file:

junglecamp0.5.txt

(saved it to a txt file instead of cfg because github won't allow me to upload cfg)

from object-detection-api.

ejri avatar ejri commented on July 29, 2024

Screen Shot 2020-06-22 at 1 59 21 AM

in the load_weights.py file, change the number of classes from 80 to 31 in your case.

Also make sure to make the changes in app.py and detect.py

Screen Shot 2020-06-22 at 2 19 29 AM

Screen Shot 2020-06-22 at 2 19 14 AM

from object-detection-api.

Shreyas0812 avatar Shreyas0812 commented on July 29, 2024

I did this, but got the same error...

Object-Detection-API/yolov3_tf2/utils.py", line 68, in load_darknet_weights
conv_shape).transpose([2, 3, 1, 0])
ValueError: cannot reshape array of size 209204 into shape (512,256,3,3)

from object-detection-api.

Zwj321123 avatar Zwj321123 commented on July 29, 2024
Screen Shot 2020-06-22 at 1 59 21 AM

in the load_weights.py file, change the number of classes from 80 to 31 in your case.

Also make sure to make the changes in app.py and detect.py

Screen Shot 2020-06-22 at 2 19 29 AM Screen Shot 2020-06-22 at 2 19 14 AM

This works for me! Thank you!

from object-detection-api.

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.