Encountering problem when augmented with mask.
See original GitHub issue🐛 Bug
The augmented mask is not match to the augmented image.
To Reproduce
Steps to reproduce the behavior:
aug = A.Compose([A.OneOf([A.HorizontalFlip(p=0.5), A.VerticalFlip(p=0.5), A.Transpose(p=0.5)], p=1),
A.RandomRotate90(p=0.5),
A.GridDistortion(p=0.5)])
augmented = aug(image=image, mask=label)
image = augmented['image']
label= augmented['mask']
Expected behavior
Environment
- Albumentations version (e.g., 0.1.8): 0.4.6
- Python version (e.g., 3.7): python 3.7.4
- OS (e.g., Linux): Ubuntu 18.04.3 LTS
- How you installed albumentations (
conda
,pip
, source): conda - Any other relevant information:
Additional context
- original images with mask
- wrong augmented result, the mask is not match to the image
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
augmented image and corresponding mask does not match
Hi. I would like to ask for assistance. I tried to use Augmentor on the ISBI2012 dataset at ...
Read more >Must translate autoresizing mask i… | Apple Developer Forums
Hello! I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing...
Read more >Face mask detection using deep learning: An approach to ...
Face mask detection refers to detect whether a person is wearing a mask or not. In fact, the problem is reverse engineering of...
Read more >Why does my ARCore AugmentedFace mask flicker?
I found out that flickering stops if I render more than 1 mask. For example, if I write augmentedFaceRenderer.draw() and noseObject.draw() ...
Read more >Masks Work. Really. We'll Show You How - The New York Times
The augmented-reality experience lets you stand inside the magnified fibers of an N95 respirator to see how it filters aerosols. Launch aerosols ...
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
Sorry, the problem was caused by I called
__getitem__()
twice to display the result, it’s a stupid problem, thanks for your reply. 😞I again can not reproduce the problem