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
miou=0 when running the code on voc2012 dataset #15
Comments
Thanks for your attention. |
thank you for your help! |
The py file in work_dirs is as follow. |
When I use this code(https://github.com/pppppM/mmsegmentation-distiller) for testing on voc2012, the result is normal. |
There seem to be two mistakes in your config:
Could you please check if these two places are consistent with your config in mmsegmentation-distiller? @wwjwy |
I changed these two places, but there are still problems。 2021-12-25 23:25:50,995 - mmseg - INFO - |
could you please run the code i just provide on voc2012 dataset and check whether there is something wrong with the code? Thanks! |
Could you upload mmrazor's complete training log and mmseg-distiller's ? |
Today I tried again on my own data set, and the result seems to be normal. The strange thing is that miou seems a bit low, I will upload the complete training log later. Thanks! |
I trained my own dataset, but i found the miou is low when compared with original model. The training file is attached, can you give me some suggestion on improving model performance? by the way, the r50-pspnet can achieve miou=85.0, the r18-pspnet can only achieve miou=79.33 after training 100000 steps. Thanks! |
This seems to be not a problem of mmrazor but a problem of cwd. |
Co-authored-by: caoweihan <caoweihan@sensetime.com>
* Base Framework (open-mmlab#24) * Base Framework * [Feature] Add loss * [Feature] Add op (open-mmlab#4) * [Feature] Add mutator (open-mmlab#3) * [Feature] Add mutable (open-mmlab#2) * [Feature] Add architecture (open-mmlab#1) * [Docs] Add Docs (open-mmlab#6) * add docs * fix known_third_party Co-authored-by: qiufeng <qiufeng3217@gmail.com> * update docs (open-mmlab#12) Co-authored-by: qiufeng <qiufeng3217@gmail.com> * [Docs] Add README (open-mmlab#10) * add readme * refactor readme * add logo * update release time Co-authored-by: qiufeng <qiufeng3217@gmail.com> * [Docs] Add Resources (open-mmlab#11) * add resources * fix known_third_party * fix known_third_party * fix known_third_party * refactor resources Co-authored-by: qiufeng <qiufeng3217@gmail.com> * add pytest (open-mmlab#18) Co-authored-by: caoweihan <caoweihan@sensetime.com> * add utils (open-mmlab#17) Co-authored-by: caoweihan <caoweihan@sensetime.com> * add distillers (open-mmlab#16) Co-authored-by: caoweihan <caoweihan@sensetime.com> * add pruners (open-mmlab#15) Co-authored-by: caoweihan <caoweihan@sensetime.com> * fix bug * update docstring (open-mmlab#20) * Prepare for open source (open-mmlab#23) * update MMRazor description * update Github action * add Mircosoft copyright * update requirements * fix a bug * fix a typo Co-authored-by: humu789 <humu@pjlab.org.cn> Co-authored-by: humu789 <88702197+humu789@users.noreply.github.com> Co-authored-by: qiufeng <44188071+wutongshenqiu@users.noreply.github.com> Co-authored-by: qiufeng <qiufeng3217@gmail.com> Co-authored-by: whcao <41630003+HIT-cwh@users.noreply.github.com> Co-authored-by: caoweihan <caoweihan@sensetime.com> * fix readme and pre-commit * rename tutorials * fix a bug * pass lint Co-authored-by: pppppM <67539920+pppppM@users.noreply.github.com> Co-authored-by: humu789 <humu@pjlab.org.cn> Co-authored-by: humu789 <88702197+humu789@users.noreply.github.com> Co-authored-by: qiufeng <44188071+wutongshenqiu@users.noreply.github.com> Co-authored-by: qiufeng <qiufeng3217@gmail.com> Co-authored-by: caoweihan <caoweihan@sensetime.com>
* Base Framework (open-mmlab#24) * Base Framework * [Feature] Add loss * [Feature] Add op (open-mmlab#4) * [Feature] Add mutator (open-mmlab#3) * [Feature] Add mutable (open-mmlab#2) * [Feature] Add architecture (open-mmlab#1) * [Docs] Add Docs (open-mmlab#6) * add docs * fix known_third_party Co-authored-by: qiufeng <qiufeng3217@gmail.com> * update docs (open-mmlab#12) Co-authored-by: qiufeng <qiufeng3217@gmail.com> * [Docs] Add README (open-mmlab#10) * add readme * refactor readme * add logo * update release time Co-authored-by: qiufeng <qiufeng3217@gmail.com> * [Docs] Add Resources (open-mmlab#11) * add resources * fix known_third_party * fix known_third_party * fix known_third_party * refactor resources Co-authored-by: qiufeng <qiufeng3217@gmail.com> * add pytest (open-mmlab#18) Co-authored-by: caoweihan <caoweihan@sensetime.com> * add utils (open-mmlab#17) Co-authored-by: caoweihan <caoweihan@sensetime.com> * add distillers (open-mmlab#16) Co-authored-by: caoweihan <caoweihan@sensetime.com> * add pruners (open-mmlab#15) Co-authored-by: caoweihan <caoweihan@sensetime.com> * fix bug * update docstring (open-mmlab#20) * Prepare for open source (open-mmlab#23) * update MMRazor description * update Github action * add Mircosoft copyright * update requirements * fix a bug * fix a typo Co-authored-by: humu789 <humu@pjlab.org.cn> Co-authored-by: humu789 <88702197+humu789@users.noreply.github.com> Co-authored-by: qiufeng <44188071+wutongshenqiu@users.noreply.github.com> Co-authored-by: qiufeng <qiufeng3217@gmail.com> Co-authored-by: whcao <41630003+HIT-cwh@users.noreply.github.com> Co-authored-by: caoweihan <caoweihan@sensetime.com> * fix readme and pre-commit * rename tutorials * fix a bug * pass lint Co-authored-by: pppppM <67539920+pppppM@users.noreply.github.com> Co-authored-by: humu789 <humu@pjlab.org.cn> Co-authored-by: humu789 <88702197+humu789@users.noreply.github.com> Co-authored-by: qiufeng <44188071+wutongshenqiu@users.noreply.github.com> Co-authored-by: qiufeng <qiufeng3217@gmail.com> Co-authored-by: caoweihan <caoweihan@sensetime.com>
…-mmlab#15) * add mmdeploy short introduction * add acknowledgement to OpenPPL team * update acknowledgement
I downloaded the voc2012 dataset, and downloaded the weights(pspnet_r101-d8_512x512_20k_voc12aug_20200617_102003-4aef3c9a.pth ) in mmsegmentation, and ran the following code.
python tools/mmseg/train_mmseg.py configs/distill/cwd/cwd_cls_head_pspnet_r101_d8_pspnet_r18_d8_512x1024_voc2012_80k.py --cfg-options algorithm.distiller.teacher.init_cfg.type=Pretrained algorithm.distiller.teacher.init_cfg.checkpoint=pretrained/pspnet_r101-d8_512x512_20k_voc12aug_20200617_102003-4aef3c9a.pth
the validation results are as follows:
+-------------+-------+-------+
| Class | IoU | Acc |
+-------------+-------+-------+
| background | 73.31 | 99.89 |
| aeroplane | 0.0 | 0.0 |
| bicycle | 0.0 | 0.0 |
| bird | 0.0 | 0.0 |
| boat | 0.0 | 0.0 |
| bottle | 0.0 | 0.0 |
| bus | 0.0 | 0.0 |
| car | 0.0 | 0.0 |
| cat | 0.0 | 0.0 |
| chair | 0.0 | 0.0 |
| cow | 0.0 | 0.0 |
| diningtable | 0.0 | 0.0 |
| dog | 0.0 | 0.0 |
| horse | 0.0 | 0.0 |
| motorbike | 0.0 | 0.0 |
| person | 0.32 | 0.33 |
| pottedplant | 0.0 | 0.0 |
| sheep | 0.0 | 0.0 |
| sofa | 0.0 | 0.0 |
| train | 0.0 | 0.0 |
| tvmonitor | 0.0 | 0.0 |
+-------------+-------+-------+
2021-12-24 11:09:10,633 - mmseg - INFO - Summary:
2021-12-24 11:09:10,633 - mmseg - INFO -
+-------+------+------+
| aAcc | mIoU | mAcc |
+-------+------+------+
| 73.25 | 3.51 | 4.77 |
+-------+------+------+
can you help me sove this? Thanks
The text was updated successfully, but these errors were encountered: