JDSobek / MedYOLO

A 3D bounding box detection model for medical data.
GNU Affero General Public License v3.0
43 stars 10 forks source link

A question about Center coordinates #26

Open yingao123 opened 1 month ago

yingao123 commented 1 month ago

I doubt why "Center coordinates should fall between -0.5 and 1.5." They are the fraction of the width and height, shouldn't they fall between 0.0 to 1.0?

JDSobek commented 1 month ago

It's to accommodate objects that are centered outside the image. I don't know when this would be useful in medical imaging, perhaps in some ultrasound images or near the top/bottom of a scan, but it was a natural consequence of using YOLOv5's formula for processing predictions.

The edges of the image are still 0 and 1, you just have the capability of annotating/detecting objects that aren't fully in-frame, as long as they are centered close enough to 0 and 1.