[BugFix]: Fix Bagel generate_image denoising schedule (#4509)

This commit is contained in:
汪志鹏 authored and GitHub committed 2026-06-18 02:02:38 +00:00
1 parent 2f64c712fd
commit f195e44bc1
5 files changed
+30 -15

No files matched your search

@@ -278,6 +278,11 @@ class LanceBagel(Bagel):
``forward_cache_update_vae`` — is reused unchanged.
"""
# Upstream Lance samples ``num_timesteps + 1`` schedule points (one extra
# over official BAGEL) so the denoise loop runs exactly ``num_timesteps``
# Euler steps. See Bagel.generate_image and issue #4470.
_denoise_schedule_extra_step: bool = True
@staticmethod
def _lance_compute_vit_buckets():
"""Replicate upstream Lance's ``BucketResize.init_buckets`` for the ViT path.