Skip to content

Commit

Permalink
augmentation=none fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KGallyamov committed Dec 7, 2023
1 parent 45f67f7 commit aa30bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion innofw/utils/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def is_albu(aug):
return isinstance(aug, A.Compose) or isinstance(
aug, A.core.transforms_interface.BasicTransform
)
cfg = cfg['augmentations']
cfg = cfg.get('augmentations', cfg) if cfg is not None else cfg
for key in keys:
try:
for v in cfg[key].values():
Expand Down

0 comments on commit aa30bee

Please sign in to comment.