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

Ability to Apply Crop Augmentation on selected classes #1661

Open
m-ali-awan opened this issue Apr 14, 2024 · 0 comments
Open

Ability to Apply Crop Augmentation on selected classes #1661

m-ali-awan opened this issue Apr 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@m-ali-awan
Copy link

m-ali-awan commented Apr 14, 2024

Feature description

Recently, I came across the problem of under-represented classes in an instance segmentation dataset. And it posed such problem, eg if I am labeling house objects, and stairs-bannisters , wall-painting are classes. Now, if I simply increase images, bannisters also increase exponentially,
But on the otherhand, if I can augment the dataset with the flexibility of Cropping only around the wall-painting class, I can reduce this data-imbalance by some extent..

Possible implementation

I don't have complete solution, but I tried a bit. I think, as we can pass class-name or class- id in the boxes once we pass it to transform , somehow if we can limit for a particular-transform(possibly a new one), class-conditional-cropping, and it only randomly select from selected classes, and it crops around those objects...

@m-ali-awan m-ali-awan added the enhancement New feature or request label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant