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

[FEATURE] custom augmentation #139

Open
MichaelMonashev opened this issue Dec 1, 2020 · 4 comments
Open

[FEATURE] custom augmentation #139

MichaelMonashev opened this issue Dec 1, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@MichaelMonashev
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I am using custom augmentation to train the effdet. And I don`t know good way to integrate my augmentation code to efficientdet-pytorch pipeline. I am using https://github.com/albumentations-team/albumentations

Describe the solution you'd like
I am using custom training loop.

Describe alternatives you've considered
I see two ways: describe how to write own training loop or describe how to integrate custom augmentation code into the efficientdet-pytorch pipeline.

@MichaelMonashev MichaelMonashev added the enhancement New feature or request label Dec 1, 2020
@rwightman
Copy link
Owner

Right now you'd want to replace the contents of these two transform functions https://github.com/rwightman/efficientdet-pytorch/blob/master/effdet/data/transforms.py#L233-L275 to add own args with minimal changes.

Likely the most I'd do right now this is allow custom transform functions to be passed into the loader factory so that you don't have to change those internal functions.

Setting up transforms is fiddly work and albumentations needs a bit of massaging to work here. My next augmentation addition would be a custom mosaic impl.

@MichaelMonashev
Copy link
Contributor Author

Likely the most I'd do right now this is allow custom transform functions to be passed into the loader factory so that you don't have to change those internal functions.

Great idea!

rwightman added a commit that referenced this issue Dec 3, 2020
#139. Add random train interpolation support as augmentation.
@Ekta246
Copy link

Ekta246 commented Dec 7, 2020

Is your feature request related to a problem? Please describe.
I am using custom augmentation to train the effdet. And I don`t know good way to integrate my augmentation code to efficientdet-pytorch pipeline. I am using https://github.com/albumentations-team/albumentations

Describe the solution you'd like
I am using custom training loop.

Describe alternatives you've considered
I see two ways: describe how to write own training loop or describe how to integrate custom augmentation code into the efficientdet-pytorch pipeline.

Same, I have to add some albumentations augmentations into the transforms.py of the effdet-pytorch.
I also suggest to seed the workers everytime you load the data with random augmentations.

@MichaelMonashev
Copy link
Contributor Author

@rwightman , thank you!

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

3 participants