Unverified Commit a0b1abab authored by ChaimZhu's avatar ChaimZhu Committed by GitHub
Browse files

Fix potential bug when composing pipeline (#1466)

parent aad3339b
......@@ -24,7 +24,8 @@ class Compose:
self.transforms = []
for transform in transforms:
if isinstance(transform, dict):
if transform['type'] in PIPELINES._module_dict.keys():
_, key = PIPELINES.split_scope_key(transform['type'])
if key in PIPELINES._module_dict.keys():
transform = build_from_cfg(transform, PIPELINES)
else:
transform = build_from_cfg(transform, MMDET_PIPELINES)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment