1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

fix decodeing

This commit is contained in:
patil-suraj
2022-12-02 14:30:47 +01:00
parent 1a773f6d74
commit e2bc5e54b5

View File

@@ -749,7 +749,7 @@ class AutoencoderKL(ModelMixin, ConfigMixin):
# 2. apply model loop over last dim
output_list = [self._decode(z).sample(z[:, :, :, :, i]) for i in range(z.shape[-1])]
output_list = [self._decode(z[:, :, :, :, i]).sample for i in range(z.shape[-1])]
o = torch.stack(output_list, axis=-1) # # (bn, nc, ks[0], ks[1], L)
o = o * weighting