nanodet icon indicating copy to clipboard operation
nanodet copied to clipboard

Keep ratio in ncnn android demo?

Open CheungBH opened this issue 3 years ago • 4 comments

Hello. I noticed that you use padding(keep ratio) in training and demo code(python). But in the ncnn android code, there is no padding. Why is it? Won't the performance be worse?

CheungBH avatar Nov 08 '21 12:11 CheungBH

NanoDet supports dynamic input size. Resize(keep ratio) without padding to square is okay. Just make sure the width and height are divisible to 32.

RangiLyu avatar Nov 09 '21 03:11 RangiLyu

By the way, the input in the android demo is cropped to square.

RangiLyu avatar Nov 09 '21 03:11 RangiLyu

By the way, the input in the android demo is cropped to square.

Thanks for your reply. It is cropped with the image center, and resized to 320x320? https://github.com/RangiLyu/nanodet/blob/c931de553e0ded55e8811e51cf0b74ac3aa5e9de/demo_android_ncnn/app/src/main/cpp/NanoDet.h#L44

CheungBH avatar Nov 09 '21 05:11 CheungBH

It's nanodet trained with RGB images?

CheungBH avatar Nov 09 '21 17:11 CheungBH