mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
Fix failed URL (#943)
This commit is contained in:
parent
fd7917a7da
commit
a6d06a424d
@ -184,7 +184,7 @@ def build_runner_from_cfg(cfg: Union[dict, ConfigDict, Config],
|
|||||||
f'{obj_type} is not in the {registry.name} registry. '
|
f'{obj_type} is not in the {registry.name} registry. '
|
||||||
f'Please check whether the value of `{obj_type}` is '
|
f'Please check whether the value of `{obj_type}` is '
|
||||||
'correct or it was registered as expected. More details '
|
'correct or it was registered as expected. More details '
|
||||||
'can be found at https://mmengine.readthedocs.io/en/latest/tutorials/config.html#import-custom-python-modules' # noqa: E501
|
'can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module' # noqa: E501
|
||||||
)
|
)
|
||||||
elif inspect.isclass(obj_type):
|
elif inspect.isclass(obj_type):
|
||||||
runner_cls = obj_type
|
runner_cls = obj_type
|
||||||
@ -292,7 +292,7 @@ def build_scheduler_from_cfg(
|
|||||||
f'{scheduler_type} is not in the {registry.name} '
|
f'{scheduler_type} is not in the {registry.name} '
|
||||||
'registry. Please check whether the value of '
|
'registry. Please check whether the value of '
|
||||||
f'`{scheduler_type}` is correct or it was registered '
|
f'`{scheduler_type}` is correct or it was registered '
|
||||||
'as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/tutorials/config.html#import-custom-python-modules' # noqa: E501
|
'as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module' # noqa: E501
|
||||||
)
|
)
|
||||||
elif inspect.isclass(scheduler_type):
|
elif inspect.isclass(scheduler_type):
|
||||||
scheduler_cls = scheduler_type
|
scheduler_cls = scheduler_type
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
projects.
|
projects.
|
||||||
|
|
||||||
More datails can be found at
|
More datails can be found at
|
||||||
https://mmengine.readthedocs.io/en/latest/tutorials/registry.html.
|
https://mmengine.readthedocs.io/en/latest/advanced_tutorials/registry.html.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .build_functions import (build_model_from_cfg, build_runner_from_cfg,
|
from .build_functions import (build_model_from_cfg, build_runner_from_cfg,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user