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

option to use custom torch transforms #18

Closed
Mayukhdeb opened this issue Jan 31, 2021 · 1 comment
Closed

option to use custom torch transforms #18

Mayukhdeb opened this issue Jan 31, 2021 · 1 comment

Comments

@Mayukhdeb
Copy link
Owner

Currently, torch-dreams works with the commonly used imagenet transforms. But that might not be the case for a lot of custom models.

@Mayukhdeb
Copy link
Owner Author

torch_dreams.auto now supports custom transforms with:

my_transforms = transforms.Compose([
            ...other stuff...
            transforms.RandomAffine(degrees = rotate)
        ])
torch_dreams.auto.dreamer.set_custom_transforms(my_transforms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant