-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OneOf with bounding boxes crash #445
Comments
I propose to change the if statement: if isinstance(augmentation, Augmentation) and \
not isinstance(augmentation, OneOf) and \
not isinstance(augmentation, AugmentationSequence): Everything works okay until new error is thrown:
Seems like 798 line should process |
@Travvy88 Do you mind investigating this further to see if you can identify a solution? If so, you could prepare a PR and we could include you as a listed contributor associated with the library. |
Yes, I will try. |
Hello! Thanks for good library for doc augmentations.
I faced problem with bounding boxes. When I run augraphy pipeline with bounding boxes and there is the
OneOf
inside it crashes. When I deleteOneOf
everything works well.Error log:
It seems like
augmentationpipeline.py:754
line should filterOneOf
andAugmentationSequence
objects. However, both of them are children ofAugmentation
class.isinstance(augmentation, Augmentation)
is True when augmentation variable isOneOf
orAugmentationSequence
and this objects are not filtered.The text was updated successfully, but these errors were encountered: