Maria
commited on
Commit
·
5ac6617
1
Parent(s):
9c7db32
hw6
Browse files
infer.py
CHANGED
|
@@ -215,7 +215,7 @@ def infer(
|
|
| 215 |
cn_image,
|
| 216 |
negative_prompt=negative_prompt,
|
| 217 |
num_inference_steps = num_inference_steps,
|
| 218 |
-
controlnet_conditioning_scale=
|
| 219 |
generator=generator
|
| 220 |
).images[0]
|
| 221 |
|
|
@@ -248,7 +248,7 @@ def infer(
|
|
| 248 |
guidance_scale=guidance_scale,
|
| 249 |
height=height,
|
| 250 |
width=width,
|
| 251 |
-
controlnet_conditioning_scale=
|
| 252 |
ip_adapter_image=image_upload_ip,
|
| 253 |
generator=generator,
|
| 254 |
).images[0]
|
|
|
|
| 215 |
cn_image,
|
| 216 |
negative_prompt=negative_prompt,
|
| 217 |
num_inference_steps = num_inference_steps,
|
| 218 |
+
controlnet_conditioning_scale=controlnet_strength,
|
| 219 |
generator=generator
|
| 220 |
).images[0]
|
| 221 |
|
|
|
|
| 248 |
guidance_scale=guidance_scale,
|
| 249 |
height=height,
|
| 250 |
width=width,
|
| 251 |
+
controlnet_conditioning_scale=controlnet_strength,
|
| 252 |
ip_adapter_image=image_upload_ip,
|
| 253 |
generator=generator,
|
| 254 |
).images[0]
|