From 6a826d21b1dfc631a02e517198fac83f793b2f90 Mon Sep 17 00:00:00 2001 From: Kohya S <52813779+kohya-ss@users.noreply.github.com> Date: Sun, 28 Sep 2025 18:06:17 +0900 Subject: [PATCH] feat: add new parameters for sample image inference configuration --- hunyuan_image_train_network.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hunyuan_image_train_network.py b/hunyuan_image_train_network.py index a67e931d..9ab351ea 100644 --- a/hunyuan_image_train_network.py +++ b/hunyuan_image_train_network.py @@ -249,7 +249,15 @@ def sample_image_inference( arg_c_null = None gen_args = SimpleNamespace( - image_size=(height, width), infer_steps=sample_steps, flow_shift=flow_shift, guidance_scale=cfg_scale, fp8=args.fp8_scaled + image_size=(height, width), + infer_steps=sample_steps, + flow_shift=flow_shift, + guidance_scale=cfg_scale, + fp8=args.fp8_scaled, + apg_start_step_ocr=38, + apg_start_step_general=5, + guidance_rescale=0.0, + guidance_rescale_apg=0.0, ) from hunyuan_image_minimal_inference import generate_body # import here to avoid circular import