some image coords are not being saved
fm64hylian opened this issue · 7 comments
I have hundreds of images correctly being saved but there's these 2 jpg images where no matter how I save, the coords are not being added to the txt file:
for some reason, only the, percentages? are being saved. These two images are the only ones where this is happening. I tried with another 600 images(jpg and png) and both fields are being saved. What could it be?
Thank you
@fm64hylian
Can you send me these files?
@fm64hylian
what size do you resize?
it's not a small size, those are the resized images^, my script will only resize in half if the image is over 1000px, so a image will never be smaller than 500px. My darknet model resizes at 416px anyway
Lines 56 to 57 in e002e18
Look at the above condition, if your bounding box is too small, the box would not be saved. Can you check this?
I'm really sorry, I was mistaking the labelling format with a different labelling tool, other tools label like 0 214 332 145 423 etc and I was getting mixed formats when saving the labels, so it is labelling correctly.
Unfortunately, I cannot check on my laptop because the insufficient resolution issue, but thanks.
the code is the same btw:
bool width_is_too_small = objBoundingbox.box.width() * m_inputImg.width() < 4;
bool height_is_too_small = objBoundingbox.box.height() * m_inputImg.height() < 4;
Sorry for the misunderstanding.
@fm64hylian
It's okay~!