TexasInstruments / edgeai-benchmark

This repository has been moved. The new location is in https://github.com/TexasInstruments/edgeai-tensorlab
https://github.com/TexasInstruments/edgeai
Other
3 stars 0 forks source link

about how to preprocess the picture? #13

Open Onehundred0906 opened 1 year ago

Onehundred0906 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@mathmanu