sphinxsolution commited on
Commit
63e7ff8
Β·
verified Β·
1 Parent(s): fd8ee04

added print statements for pipe and the output

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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