[HunyuanImage3.0][Performance][Optimazation]Adjust perf config (#4149)
Signed-off-by: dengyunyang <584797741@qq.com>
This commit is contained in:
1 parent
519cf3ecf1
commit
469c1dc87e
2 files changed
+15
-11
No files matched your search
@@ -865,7 +865,9 @@ class HunyuanImage3Pipeline(
|
||||
output, sections = out["output"], out["sections"]
|
||||
|
||||
# 4. Encode conditional images
|
||||
if batch_cond_image_info is not None and len(batch_cond_image_info[0]) > 0:
|
||||
# Skip encoding if AR KV reuse is enabled
|
||||
has_ar_kv = kwargs.get("ar_kv_data")
|
||||
if batch_cond_image_info is not None and len(batch_cond_image_info[0]) > 0 and not has_ar_kv:
|
||||
cond_vae_images, cond_timestep, cond_vit_images = self._encode_cond_image(
|
||||
batch_cond_image_info, cfg_factor[mode]
|
||||
)
|
||||
@@ -1459,6 +1461,7 @@ class HunyuanImage3Pipeline(
|
||||
num_inference_steps=num_inference_steps,
|
||||
guidance_scale=guidance_scale,
|
||||
batch_cond_image_info=batch_cond_image_info,
|
||||
**ar_kv_kwargs,
|
||||
)
|
||||
|
||||
model_inputs.update(ar_kv_kwargs)
|
||||
|
||||
Reference in new issue
Block a user