From 0fc785bc79f7e33d9af848386bab9a67f3e972ee Mon Sep 17 00:00:00 2001 From: huchenlei Date: Mon, 20 May 2024 14:24:45 -0400 Subject: [PATCH] Update examples --- example/inpaint_example/api_inpaint.py | 4 ++-- example/txt2img_example/api_txt2img.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/inpaint_example/api_inpaint.py b/example/inpaint_example/api_inpaint.py index a8a836250..92d6f478e 100644 --- a/example/inpaint_example/api_inpaint.py +++ b/example/inpaint_example/api_inpaint.py @@ -66,7 +66,7 @@ def read_image(img_path: str) -> str: "ControlNet": { "args": [ { - "control_mode": 0, + "control_mode": "Balanced", "enabled": True, "guidance_end": 1, "guidance_start": 0, @@ -75,7 +75,7 @@ def read_image(img_path: str) -> str: "module": "inpaint_only", "pixel_perfect": True, "processor_res": 512, - "resize_mode": 1, + "resize_mode": "Crop and Resize", "threshold_a": 64, "threshold_b": 64, "weight": 1, diff --git a/example/txt2img_example/api_txt2img.py b/example/txt2img_example/api_txt2img.py index 1413379a5..018383b86 100644 --- a/example/txt2img_example/api_txt2img.py +++ b/example/txt2img_example/api_txt2img.py @@ -37,14 +37,14 @@ def build_body(self): "model": "canny", "weight": 1.0, "image": self.read_image(), - "resize_mode": 1, + "resize_mode": "Crop and Resize", "lowvram": False, "processor_res": 64, "threshold_a": 64, "threshold_b": 64, "guidance_start": 0.0, "guidance_end": 1.0, - "control_mode": 0, + "control_mode": "Balanced", "pixel_perfect": False } ]