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

[inpainting] wrong shape? #48

Open
1 task
jS5t3r opened this issue Oct 22, 2023 · 0 comments
Open
1 task

[inpainting] wrong shape? #48

jS5t3r opened this issue Oct 22, 2023 · 0 comments

Comments

@jS5t3r
Copy link

jS5t3r commented Oct 22, 2023

Error: RuntimeError: shape '[-1, 7, 3, 256, 256]' is invalid for input of size 6291456

In

mask = mask.reshape(-1, 7, 3, image_size, image_size)

 mask = th.zeros(*x.shape, device=dist_util.dev())
 mask = mask.reshape(-1, 7, 3, image_size, image_size) <-- why to reshape to 7???!!!!

x.shape is [batch_size, 3, 256, 256] in my code.

Is that a bug?
In Algorithm 4 in the paper, they described A as an invertible linear transformation, that maps images to the latent space.
I cannot identify any transformation to the latent space.

Tasks

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