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

Disable/customise augmentation for the object_detector task #5367

Open
DoctorDinosaur opened this issue May 1, 2024 · 2 comments
Open

Disable/customise augmentation for the object_detector task #5367

DoctorDinosaur opened this issue May 1, 2024 · 2 comments
Assignees
Labels
platform:python MediaPipe Python issues stat:awaiting googler Waiting for Google Engineer's Response task:object detection Issues related to Object detection: Track and label objects in images and video. type:feature Enhancement in the New Functionality or Request for a New Solution type:modelmaker Issues related to creation of custom on-device ML solutions

Comments

@DoctorDinosaur
Copy link

DoctorDinosaur commented May 1, 2024

MediaPipe Solution (you are using)

Object Detection (Model Maker)

Programming language

Python

Are you willing to contribute it

No

Describe the feature and the current behaviour/state

Currently, while the Image Classification task has "do_data_augmentation", the Object Detection Task does not. The object detection task should be provided this option.

It would also be useful if both could allow for customisation. TF-Vision exposes aug_scale_min, aug_scale_max, aug_rand_hflip, aug_rand_vflip, and aug_type; where aug_type can take a tfm.vision.configs.common.Augmentation (i.e. AutoAugment or RandAugment)

Will this change the current API? How?

No response

Who will benefit with this feature?

No response

Please specify the use cases for this feature

My dataset includes "right arrow" and "left arrow". Random Flipping is enforced and cannot be disabled, without subclassing the object detection class. This means the classes cannot be trained.

Any Other info

No response

@DoctorDinosaur DoctorDinosaur added the type:feature Enhancement in the New Functionality or Request for a New Solution label May 1, 2024
@kuaashish kuaashish added type:modelmaker Issues related to creation of custom on-device ML solutions platform:python MediaPipe Python issues task:object detection Issues related to Object detection: Track and label objects in images and video. labels May 2, 2024
@kuaashish
Copy link
Collaborator

Hi @joezoug,

Do we have a plan to incorporate this feature into the Object Detection model maker?

Thank you!!

@kuaashish kuaashish assigned joezoug and unassigned kuaashish May 7, 2024
@kuaashish kuaashish added the stat:awaiting googler Waiting for Google Engineer's Response label May 7, 2024
@joezoug
Copy link
Collaborator

joezoug commented May 14, 2024

Hi @DoctorDinosaur,

Thanks for the suggestion. Unfortunately the team doesn't have bandwidth to make this change in the near future. Can you try subclassing/overriding the class to disable data augmentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:python MediaPipe Python issues stat:awaiting googler Waiting for Google Engineer's Response task:object detection Issues related to Object detection: Track and label objects in images and video. type:feature Enhancement in the New Functionality or Request for a New Solution type:modelmaker Issues related to creation of custom on-device ML solutions
Projects
None yet
Development

No branches or pull requests

3 participants