1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00
This commit is contained in:
patil-suraj
2022-12-02 14:38:25 +01:00
parent e2bc5e54b5
commit 87e39484b8

View File

@@ -741,7 +741,7 @@ class AutoencoderKL(ModelMixin, ConfigMixin):
stride = (min(stride[0], h), min(stride[1], w))
print("reducing stride")
fold, unfold, normalization, weighting = self.get_fold_unfold(z, ks, stride)
fold, unfold, normalization, weighting = self.get_fold_unfold(z, ks, stride, uf=vqf)
z = unfold(z) # (bn, nc * prod(**ks), L)
# 1. Reshape to img shape