Update app.py
Browse files
app.py
CHANGED
@@ -438,6 +438,7 @@ def remove_custom_lora(selected_indices, current_loras, gallery):
|
|
438 |
|
439 |
def generate_image(prompt_mash, steps, seed, cfg_scale, width, height, progress):
|
440 |
print("Generating image...")
|
|
|
441 |
pipe.to("cuda")
|
442 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
443 |
final_image = None # Initialize final_image
|
@@ -454,7 +455,7 @@ def generate_image(prompt_mash, steps, seed, cfg_scale, width, height, progress)
|
|
454 |
output_type="pil",
|
455 |
good_vae=good_vae,
|
456 |
):
|
457 |
-
|
458 |
yield img
|
459 |
final_image = img # Update final_image with the current image
|
460 |
return final_image
|
|
|
438 |
|
439 |
def generate_image(prompt_mash, steps, seed, cfg_scale, width, height, progress):
|
440 |
print("Generating image...")
|
441 |
+
print("Debug: Starting image generation")
|
442 |
pipe.to("cuda")
|
443 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
444 |
final_image = None # Initialize final_image
|
|
|
455 |
output_type="pil",
|
456 |
good_vae=good_vae,
|
457 |
):
|
458 |
+
print(f"Debug: Yielding image of type {type(img)}") # Debugging
|
459 |
yield img
|
460 |
final_image = img # Update final_image with the current image
|
461 |
return final_image
|