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

Basic code to make images #1

Open
atgambardella opened this issue Nov 21, 2019 · 0 comments
Open

Basic code to make images #1

atgambardella opened this issue Nov 21, 2019 · 0 comments

Comments

@atgambardella
Copy link

import torch

from compression.models.load_flowpp_imagenet64 import load_imagenet64_model

model = load_imagenet64_model('/your/data/folder/flowpp_imagenet64_model.npz', False)
noise = torch.randn(1, 192, 8, 8).double()                                                                                                        

img, _ = model.main_flow(noise, aux=None, inverse=True)

noise2, _ = model.main_flow(img, aux=None, inverse=False)

Note that your z vector has to have shape 192, 8, 8 for the imagenet64 flow model.

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