TensorFlow-2.x-YOLOv3
TensorFlow-2.x-YOLOv3 copied to clipboard
image_preprocess resizing
hi, I just stumbled upon the code of image_preprocess in yolov3/utils.py why is the image padded instead of resized (stretched) correctly? is this why the boxes work better in my example with cv2 vs tf?

on a sidenote: I removed the second cv2.cvtColor from my code as well as mentioned in this issue (https://github.com/pythonlessons/TensorFlow-2.x-YOLOv3/issues/131) that's why the resized cv2 image is correctly colored
I have made the following changes to the utils functions:
image_preprocess

postprocess_boxes

I do realize a PR would be easier to follow but I am kinda lazy right now and would rather discuss if this is the right approach or not.
Results:


Hi, you did interesting testing. I'll try this by myself and measure mAP before and after this change. I Will let you know the results.
looking forward to your results!