edgeai-benchmark icon indicating copy to clipboard operation
edgeai-benchmark copied to clipboard

about how to preprocess the picture?

Open Onehundred0906 opened this issue 2 years ago • 2 comments

Hello, excuse me : i have some questions that is as follows:

  1. 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.
  2. 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

Onehundred0906 avatar Dec 09 '22 10:12 Onehundred0906

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: 2022-12-09 18-36-16屏幕截图

can you help explain ?

Onehundred0906 avatar Dec 09 '22 10:12 Onehundred0906

@mathmanu

Onehundred0906 avatar Dec 09 '22 13:12 Onehundred0906