Comments (7)
You can pass —model yolov4, because default is yolov3
I'm so sorry, In my case, YOLO.CLASSES value was wrong. I changed it and problem solved.
But another error occurred:
InvalidArgumentError: Input to reshape is a tensor with 1472880 values, but the requested shape has 103968
I solved it too, by adding cv2.resize after cv2.imread in detect.py.
from tensorflow-yolov4-tflite.
You can pass —model yolov4, because default is yolov3
Yes, the problem has been solved. The model can work normally. Your work is amazing. I am a beginner of computer vision. I will study your code carefully in the next few days and train yolov4 on my own dataset,thanks
from tensorflow-yolov4-tflite.
@bgamini
What model do you use ?
What pretrained weight do you use ?
from tensorflow-yolov4-tflite.
I downloaded weights from AlexeyAB's repository, from this link:
https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.weights
Note: I'm trying on detect.py with default arguments.
from tensorflow-yolov4-tflite.
You can try this command
python detect.py --weights ./data/yolov4.weights --framework tf --model yolov4 --size 608 --image your_image_path
from tensorflow-yolov4-tflite.
Hi,
I also get 'failed to read all data' error when I follow your tutorial exactly:
assert len(wf.read()) == 0, 'failed to read all data'
when I run the evaluate.py like below:
python evaluate.py --weights ./data/yolov4.weights
I wonder where I'm wrong
from tensorflow-yolov4-tflite.
You can pass —model yolov4, because default is yolov3
from tensorflow-yolov4-tflite.
Related Issues (20)
- geYOLOv4 multiple bounding box for the same object
- Is there a way to do object detection in videos(.mp4) on Android?
- ValueError: cannot reshape array of size 92951 into shape (256,128,3,3) HOT 2
- InvalidArgumentError: scores has incompatible shape [Op:CombinedNonMaxSuppression]
- Bounding boxes not showing when using tensorflow-gpu HOT 1
- Is it possible to deploy on this app yolov5 model ?
- Errors with converted yolov4 model on Android Studio
- TensorRT
- weights not saved properly HOT 1
- yolo v4 -tiny weights conversion to .pb HOT 1
- I really want to convert .weights into a .tflite model but nothing works HOT 3
- Duplicate node name in graph: 'packed'
- Changing The Loss Function
- ValueError: not enough values to unpack (expected 5, got 0)
- Caused by: java.lang.IllegalArgumentException: Cannot copy from a TensorFlowLite tensor (StatefulPartitionedCall:0) with shape [1, 10647, 7] to a Java object with shape [1, 13, 13, 35].
- Weights are 404 on Google Drive HOT 1
- Problem when quantizing models
- Detect button crash
- ValueError: Mmap of '31' at offset '0' failed with error '19'.
- Value unexpected in model graph
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 tensorflow-yolov4-tflite.