Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training log update #48

Closed
peiyingxin opened this issue Aug 8, 2022 · 6 comments
Closed

Training log update #48

peiyingxin opened this issue Aug 8, 2022 · 6 comments

Comments

@peiyingxin
Copy link

thanks for sharing your excellent job!
can you update your training logs? when I have runned
configs/distillers/fgd/fgd_retina_rx101_64x4d_distill_retina_r50_fpn_2x_coco.py , I only got 30.4 mAP
Epoch(val) [24][625] bbox_mAP: 0.3040, bbox_mAP_50: 0.4980, bbox_mAP_75: 0.3140, bbox_mAP_s: 0.1640, bbox_mAP_m: 0.3300, bbox_mAP_l: 0.4160, bbox_mAP_copypaste: 0.304 0.498 0.314 0.164 0.330 0.416

I don't konw why
thank your~

@yzd-v
Copy link
Owner

yzd-v commented Aug 8, 2022

The log cannot help you to solve the problem. There must be something wrong with the codes. What's your mmdet version?

@peiyingxin
Copy link
Author

The log cannot help you to solve the problem. There must be something wrong with the codes. What's your mmdet version?

mmdet==2.25.0 mmcv-full==1.6.1

@yzd-v
Copy link
Owner

yzd-v commented Aug 8, 2022

Please refer README for the higher mmdet version. You might initialize the student and teacher wrongly.

@peiyingxin
Copy link
Author

In my training log, I found
2022-08-05 17:52:24,038 - mmdet - INFO - Set random seed to 0, deterministic: False
2022-08-05 17:52:26,558 - mmdet - INFO - initialize ResNeXt with init_cfg {'type': 'Pretrained', 'checkpoint': 'open-mmlab://resnext101_64x4d'}
2022-08-05 17:52:27,039 - mmdet - INFO - initialize FPN with init_cfg {'type': 'Xavier', 'layer': 'Conv2d', 'distribution': 'uniform'}
2022-08-05 17:52:27,095 - mmdet - INFO - initialize RetinaHead with init_cfg {'type': 'Normal', 'layer': 'Conv2d', 'std': 0.01, 'override': {'type': 'Normal', 'name': 'retina_cls', 'std': 0.01, 'bias_prob': 0.01}}
2022-08-05 17:52:27,234 - mmdet - INFO - initialize ResNet with init_cfg {'type': 'Pretrained', 'checkpoint': 'torchvision://resnet50'}
2022-08-05 17:52:27,452 - mmdet - INFO - initialize FPN with init_cfg {'type': 'Xavier', 'layer': 'Conv2d', 'distribution': 'uniform'}
2022-08-05 17:52:27,509 - mmdet - INFO - initialize RetinaHead with init_cfg {'type': 'Normal', 'layer': 'Conv2d', 'std': 0.01, 'override': {'type': 'Normal', 'name': 'retina_cls', 'std': 0.01, 'bias_prob': 0.01}}
It seems that student and teacher all init from pretrained model, right?

@yzd-v
Copy link
Owner

yzd-v commented Aug 8, 2022

For mmdet>2.12, you have to change the tools/train.py and mmdet/distillation/distillers/detection_distiller.py. You can refer MGD to change this.

@peiyingxin
Copy link
Author

OK, I will change code refer MGD.
Thanks for your reply!!

@yzd-v yzd-v closed this as completed Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants