Giter VIP home page Giter VIP logo

Comments (9)

limkimhoe avatar limkimhoe commented on September 17, 2024 1

Yes, happened that I came across that post and I find it interesting to share.

from object-detection-opencv.

arunponnusamy avatar arunponnusamy commented on September 17, 2024

Hello @limkimhoe , I have not tried tiny YOLO yet. It's on my to-do list to try next. I will give it a try and get back to you.

from object-detection-opencv.

limkimhoe avatar limkimhoe commented on September 17, 2024

Thank you in advance!

from object-detection-opencv.

limkimhoe avatar limkimhoe commented on September 17, 2024

Sorry, just tried. I think it got no problem, my issue was the number anchors. I got 9 pairs and the number was stated 6.

from object-detection-opencv.

limkimhoe avatar limkimhoe commented on September 17, 2024

Hi Arun,

I found something interesting.

https://stackoverflow.com/questions/36921249/drawing-angled-rectangles-in-opencv

Wonder if this applicable to OpenCV with YOLO weight.

from object-detection-opencv.

arunponnusamy avatar arunponnusamy commented on September 17, 2024

Hello @limkimhoe , I am not sure I understood your question clearly. You want to draw angled rectangles over detected objects using YOLO in the image?

from object-detection-opencv.

arunponnusamy avatar arunponnusamy commented on September 17, 2024

Cool. Thanks for sharing @limkimhoe.

from object-detection-opencv.

MURL1DHAR avatar MURL1DHAR commented on September 17, 2024

@limkimhoe I came across the same issue you had earlier. Can you please tell, how can I know number of anchors I have? I have put 3 but I am not sure. I am following this tutorial and they dont explain on how to count anchors : http://emaraic.com/blog/yolov3-custom-object-detector#ref1

from object-detection-opencv.

limkimhoe avatar limkimhoe commented on September 17, 2024

@limkimhoe I came across the same issue you had earlier. Can you please tell, how can I know number of anchors I have? I have put 3 but I am not sure. I am following this tutorial and they dont explain on how to count anchors : http://emaraic.com/blog/yolov3-custom-object-detector#ref1

@MURL1DHAR You can run the following script to check the anchors of your images for better result. Example for 480x480 9 pairs of anchors:
darknet.exe detector calc_anchors data/obj.data -num_of_clusters 9 -width 480 -heigh 480

Anchors looks like:
37.5147,61.6030, 45.9996,87.0276, 55.9612,106.0157, 69.6980,128.4734, 87.5660,154.2261, 63.9268,244.7612, 94.8347,186.5155, 100.9767,341.4545, 139.2702,283.6874

After each pair, there is a space gap. Total of 9 pairs of floating numbers.

So your Yolo layer in cfg file will state num=9. The Tiny model, cfg given 6 anchors. So you have to recalculate your images with 6 anchors. However, I tested my Tiny model with 9 anchors, it worked for me too.

Hope it is clear and able to helps.

from object-detection-opencv.

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.