[diffusion] model: Fix FLUX.1 output correctness (#21041)
Co-authored-by: Mick <mickjagger19@icloud.com>
This commit is contained in:
@@ -38,7 +38,9 @@ def prepare_mu(batch: Req, server_args: ServerArgs):
|
||||
vae_scale_factor = (
|
||||
server_args.pipeline_config.vae_config.arch_config.vae_scale_factor
|
||||
)
|
||||
image_seq_len = (int(height) // vae_scale_factor) * (int(width) // vae_scale_factor)
|
||||
image_seq_len = (int(height) // (vae_scale_factor * 2)) * (
|
||||
int(width) // (vae_scale_factor * 2)
|
||||
)
|
||||
|
||||
mu = calculate_shift(
|
||||
image_seq_len,
|
||||
|
||||
Reference in New Issue
Block a user