Spaces:
Runtime error
Runtime error
moose commited on
Commit ·
7a46cb6
1
Parent(s): 593798f
Add temporary debug prints for dimension flow (will revert)
Browse files
app.py
CHANGED
|
@@ -222,6 +222,7 @@ def infer(
|
|
| 222 |
print(f"Calling pipeline with prompt: '{prompt}'")
|
| 223 |
print(f"Negative Prompt: '{negative_prompt}'")
|
| 224 |
print(f"Seed: {seed}, Steps: {num_inference_steps}, Guidance: {true_guidance_scale}, Size: {width}x{height}")
|
|
|
|
| 225 |
|
| 226 |
# Generate the image
|
| 227 |
images_pil = pipe(
|
|
@@ -235,6 +236,7 @@ def infer(
|
|
| 235 |
true_cfg_scale=true_guidance_scale,
|
| 236 |
num_images_per_prompt=num_images_per_prompt,
|
| 237 |
).images
|
|
|
|
| 238 |
|
| 239 |
# Anonymous diagnostics — fire-and-forget, must not block or fail generation.
|
| 240 |
try:
|
|
|
|
| 222 |
print(f"Calling pipeline with prompt: '{prompt}'")
|
| 223 |
print(f"Negative Prompt: '{negative_prompt}'")
|
| 224 |
print(f"Seed: {seed}, Steps: {num_inference_steps}, Guidance: {true_guidance_scale}, Size: {width}x{height}")
|
| 225 |
+
print(f"[debug] pil_images sizes: {[img.size for img in pil_images]} height={height!r} width={width!r}")
|
| 226 |
|
| 227 |
# Generate the image
|
| 228 |
images_pil = pipe(
|
|
|
|
| 236 |
true_cfg_scale=true_guidance_scale,
|
| 237 |
num_images_per_prompt=num_images_per_prompt,
|
| 238 |
).images
|
| 239 |
+
print(f"[debug] output sizes: {[img.size for img in images_pil]}")
|
| 240 |
|
| 241 |
# Anonymous diagnostics — fire-and-forget, must not block or fail generation.
|
| 242 |
try:
|