Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions mmaction/datasets/transforms/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,11 @@ def imgaug_builder(self, cfg):
raise TypeError(
f'type must be a str or valid type, but got {type(obj_type)}')

if 'children' in args:
args['children'] = [
self.imgaug_builder(child) for child in args['children']
]
for aug_list_key in ['children', 'then_list', 'else_list']:
if aug_list_key in args:
args[aug_list_key] = [
self.imgaug_builder(child) for child in args[aug_list_key]
]

return obj_cls(**args)

Expand Down