prokofyev8 commited on
Commit
f13a00e
·
verified ·
1 Parent(s): 6bc6bb4

no image degradation, swapped output images

Browse files

now output image is saved with the LoRA in PNG format

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -56,7 +56,7 @@ def generate_image(prompt, height, width, num_inference_steps, seed=42, randomiz
56
  generator = torch.Generator(device="cuda").manual_seed(seed)
57
  ).images[0]
58
 
59
- return (image_no_lora,image), seed
60
 
61
 
62
  # Example prompts
@@ -135,8 +135,9 @@ with gr.Blocks() as demo:
135
  )
136
  with gr.Column(scale=1):
137
  output_image = gr.ImageSlider(
138
- label="Output (Left-with the LoRA, Right-without)",
139
  type="pil",
 
140
  )
141
 
142
 
 
56
  generator = torch.Generator(device="cuda").manual_seed(seed)
57
  ).images[0]
58
 
59
+ return (image, image_no_lora), seed
60
 
61
 
62
  # Example prompts
 
135
  )
136
  with gr.Column(scale=1):
137
  output_image = gr.ImageSlider(
138
+ label="Output (Left-without the LoRA, Right-with)",
139
  type="pil",
140
+ format="png"
141
  )
142
 
143