Comments (7)
You should provide number of custom classes you have as parameters.
from object-detection-api.
You should provide number of custom classes you have as parameters.
How do I do that? (I have 31 classes)
from object-detection-api.
from object-detection-api.
Here is my cfg file:
(saved it to a txt file instead of cfg because github won't allow me to upload cfg)
from object-detection-api.
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
from object-detection-api.
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.
![]()
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
![]()
![]()
This works for me! Thank you!
from object-detection-api.
Related Issues (20)
- modulenofounderror
- error when i run "app.py" cuda error. I'm in a hurryyyy!!!!!!!!!!!!!!!
- Object Detection API for YoloV4 HOT 5
- what happened to the generated label .txt files?
- DuplicateFlagError: The flag 'classes' is defined twice. First from /usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py, Second from /usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py. Description from first occurrence: path to classes file
- ImportError: No module named yolov3_tf2.models HOT 1
- How to add method when the object was detected ? HOT 3
- ValueError: cannot reshape array of size 324670 into shape (512,256,3,3) HOT 1
- Production server error
- Adding a new class to a pretrained custom model
- ValueError: Memory growth cannot differ between GPU devices
- API for YOLOv4 HOT 1
- Detect video error
- ValueError: cannot reshape array of size 4607 into shape (18,256,1,1) HOT 1
- Performance issue in the definition of transform_targets_for_output, yolov3_tf2/dataset.py(P1)
- Production Server Error
- ModuleNotFoundError: No module named 'tensorflow.keras' HOT 1
- How to Extract Pixel Values from Detections
- Very weak results with Tiny YOLOv3 weights HOT 1
- Unable to convert files to tf but no error is displayed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from object-detection-api.