Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed May 20, 2024
1 parent 59c4349 commit 0fc785b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/inpaint_example/api_inpaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions example/txt2img_example/api_txt2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
Expand Down

0 comments on commit 0fc785b

Please sign in to comment.