Repository navigation
Conversation
|
Hi, @LayneH |
|
Hi @LayneH |
|
Hi, @LayneH . Could you grant authorization on me about your forked MMSegmentation followed here? Thus I could push my modifications on your branch. Right now there are too many errors / bugs detected by our CI in Github. I could use my local Best, |
Codecov Report
@@ Coverage Diff @@
## master #1112 +/- ##
==========================================
- Coverage 90.11% 90.04% -0.08%
==========================================
Files 125 126 +1
Lines 7262 7652 +390
Branches 1206 1268 +62
==========================================
+ Hits 6544 6890 +346
- Misses 515 547 +32
- Partials 203 215 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
zengwang430521
left a comment
There was a problem hiding this comment.
How about setting HRFormer as a subclass of HRNet and reusing some functions?
| ) | ||
| layers = [] | ||
|
|
||
| if isinstance(block, HRFormerBlock): |
There was a problem hiding this comment.
I think there may be a bug in this line. Actually, block is not an instance of HRFormerBlock or Bottleneck, so this line will always return False. Maybe we should use block == HRFormerBlock.
|
|
||
| inplanes = planes * block.expansion | ||
| for i in range(1, blocks): | ||
| layers.append(block(inplanes, planes)) |
There was a problem hiding this comment.
Will this line cause an error whenblock is HRFormerBlock ?

Motivation
Support the HRFormer backbone published at NeurIPS'2021.
ref: open-mmlab/mmpose#1203
Modification
mmseg/models/backbones/hrformer.py: Add the implementation of HRFormer.configs/hrformer/*: Add configs for HRFormerBC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist