Update examples (#2921)

pull/2923/head
Chenlei Hu 2024-05-20 14:25:07 -04:00 committed by GitHub
parent 59c43499ea
commit 7b4cdea2a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ img2img_payload = {
"ControlNet": {
"args": [
{
"control_mode": 0,
"control_mode": "Balanced",
"enabled": True,
"guidance_end": 1,
"guidance_start": 0,
@ -75,7 +75,7 @@ img2img_payload = {
"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,

View File

@ -37,14 +37,14 @@ class ControlnetRequest:
"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
}
]