-
Notifications
You must be signed in to change notification settings - Fork 7.1k
**HOW** do I actually use CutMix or Mixup without re-implementing? #7306
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
Comments
Dumb question. Simple answer is I can do whatever I want except torchvision.transforms implementation does not exist. |
It's not a dumb question @pGit1 , thank you for asking. We have 2 existing implementations of these transforms:
In both cases, you'll need to use these transforms as a special collate function, something similar to what we do in our references. The fact that they have to be used as a collate function and not as a regular transform is the reason we're not making those broadly available just yet, but we're planning on working towards that. HTH! |
Hi @NicolasHug! I actually didnt expect anyone to respond to this. Your reasons all make sense to me. The way I am ultimately going to implement this is within a dataset class in the For example:
This way all my downstream code can stay the same and I can still keep the flexibility provided by dataset class. Does this seem reasonable to you? |
According to this: https://pytorch.org/blog/how-to-train-state-of-the-art-models-using-torchvision-latest-primitives/ and this: #3911
I am supposed to be able to use mixup and cutmix. However when do torchvision.ANYTHING the implementations are nowhere to be found. Searching for cutmix or mixup in the docs yields no results. https://pytorch.org/vision/stable/search.html?q=cutmix&check_keywords=yes&area=default
What is the recommend approach to using these updates in our code? Is the expectation to copy/paste stuff implemented in references? :( Sorry for dumb question.
The text was updated successfully, but these errors were encountered: