EfficientDet.Pytorch icon indicating copy to clipboard operation
EfficientDet.Pytorch copied to clipboard

No boxes to NMS!!!!!!!!!!!!!!!!!!!

Open WIKI2020 opened this issue 5 years ago • 27 comments

The code can not be used at all. It can be trained and tested. However, demo.py prompt:"no boxes to NMS", and eval. Py prompt:"AVG map: 0.0"

WIKI2020 avatar Jan 08 '20 03:01 WIKI2020

All parameters are set correctly

WIKI2020 avatar Jan 08 '20 03:01 WIKI2020

Me too!

lgl603 avatar Jan 08 '20 11:01 lgl603

same issue

Jasper-Bai avatar Jan 09 '20 08:01 Jasper-Bai

+1

trulyjupiter avatar Jan 10 '20 04:01 trulyjupiter

yeah, there are some problems, run demo.py, still happen no boxes to NMS, but can got mAP 0.5439399966. and training, the CPU cost is very hight, even over 85%

y78h11b09 avatar Jan 11 '20 01:01 y78h11b09

yeah, there are some problems, run demo.py, still happen no boxes to NMS, but can got mAP 0.5439399966. and training, the CPU cost is very hight, even over 85%

hi,can u infer an image correctly?

midasklr avatar Jan 11 '20 07:01 midasklr

@toandaominh1997 can u fix this problem?

hawl666 avatar Jan 13 '20 12:01 hawl666

Has anyone solved it?

huwanpeng avatar Jan 13 '20 12:01 huwanpeng

same issue.

wanglaotou avatar Jan 14 '20 06:01 wanglaotou

I had solved this problem by downgrading the version of torchvision from 0.4.2 to 0.4.0

wongtou avatar Jan 15 '20 09:01 wongtou

in the readme.md, it says like that: PyTorch 1.3+ Torchvision 0.4.0+ (We need high version because Torchvision support nms now.) while the torchvision==0.4.0 should match torch==1.2.0, so which version of you torch?

wanglaotou avatar Jan 15 '20 09:01 wanglaotou

in the readme.md, it says like that: PyTorch 1.3+ Torchvision 0.4.0+ (We need high version because Torchvision support nms now.) while the torchvision==0.4.0 should match torch==1.2.0, so which version of you torch?

pytorch will downgrade to 1.2.0 meanwhile, but it still work.

wongtou avatar Jan 15 '20 09:01 wongtou

This EfficientDet Less effective than yolov3. I have verified!

WIKI2020 avatar Jan 16 '20 04:01 WIKI2020

in the readme.md, it says like that: PyTorch 1.3+ Torchvision 0.4.0+ (We need high version because Torchvision support nms now.) while the torchvision==0.4.0 should match torch==1.2.0, so which version of you torch?

pytorch will downgrade to 1.2.0 meanwhile, but it still work. I changed my torch=1.2.0 and torchvision=0.4.0, after trained 10 epoch, its ap is still 0.0 and no boxes to nms, do you have any ideas?

wanglaotou avatar Jan 16 '20 06:01 wanglaotou

in the readme.md, it says like that: PyTorch 1.3+ Torchvision 0.4.0+ (We need high version because Torchvision support nms now.) while the torchvision==0.4.0 should match torch==1.2.0, so which version of you torch?

pytorch will downgrade to 1.2.0 meanwhile, but it still work. I changed my torch=1.2.0 and torchvision=0.4.0, after trained 10 epoch, its ap is still 0.0 and no boxes to nms, do you have any ideas?

I wrote a blog: https://www.cnblogs.com/xiaoyh/p/12201934.html, I hope to help you.

xiaow1998 avatar Jan 16 '20 09:01 xiaow1998

thanks, just like the blog you wrote, change this line parser.add_argument('--network', default='efficientdet-d0', type=str, help='efficientdet-[d0, d1, ..]') to: parser.add_argument('--network', default='efficientdet-d1', type=str, help='efficientdet-[d0, d1, ..]') am i right? btw, i trained my own datasets from scratch.

wanglaotou avatar Jan 16 '20 09:01 wanglaotou

Yes, I train my own data set too

xiaow1998 avatar Jan 16 '20 09:01 xiaow1998

只有D1网络可以的话,有毛用

WIKI2020 avatar Jan 17 '20 02:01 WIKI2020

Same issue here; I tried downgrading torchvision to 0.4.0 and using efficientdet-d1, but it still shows "No boxes to NMS"

Edit: After further inspection, it seems that during validation, the model actually can predict the boxes, but only a portion of the time. So, at least on my part, it just has to do with training the model more and cleaning up my dataset so that the model can predict better.

Edit2: The model didn't improve even after 150 epochs, so I switched to a different implentation (see below)

CraigWang1 avatar Jan 20 '20 18:01 CraigWang1

Same issue here; I tried downgrading torchvision to 0.4.0 and using efficientdet-d1, but it still shows "No boxes to NMS"

Edit: After further inspection, it seems that during validation, the model actually can predict the boxes, but only a portion of the time. So, at least on my part, it just has to do with training the model more and cleaning up my dataset so that the model can predict better.

Have you any updated for your result? because I'm also training on d1 model and getting low results for map.

quangtn266 avatar Jan 27 '20 01:01 quangtn266

@quangtn266 Yes so I tried training more, but even after 150 epochs there was still no improvement. So, I moved over to this different implementation: https://github.com/signatrix/efficientdet

No offense intended for toandaominh, but the one I switched to works insanely well and is much more effective; I didn't have any issues with the other implementation.

Hope this helps

CraigWang1 avatar Jan 27 '20 01:01 CraigWang1

pytroch 1.1 and torchvision 0.3.0 . only d0 cant train normaly ,

tangsipeng avatar Feb 27 '20 07:02 tangsipeng

pytroch 1.1 and torchvision 0.3.0 . only d0 cant train normaly ,

you mean that model from d1 to d7 can train normally and only d0 meets the problem, right?

quangtn266 avatar Feb 27 '20 08:02 quangtn266

@quangtn266 i mean only d0 don't meets the problem .

tangsipeng avatar Feb 27 '20 12:02 tangsipeng

i can train normal now , see the code of 'class EfficientDet' . maybe do test after 10 or more epochs can work well , but at the same time , i found that this Implementation have lots of difference from the paper.

tangsipeng avatar Feb 28 '20 01:02 tangsipeng

Same issue when training d5 for 160 epoches on COCO.

BaiqiangGit avatar Mar 16 '20 23:03 BaiqiangGit

The official implementation is out! https://github.com/google/automl/tree/master/efficientdet

CraigWang1 avatar Mar 18 '20 02:03 CraigWang1