Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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)
|