-
Notifications
You must be signed in to change notification settings - Fork 287
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
Can we switch to torchvision v2 transforms? #1547
Comments
This is something we already thought about. We should check if would require us to update the minimal dependencies.
I think torchvision introduced transforms v2 with |
Hi, adding support for v2 transforms sounds like a great idea. As @IgorSusmelj mentioned, lightly still supports older torchvision versions that do not yet support v2 transforms. I would suggest to add the following at the top of
And then replace code using the torchvision transforms in all files in
This allows us to do the A PR would be very welcome (doesn't have to implement all the changes) :) |
My understanding is that lightly uses the "old" v1 torchvision transforms, see e.g.
lightly/lightly/transforms/dino_transform.py
Line 4 in 8878b5b
The v1 transforms have some drawbacks:
litdata.StreamingDataset
)Would you accept a PR where we add the v2 versions? My understanding is that it's a drop-in replacement and that everything should stay the same, but I'd double check.
The text was updated successfully, but these errors were encountered: