def build_from_cfg(cfg, registry, default_args=None):
# 此函数的作用是根据配置字典构建一个模块对象,可以根据需要自定义配置来构建不同的模块。
"""Build a module from config dict.
Args:
cfg (dict): Config dict. It should at least contain the key "type".
registry (:obj:`Registry`): The registry to search the type fro
python3.8/site-packages/mmcv/utils/registry.py注释
最新推荐文章于 2025-06-01 21:09:33 发布