Spaces:
Runtime error
Runtime error
Joseph Catrambone
commited on
Commit
•
000ee9a
1
Parent(s):
2a61ce0
Bugfix? strength must be a float but is getting cast to something els.e
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def pad_image(input_image):
|
|
68 |
return new_image
|
69 |
|
70 |
|
71 |
-
def process(input_image: Image.Image, prompt, a_prompt, n_prompt, max_faces: int, min_confidence: float, num_samples, ddim_steps, guess_mode, strength, scale, seed: int, eta, image_file_live_opt="file", live_conditioning=None):
|
72 |
if input_image is None and 'image' not in live_conditioning:
|
73 |
raise gr.Error("Please provide an image")
|
74 |
try:
|
@@ -91,7 +91,7 @@ def process(input_image: Image.Image, prompt, a_prompt, n_prompt, max_faces: int
|
|
91 |
generator=generator,
|
92 |
num_images_per_prompt=num_samples,
|
93 |
num_inference_steps=ddim_steps,
|
94 |
-
controlnet_conditioning_scale=strength,
|
95 |
guidance_scale=scale,
|
96 |
eta=eta,
|
97 |
)
|
|
|
68 |
return new_image
|
69 |
|
70 |
|
71 |
+
def process(input_image: Image.Image, prompt, a_prompt, n_prompt, max_faces: int, min_confidence: float, num_samples, ddim_steps, guess_mode, strength: float, scale, seed: int, eta, image_file_live_opt="file", live_conditioning=None):
|
72 |
if input_image is None and 'image' not in live_conditioning:
|
73 |
raise gr.Error("Please provide an image")
|
74 |
try:
|
|
|
91 |
generator=generator,
|
92 |
num_images_per_prompt=num_samples,
|
93 |
num_inference_steps=ddim_steps,
|
94 |
+
controlnet_conditioning_scale=float(strength),
|
95 |
guidance_scale=scale,
|
96 |
eta=eta,
|
97 |
)
|