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

introduce transforms parameter that wraps data and targets #167

Closed
biphasic opened this issue Dec 8, 2021 · 1 comment
Closed

introduce transforms parameter that wraps data and targets #167

biphasic opened this issue Dec 8, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@biphasic
Copy link
Member

biphasic commented Dec 8, 2021

Sometimes you might want to apply a stochastic transform to data and targets together, i.e. flip the events horizontally with a given probability and if it is flipped, then also modify the label accordingly. This is currently not possible using the separated calls of transform and target_transform. PyTorch Vision adds (for some datasets) a third parameter transforms which wraps both data and targets.

@biphasic
Copy link
Member Author

done in 55709c6

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