edgeai-benchmark
edgeai-benchmark copied to clipboard
about how to preprocess the picture?
Hello, excuse me : i have some questions that is as follows:
- in your preprocess code, https://github.com/TexasInstruments/edgeai-benchmark/blob/16e57a65e7aa2802a6ac286be297ecc5cad93344/scripts/benchmark_custom.py#L253. why the resize and crop is the same, in my thinking, if they are the same ,after crop, the picture is nothing.
- why you set the resize(w and h) is the same [eg. 640x640], if the original picture's width and height are different, the picture will be out of shape which influence the detection? https://github.com/TexasInstruments/edgeai-benchmark/blob/16e57a65e7aa2802a6ac286be297ecc5cad93344/scripts/benchmark_custom.py#L220
expect your reply soon. thanks
perhaps my thinking is a mistake, because i set the resize(1536) and crop(256), the code ./scripts/benchmark_custom.py can'run, and it occur error as follows:
can you help explain ?
@mathmanu