global lancosz

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-02-10 11:24:05 -05:00
parent 6270fd829c
commit 640aff898c
16 changed files with 214 additions and 65 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ class TransparentVAEDecoder(AutoencoderKL):
B, H, W, C = fg.shape
cb = checkerboard(shape=(H // 64, W // 64))
cb = cv2.resize(cb, (W, H), interpolation=cv2.INTER_NEAREST)
cb = cv2.resize(cb, (W, H), interpolation=cv2.INTER_LANCZOS4)
cb = (0.5 + (cb - 0.5) * 0.1)[None, ..., None]
cb = torch.from_numpy(cb).to(fg)