Skip to content

3D-LDM shows no progress in sampled images #458

Answered by kapsner
kapsner asked this question in Q&A
Discussion options

You must be logged in to vote

I found my mistake: I've accidentally used torch.rand(), which samples noise from a uniform distribution instead of torch.randn(), sampling from a normal distribution. So the batch-size-generic code to sample noise should look like this:

input_size = ((len(images), ) + tuple(z.size())[1:])
noise = torch.randn(
    input_size,
    dtype=z.dtype,
    layout=z.layout,
    device=images.device
)

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@marksgraham
Comment options

@kapsner
Comment options

@kapsner
Comment options

@kapsner
Comment options

Answer selected by kapsner
@kapsner
Comment options

@marksgraham
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants