Spaces:
Runtime error
Runtime error
added print statements for pipe and the output
Browse files
app.py
CHANGED
|
@@ -39,6 +39,7 @@ pipe = StableDiffusionControlNetInpaintPipeline.from_pretrained(
|
|
| 39 |
controlnet=controlnet,
|
| 40 |
torch_dtype=torch.float16
|
| 41 |
).to("cuda")
|
|
|
|
| 42 |
|
| 43 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
| 44 |
pipe.enable_xformers_memory_efficient_attention()
|
|
@@ -57,6 +58,8 @@ def restore_face(image, mask, prompt):
|
|
| 57 |
num_inference_steps=20
|
| 58 |
).images[0]
|
| 59 |
|
|
|
|
|
|
|
| 60 |
return enhanced_prompt, output
|
| 61 |
|
| 62 |
# π¨ Gradio UI
|
|
|
|
| 39 |
controlnet=controlnet,
|
| 40 |
torch_dtype=torch.float16
|
| 41 |
).to("cuda")
|
| 42 |
+
print(pipe) # to check what does the pipe function returns
|
| 43 |
|
| 44 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
| 45 |
pipe.enable_xformers_memory_efficient_attention()
|
|
|
|
| 58 |
num_inference_steps=20
|
| 59 |
).images[0]
|
| 60 |
|
| 61 |
+
print(output) # to check what does the output return
|
| 62 |
+
|
| 63 |
return enhanced_prompt, output
|
| 64 |
|
| 65 |
# π¨ Gradio UI
|