CoarseDropout throws NotImplementedError: Method apply_to_bbox is not implemented in class CoarseDropout
See original GitHub issue🐛 Bug
CoarseDropout throws NotImplementedError: Method apply_to_bbox is not implemented in class CoarseDropout
To Reproduce
Steps to reproduce the behavior:
- Add CoarseDropout augmentation to augmentation pipeline
- Pass an image and bounding boxes to the augmentation pipeline
Expected behavior
CoarseDropout should not modify bounding boxes, as Cutout augmentation does
Environment
- Albumentations version 0.5.2
- Python version 3.7
- OS Ubuntu 20.04
- Albumentations installed via
conda
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
class albumentations.augmentations.dropout.coarse_dropout ...
CoarseDropout of the rectangular regions in the image. Parameters: Name, Type, Description. max_holes, int. Maximum number of regions ...
Read more >When to use 'raise NotImplementedError'? - Stack Overflow
As the documentation states,. In user defined base classes, abstract methods should raise this exception when they require derived classes ...
Read more >Coarse Dropout and Cutout Augmentation GPU/TPU - Kaggle
Coarse Dropout and Cutout augmentation are techniques to prevent overfitting and encourage generalization. They randomly remove rectangles from training ...
Read more >Is it conventional to raise a NotImplementedError for methods ...
I would consider it appropriate to raise a NotImplementedError exception if you haven't overridden a method in a base class yet (to satisfy ......
Read more >imgaug.augmenters.arithmetic - Read the Docs
Its usage will not yet cause a deprecation warning, but it is still recommended to use ... CoarseDropout (p=(0.02, 0.1), size_px=None, size_percent=None, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any update on this?
I have implemented a partial solution which is:
This should land as a PR in a next few days