use site-packages/${project}/.mim/config as the base config
See original GitHub issueDescribe the feature I would like to be able to specify the config under .mim as the base config and run it as shown below.
_base_ = [
'site-packages/mmcls/.mim/config/_base_/models/resnet18_cifar.py',
'site-packages/mmcls/.mim/config/_base_/datasets/cifar10_bs16.py',
'site-packages/mmcls/.mim/config/_base_/schedules/cifar10_bs128.py',
'site-packages/mmcls/.mim/config/_base_/default_runtime.py'
]
Motivation When specifying the config in the repo as the base config, I find it inconvenient that I need to either download it locally by git clone or copy the config to be used itself under .mim.
Additional context The following part of mmcv is the load part of the base config. I think it is possible to load the config from .mim by changing this part, is this the proper way? https://github.com/open-mmlab/mmcv/blob/76cfd77b3a88ce17508471bf335829eb0628abcf/mmcv/utils/config.py#L239-L269
Is this the proper way to do it, or is there a way to complete it with a .mim repo?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
MIM Config Documenter tool now availiable on GitHub
MIM configuration documenter is a tool to generate documentation of a MIM / FIM synchronization or service installation.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Cool! Thank you for your great effort:)
Hi, it is a great idea. In fact, mmcv also supports loading base config with an absolute path.
https://github.com/open-mmlab/mmcv/blob/76cfd77b3a88ce17508471bf335829eb0628abcf/mmcv/utils/config.py#L248
If the
fis an absolute path, theosp.join(cfg_dir, f)will return thefwithout concatenating thecfg_dir