AP123 commited on
Commit
70d6a02
1 Parent(s): 1e08323

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -47,6 +47,8 @@ def inference(
47
 
48
  # Generate init_image using the "Realistic Vision V2.0" model
49
  init_image = pipe(prompt, height=512, width=512).images[0]
 
 
50
 
51
  control_image = control_image.resize((512, 512))
52
  pipe.scheduler = SAMPLER_MAP[sampler](pipe.scheduler.config)
 
47
 
48
  # Generate init_image using the "Realistic Vision V2.0" model
49
  init_image = pipe(prompt, height=512, width=512).images[0]
50
+ print("Init Image:", init_image)
51
+ assert init_image is not None, "init_image is None!"
52
 
53
  control_image = control_image.resize((512, 512))
54
  pipe.scheduler = SAMPLER_MAP[sampler](pipe.scheduler.config)