Git Product home page Git Product logo

Comments (3)

esimov avatar esimov commented on May 18, 2024

IoU means intersection over union.

Because the detector is based on pixel intensity comparison, this means that it’s also sensible to small perturbations and variations of the underlying pixel data, influenced mostly by the scaling and the rotation of the objects, resulting overlaps in detection. This is the reason why the cascade detections are clustered together in a post processing step and the final result is produced by applying the intersection over union formula on the detected clusters.

To answer your question in most use cases the default value should just work fine. But you can also adapt the IoU value to your specific environment (light conditions for example), so I suggest if the default value is not working for you then adjust it accordingly. You should adjust it with a point decimal difference, because it is slightly sensible and might results in multiple overlapping detections. You should also check the iou value used on the real time examples (python and wasm version). I hope that this answered your question.

Endre

from pigo.

haydenzhourepo avatar haydenzhourepo commented on May 18, 2024

according to ClusterDetections function's code segment:

for j := 0; j < len(detections); j++ {
				// Check if the comparison result is below a certain threshold.
				if calcIoU(detections[i], detections[j]) > iouThreshold {
					assignments[j] = true
					r += detections[j].Row
					c += detections[j].Col
					s += detections[j].Scale
					q += detections[j].Q
					n++
				}
			}

Int this snippet, The calcloU fun which in the for's inner loop calutate the iou value of two detections,and if the calculated value is grater than the iouThreshold param , we union the two detections as one detection result, the same as the follow sequence dectections. As a result we get one unioned result in a inner loop. so the smaller the iouThreshold params is, the lesser the results num is. becouse if iouThreshold params is smaller we will union more detections as only one result.

So, Whether this comment // Check if the comparison result is below a certain threshold. should be // Check if the comparison result is greater then a certain threshold. if so we union the detections

from pigo.

esimov avatar esimov commented on May 18, 2024

Thanks for this notification. It has been corrected.

from pigo.

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.