-
Notifications
You must be signed in to change notification settings - Fork 556
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
[Algorithm] Support PSC #617
Conversation
Support PSC, phase-shifting coder and dual-frequency phase-shifting coder.
Hi, thanks for your great work. |
I copied the rotated-fcos-hbox-le90_r50_fpn_csl-gaussian_1x_dota.py, deleted 'use_hbbox_loss=True', and then the error occured. With use_hbbox_loss=True, both CSL and PSC can work now. |
In 1.x fcos, the parameters are a bit different from 0.x, you can see the diff in #543 . 'hbb' in cfg name means 'use_hbbox_loss=True'. When set It seems PSC's decoding process is differentiable, you can try PSC with Rotated IoU Loss too. |
Thanks, I have just finished the training on HRSC, the mAP50 of FCOS+PSC is 90.1 |
Co-authored-by: Yue Zhou <592267829@qq.com>
hello, can I ask how to infer this? I tried to infer this one but I got this error |
Can you provide the command to reproduce this error? |
this is the command I used register_all_modules() config_file = '/mmrotate/configs/psc/rotated-retinanet-rbox-le90_r50_fpn_psc-dual_amp-1x_dota.py' model = init_detector(config_file, checkpoint_file, device='cuda:0') visualizer = VISUALIZERS.build(model.cfg.visualizer) visualizer.dataset_meta = model.dataset_meta |
@Leael register_all_modules_mmdet() |
Thanks! It worked but when I add this code to show the result. I got this error |
@Leael That is a bug caused by the different definition of bbox between visualization and inference, which is supposed to be fixed by mainteners. |
@zytx121 Hi, the ci is stuck at "First-time contributors need a maintainer to approve running workflows.". Could you find a authorized maintainer to approve it for me |
Thanks for your contribution! I will promote this PR as soon as possible. Your CI has passed . Please don't care the error about build_windows. We have fix it in #621 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## dev-1.x #617 +/- ##
==========================================
Coverage ? 79.76%
==========================================
Files ? 95
Lines ? 6448
Branches ? 912
==========================================
Hits ? 5143
Misses ? 1008
Partials ? 297 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add a metafile and insert it in https://github.com/open-mmlab/mmrotate/blob/main/model-index.yml
* [Algorithm] Support PSC Support PSC, phase-shifting coder and dual-frequency phase-shifting coder. * Change encoded_size to encode_size * Add configs based on rotated-fcos * Apply suggestions from code review Co-authored-by: Yue Zhou <592267829@qq.com> * Add HRSC config for rotated_fcos * Update README, Fix bug in AngleBranchRetinaHead * Fix README lint error * Update README * Update download link * Add metafile * Update model-index.yml * Update metafile.yml Co-authored-by: Yue Zhou <592267829@qq.com>
Dear yuyi1005, |
Motivation
Support PSC, phase-shifting coder and dual-frequency phase-shifting coder.
Modification
Performance are as follows:
DOTA:
HRSC: