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
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:
- At
|
result = engine.infer(data['img'], data['img_metas'])[0] |
,
I have
data['img'].shape
torch.Size([1, 3, 1120, 1120])
- At
|
dets = self._get_raw_dets(img, img_metas) |
I have
img.shape
torch.Size([3, 1120, 1120])
x.shape
torch.Size([64, 560, 560])
input.shape
torch.Size([64, 560, 560])
Do I need to change 'num_groups=32' in tinaface_r50_fpn_gn_dcn.py?
Any suggestions? Thank you.
Hello,
On Windows WSL, compiled and installed
vedadetsuccessfully. 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=32No GPU, I ran
python infer.py configs/infer/tinaface/tinaface_r50_fpn_gn_dcn.py test.pngThe 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:
vedadet/tools/infer.py
Line 88 in 54731b9
I have
vedadet/vedadet/engines/infer_engine.py
Line 57 in 54731b9
I have
vedadet/vedadet/models/backbones/resnet.py
Line 624 in 54731b9
I have
It triggered the error as I have
Do I need to change 'num_groups=32' in tinaface_r50_fpn_gn_dcn.py?
Any suggestions? Thank you.