-
Notifications
You must be signed in to change notification settings - Fork 7k
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
difference between transform & target_transform? #215
Comments
Lets say you want to apply some data augmentations over a dataset of images with their segmentation masks. If you rotate the image to the left with transform, you would have to rotate the mask to the left as well. That's one of the point of target_transform. |
cannot we just rotate both of them via transform? |
@isalirezag currently the cc @fmassa I think we can close this. |
It took me a while to understand this explanation. So, I just want to highlight a term that @Cadene mentioned that should be in kept in mind in order to understand it right away. For classification problems, the |
@eduardo4jesus I wouldn't say that |
@fmassa. (Wow) That is true! Thank you so much. I hadn't thought about that usage! |
Thank you a lot!!! very helpful answer |
@fmassa Cool! Thank you for your informational answer! |
Very useful answer! |
what is an example of what the target transform should be for a classification problem? |
@fmassa Thank you for your informational answer |
very helpful.thank you a lot!! |
Can you please explain the difference between transform & target_transform?
I understand that we usually use transform for doing changes to our images, but target_transform is still unclear for me? what is exactly used for? can we use that for images? the definition of it says: a function that takes in the target and transforms it, but it is not clear to me what it exactly means
The text was updated successfully, but these errors were encountered: