Comments (4)
About the "post", it's probably something trivial, but I don't know:
Traceback (most recent call last):
File "/home/surak/Devel/bird/ONNX-YOLOv7-Object-Detection/webcam_object_detection.py", line 31, in <module>
boxes, scores, class_ids = yolov7_detector(frame)
File "/home/surak/Devel/bird/ONNX-YOLOv7-Object-Detection/YOLOv7/YOLOv7.py", line 19, in __call__
return self.detect_objects(image)
File "/home/surak/Devel/bird/ONNX-YOLOv7-Object-Detection/YOLOv7/YOLOv7.py", line 39, in detect_objects
self.boxes, self.scores, self.class_ids = self.parse_processed_output(outputs)
File "/home/surak/Devel/bird/ONNX-YOLOv7-Object-Detection/YOLOv7/YOLOv7.py", line 112, in parse_processed_output
class_ids = predictions[:, 1]
IndexError: index 1 is out of bounds for axis 1 with size 1
About performance, I'm getting about 1.6fps with a 640x384 yolo tiny, and 0.23fps with yolov7-384-640.
I'm happy with it for now, as it does what I want from it. Thanks!
from onnx-yolov7-object-detection.
I think he has added some new models, but probably any of the models of the single batch groups should work (both the ones with and without postprocessing included)
from onnx-yolov7-object-detection.
Ok, thanks for the info. I am able to use YoloV7 on a Raspberry Pi with reasonable performance by
- calling https://github.com/PINTO0309/PINTO_model_zoo/blob/main/307_YOLOv7/download_single_batch.sh
- adding the
yolov7-tiny_480x640.onnx
to thewebcam_object_detection.py
- The
post
processed` one didn't work, with the same size. I didn't try any other files.
from onnx-yolov7-object-detection.
Thanks for the changes. What error did you get? In my case, it runs fine on a computer, so it might have to do with the fact that it is running on a Raspberry Pi.
On that note, if you want to run the model in the raspberry pi, my code might not be that well optimized there and you can probably get some increase on speed if you optimize it. Also, it might also run faster in another framework like Tensorflow Lite.
from onnx-yolov7-object-detection.
Related Issues (20)
- cannot import name 'YOLOv7' from 'yolov7' HOT 11
- yolov7 export settings for use with a custom dataset HOT 5
- ERROR HOT 4
- Exception useCuda = true
- Doubt about official_nms HOT 1
- Onnx boxes to opencv boxes HOT 1
- 100% CPU usage while HOT 1
- how to do filter for classes that i want to detect HOT 1
- Can not run on cpu HOT 2
- how to convert pt to onnx? HOT 1
- Fatal error: TRT:EfficientNMS_TRT(-1) is not a registered function/op
- Here the code for GPU but it seems, doesn't run fast
- Floating Point 16 ONNX model conversion
- Run innx on my GPU ?
- Handling of low socre in process_output HOT 2
- Hi, could you tell how to convert original yolov7 model to onnx? HOT 1
- decode HOT 1
- Only detect persons and bicycles HOT 2
- It is crash In the NMS mode. HOT 7
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 onnx-yolov7-object-detection.