Skip to content

Conversation

HAOCHENYE
Copy link

Motivation

Modification

BC-breaking (Optional)

Use cases (Optional)

Checklist

Before PR:

  • I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • New functionalities are covered by complete unit tests. If not, please add more unit tests to ensure correctness.
  • The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • CLA has been signed and all committers have signed the CLA in this PR.

@CLAassistant
Copy link

CLAassistant commented May 22, 2023

CLA assistant check
All committers have signed the CLA.

@HAOCHENYE HAOCHENYE changed the title Config new type [Feature][Draft] Config new type, wait new_config type branch ... May 22, 2023
@HAOCHENYE HAOCHENYE changed the title [Feature][Draft] Config new type, wait new_config type branch ... [Feature][Draft] Config new type, wait new_config branch ... May 22, 2023
@Tau-J Tau-J changed the base branch from main to dev-1.x May 22, 2023 16:47
@Tau-J Tau-J changed the base branch from dev-1.x to new_config May 22, 2023 16:47
@codecov
Copy link

codecov bot commented May 23, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (ae79819) 82.02% compared to head (b7e19a5) 82.03%.

❗ Current head b7e19a5 differs from pull request most recent head 2ffda58. Consider uploading reports for the commit 2ffda58 to get more accurate results

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     
Flag Coverage Δ
unittests 82.03% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmpose/datasets/transforms/common_transforms.py 84.87% <0.00%> (-0.48%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@HAOCHENYE HAOCHENYE changed the title [Feature][Draft] Config new type, wait new_config branch ... [Feature] Config new type, wait new_config branch ... May 23, 2023
@HAOCHENYE HAOCHENYE changed the title [Feature] Config new type, wait new_config branch ... [Feature] Config new type May 23, 2023
@Ben-Louis
Copy link
Collaborator

When I attempt to train using the config file mmpose/configs/body_2d_keypoint/rtmpose/coco/rtmpose_s_8xb256_420e_aic_coco_256x192.py, I encounter the following error:

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'>

@Tau-J Tau-J merged commit c4b8e0c into open-mmlab:new_config May 25, 2023
Tau-J pushed a commit that referenced this pull request Jun 1, 2023
Tau-J pushed a commit to Tau-J/mmpose that referenced this pull request Jun 16, 2023
Tau-J pushed a commit to Tau-J/mmpose that referenced this pull request Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants