Skip to content
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

Use for Semantic Segmentation #244

Open
Superzlw opened this issue Jun 22, 2022 · 4 comments
Open

Use for Semantic Segmentation #244

Superzlw opened this issue Jun 22, 2022 · 4 comments

Comments

@Superzlw
Copy link

Hi, thank you very much for the augmentor, it helped me a lot.
But I have a question, I am not sure whether Augmentor can be used for multi-label semantic segmentation, but according to my experiments, most of the newly generated labels are wrong, such as the image below, the erased area does not correspond, and There are a lot of masks at the border that shouldn't be there.
wrong1

I tested some pictures and the erased areas are all wrong.
wrong2

I would like to ask, can augmentor not be used for semantic segmentation?

@mdbloice
Copy link
Owner

Hi @Superzlw I will have to take a look at this more closely and try to find a fix... so you are passing images and their masks (as pairs) in to the pipeline, and augmenting them as normal?

If you could show some code that you are using to do this, that would help! If I can see your code I am sure we can fix it.

@Superzlw
Copy link
Author

Hi @mdbloice , Thanks for the reply. My test code is as follow:

import Augmentor

p = Augmentor.Pipeline(img_path)   # img_path: folder path of the images
p.ground_truth(label_path)         # label_path: folder path of the labels

p.random_erasing(probability=0.8, rectangle_area=0.5)
p.sample(10)

Augmentor works very well for flipping, but for some more complex operations like distortion, erasing, and borders there will be some undesired masks

@NUS-Tim
Copy link

NUS-Tim commented Mar 28, 2023

Hi, @mdbloice, it seems I also face a similar problem described by @Superzlw .

mdbloice added a commit that referenced this issue Mar 28, 2023
mdbloice added a commit that referenced this issue Mar 28, 2023
@mdbloice
Copy link
Owner

Hi @Superzlw, hi @NUS-Tim

I updated the code in version 0.2.11 of Augmentor just now. Try upgrading with pip install --upgrade Augmentor and let me know if this works for you now... 🤔

@github-staff github-staff deleted a comment from priti-aid May 22, 2024
@github-staff github-staff deleted a comment from priti-aid May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants