当前位置: 代码迷 >> 综合 >> KeyError: “NuScenesDataset: ‘NormalizeMultiviewImage is not in the pipeline registry‘“
  详细解决方案

KeyError: “NuScenesDataset: ‘NormalizeMultiviewImage is not in the pipeline registry‘“

热度:35   发布时间:2023-12-15 15:51:40.0

KeyError: “NuScenesDataset: ‘NormalizeMultiviewImage is not in the pipeline registry’”

解决:

dataset = build_dataset(cfg.data.test)

前面

加上下面这段代码好了

if hasattr(cfg, 'plugin'):if cfg.plugin:import importlibif hasattr(cfg, 'plugin_dir'):plugin_dir = cfg.plugin_dir_module_dir = os.path.dirname(plugin_dir)_module_dir = _module_dir.split('/')_module_path = _module_dir[0]for m in _module_dir[1:]:_module_path = _module_path + '.' + mprint(_module_path)# 特别是这一句plg_lib = importlib.import_module(_module_path)
  相关解决方案