Media-Smart / vedadet

A single stage object detection toolbox based on PyTorch
Apache License 2.0
498 stars 128 forks source link

Inference error using pretrained TinaFace model on my png file #98

Open junwei-h opened 1 year ago

junwei-h commented 1 year ago

Hello, On Windows WSL, compiled and installed vedadet successfully. When using my own image 128x128 png file to test TinaFace, I got the following error:

Expected number of channels in input to be divisible by num_groups, but got input of shape [64, 560, 560] and num_groups=32

Python 3.8
torch                     1.13.1

No GPU, I ran

python infer.py configs/infer/tinaface/tinaface_r50_fpn_gn_dcn.py test.png

The pre-trained model is tinaface_r50_fpn_gn_dcn.pth and the test.png has 128 x 128 px.

Here is how far I traced the error & the image dimension:

Any suggestions? Thank you.