CenterNet2 icon indicating copy to clipboard operation
CenterNet2 copied to clipboard

when I use custom dataset to train CenterNet2_R2-101-DCN-BiFPN_1280_4x ,the project is break.

Open ZJU-lishuang opened this issue 3 years ago • 6 comments

File "/home/lishuang/Disk/gitlab/traincode/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/bifpn_fcos.py", line 240, in forward
   raise NotImplementedError()
NotImplementedError

h =1 target_h =1 w =2 target_w =1 How to deal with it?

ZJU-lishuang avatar Mar 19 '21 08:03 ZJU-lishuang

I have the same problem when i train CenterNet2_DLA-BiFPN-P5_640_24x_ST.yaml

Linchunhui avatar Mar 23 '21 01:03 Linchunhui

I also have the same problem when i train CenterNet2_DLA-BiFPN-P5_640_24x_ST.yaml hope to get some help

xiaowanzizz avatar Mar 24 '21 03:03 xiaowanzizz

Hi all, Thank you for bringing up the issue and sorry for the very delayed response. It is caused by incorrect size divisibility in the fcos_bifpn backbone. I have fixed this in the most recent commit and the error should have gone. Strangely I didn't meet this before when I train the model. This may indicate there are some unnoted differences between the release code and my development version. I will check this.

xingyizhou avatar Apr 02 '21 21:04 xingyizhou

When I train CenterNet2_DLA-BiFPN-P3_24x.yaml, I have a problem.

File "/data/anaconda3/envs/detectron2/lib/python3.8/site-packages/yacs/config.py", line 491, in _merge_a_into_b raise KeyError("Non-existent config key: {}".format(full_key)) KeyError: 'Non-existent config key: MODEL.ROI_BOX_HEAD.MULT_PROPOSAL_SCORE'

XYSC avatar May 24 '21 07:05 XYSC

When I train CenterNet2_DLA-BiFPN-P3_24x.yaml, I have a problem.

File "/data/anaconda3/envs/detectron2/lib/python3.8/site-packages/yacs/config.py", line 491, in _merge_a_into_b raise KeyError("Non-existent config key: {}".format(full_key)) KeyError: 'Non-existent config key: MODEL.ROI_BOX_HEAD.MULT_PROPOSAL_SCORE'

@XYSC @xingyizhou I also facing the same problem.

hosea7456 avatar Jun 25 '21 05:06 hosea7456

You can use this below code to add new config keys: from detectron2.projects.CenterNet2.centernet.config import add_centernet_config cfg = get_cfg() add_centernet_config(cfg)

huyphan168 avatar Jul 24 '21 17:07 huyphan168