nwtaf / image-format-size-comparison

Visualizes the impact of image resizing across various image formats including JPEG, PNG, and BMP.
0 stars 0 forks source link

Find perfect image size #4

Open nwtaf opened 6 months ago

nwtaf commented 6 months ago

Notes: model(source, imgsz) automatically resizes to 640. There is probably a reason for that size. Further, if an image of a particular size overrides the default imgsz argument, the image will get resized to some nearby size that is a "multiple of max stride 32".

image

nwtaf commented 6 months ago

Interestingly, the first image takes the longest. These are not batched. Something else is going on in the preprocessing for the first image maybe.

image

Getting rid of the first frame total time datapoint (this applies to all first time be it preprocessing, during, or post).

image