-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Feature] Config new type #2390
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
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## new_config #2390 +/- ##
===========================================
Coverage 82.02% 82.03%
===========================================
Files 233 233
Lines 13643 13645 +2
Branches 2320 2321 +1
===========================================
+ Hits 11191 11194 +3
+ Misses 1916 1914 -2
- Partials 536 537 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
When I attempt to train using the config file Traceback (most recent call last):
File "/mnt/workspace/lupeng/new_config/mmengine/mmengine/registry/build_functions.py", line 122, in build_from_cfg
obj = obj_cls(**args) # type: ignore
File "/mnt/workspace/lupeng/new_config/mmpose/mmpose/models/pose_estimators/topdown.py", line 47, in __init__
super().__init__(
File "/mnt/workspace/lupeng/new_config/mmpose/mmpose/models/pose_estimators/base.py", line 47, in __init__
self.backbone = MODELS.build(backbone)
File "/mnt/workspace/lupeng/new_config/mmengine/mmengine/registry/registry.py", line 554, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/mnt/workspace/lupeng/new_config/mmengine/mmengine/registry/build_functions.py", line 250, in build_model_from_cfg
return build_from_cfg(cfg, registry, default_args)
File "/mnt/workspace/lupeng/new_config/mmengine/mmengine/registry/build_functions.py", line 144, in build_from_cfg
raise type(e)(
TypeError: class `CSPNeXt` in mmdet/models/backbones/cspnext.py: The key argument of `Registry.get` must be a str, got <class 'type'> |
Motivation
Modification
BC-breaking (Optional)
Use cases (Optional)
Checklist
Before PR:
After PR: