Git Product home page Git Product logo

Comments (4)

surak avatar surak commented on May 30, 2024 1

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.

ibaiGorordo avatar ibaiGorordo commented on May 30, 2024

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.

surak avatar surak commented on May 30, 2024

Ok, thanks for the info. I am able to use YoloV7 on a Raspberry Pi with reasonable performance by

from onnx-yolov7-object-detection.

ibaiGorordo avatar ibaiGorordo commented on May 30, 2024

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)

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.