Skip to content
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] add config new feature #105

Merged
merged 56 commits into from
Aug 8, 2022
Merged

Conversation

HAOCHENYE
Copy link
Collaborator

@HAOCHENYE HAOCHENYE commented Mar 7, 2022

Motivation

References config cross-library

for example, reference mmdet config file in mmtracking:

demo_config.py

_base_ = 'mmdet::faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py'

Build the mmdet model from config.

from mmengine import Config
from mmengine import MODELS, Registry

TRACKING_MODELS = Registry('mmtrack', MODELS)

cfg = Config.fromfile('demo_config.py')
model  = TRACKING_MODELS.build(cfg.model)

Get config and get model cross-library

from mmengine import get_model, get_config

model = get_model('mmdet::faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py')
cfg = get_config('mmpose::face/2d_kpt_sview_rgb_img/deeppose/wflw/res50_wflw_256x256.py')

@HAOCHENYE HAOCHENYE requested a review from ZwwWayne March 7, 2022 09:31
@HAOCHENYE HAOCHENYE force-pushed the HAOCHENYE/config_new_feature branch from 0f8859e to 23b3720 Compare March 10, 2022 09:24
@ZwwWayne ZwwWayne requested a review from pppppM April 29, 2022 03:51
@HAOCHENYE HAOCHENYE force-pushed the HAOCHENYE/config_new_feature branch from 343b60d to 1db616b Compare July 4, 2022 13:17
@HAOCHENYE HAOCHENYE removed the WIP label Jul 14, 2022
@HAOCHENYE HAOCHENYE changed the title [WIP] add config new feature [Feature] add config new feature Jul 15, 2022
@ZwwWayne ZwwWayne added the P0 Highest priority label Aug 8, 2022
ZwwWayne
ZwwWayne previously approved these changes Aug 8, 2022
@ZwwWayne ZwwWayne added this to the 0.5.0 milestone Aug 8, 2022
@ZwwWayne ZwwWayne merged commit 7e23023 into main Aug 8, 2022
@zhouzaida zhouzaida deleted the HAOCHENYE/config_new_feature branch August 14, 2022 03:31
plyfager pushed a commit that referenced this pull request Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Highest priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants