-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Feature] Dedicated MMSegWandbHook for MMSegmentation (Weights and Biases Integration) #1603
Conversation
Hi, @ayulockin thank you so much for your warm-hearted and detailed PR, we would review it ASAP! Best, |
By the way, could you please fix the unit test error? Thanks in advance! |
Thanks for the quick response. Yes I will fix the unit test. |
Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
Hi @ayulockin |
Hey @xiexinch thanks for letting me know. Yeah this line is something I would not have wanted in the first place. One of the feature introduced by this PR is to log the model prediction as W&B Tables. In order to do so, I am doing something like this:
The line 202 is where I am getting the prediction result by running the evaluation again (the evaluation is also done by the I can make a commit to show the proposed solution but it might require changes in other files (for compatibility). On the flipside it will fix the circular import issue hopefully. |
Based on this SO discussion: https://stackoverflow.com/questions/744373/circular-or-cyclic-imports-in-python I did a minor modification. Not sure if it will fix the issue but worth a try. cc: @xiexinch |
Try to activate the CI.
Sorry for the late reply. This method doesn't work. pytest tests/test_config.py |
Thanks for this. Will try the more elaborate solution. |
Codecov Report
@@ Coverage Diff @@
## master #1603 +/- ##
==========================================
- Coverage 90.25% 89.04% -1.22%
==========================================
Files 142 144 +2
Lines 8477 8636 +159
Branches 1428 1458 +30
==========================================
+ Hits 7651 7690 +39
- Misses 586 706 +120
Partials 240 240
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
A minor modification with reference to 'eval_hooks.py'
|
…ases Integration) (open-mmlab#1603) * wandb integration * wandb integration * Update mmseg/core/hook/wandblogger_hook.py Co-authored-by: 谢昕辰 <xiexinch@outlook.com> * trying to fix circular import issue * Update mmseg/core/hook/wandblogger_hook.py docstring Try to activate the CI. * move import op in func * add comments to test_fn Co-authored-by: xiexinch <test767803@foxmail.com> Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
* add associative embedding codec * refactor decoding [wip] * refactor decoding process * add associative embedding codec * refactor decoding refinements * add missing keypoint complement and unit test * support dynamic input_size in decoding * add unit test for decoding with dynamic size
Motivation
The goal of this PR is to contribute a dedicated Weights and Biases hook for MMSegmentation called
MMSegWandbHook
.Modification
The PR adds one new file
wandblogger_hook.py
where all the Weights and Biases related logc lives, and modifies theeval_hook.py
to reuse the validation results.The feature can easily be used this:
Use cases (Optional)
Here are some of the use cases that this PR introduces and should be helpful to the community in general.
Metrics
Screen.Recording.2022-05-20.at.4.46.44.PM.mov
Checkpointing with Metadata
log_checkpoint
is True, the checkpoint saved at every checkpoint interval will be saved as W&B Artifacts.log_checkpoint_metadata
is True, every checkpoint artifact will have metadata associated with it as shown in the recording below.Screen.Recording.2022-05-20.at.5.00.03.PM.mov
Log Model Prediction 🎉
If
num_eval_images > 0
, at every evaluation interval, theMMSegWandbHook
logs the model prediction as interactive W&B Tables. To know more about W&B Tables, please refer to the docs here.Screen.Recording.2022-05-20.at.5.02.18.PM.mov