rizavelioglu commited on
Commit
778f222
·
verified ·
1 Parent(s): 7069342

add new model

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -62,6 +62,7 @@ class VAETester:
62
  "stable-diffusion-3-medium": AutoencoderKL.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", subfolder="vae").to(self.device),
63
  "FLUX.1": AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae").to(self.device),
64
  "CogView4-6B": AutoencoderKL.from_pretrained("THUDM/CogView4-6B", subfolder="vae").to(self.device),
 
65
  }
66
  # Define the desired order of models
67
  order = [
@@ -72,6 +73,7 @@ class VAETester:
72
  #"sd-vae-ft-mse (remote)",
73
  "sdxl-vae",
74
  #"sdxl-vae (remote)",
 
75
  "stable-diffusion-3-medium",
76
  "FLUX.1",
77
  #"FLUX.1 (remote)",
@@ -196,7 +198,7 @@ with gr.Blocks(title="VAE Performance Tester", css=".monospace-text {font-family
196
  with gr.Row():
197
  diff_gallery = gr.Gallery(label="Difference Maps", columns=4, height=512)
198
  recon_gallery = gr.Gallery(label="Reconstructed Images", columns=4, height=512)
199
- scores_output = gr.Textbox(label="Sum of differences (lower is better) | Processing time (lower is faster)", lines=9, elem_classes="monospace-text")
200
 
201
  if examples:
202
  with gr.Row():
 
62
  "stable-diffusion-3-medium": AutoencoderKL.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", subfolder="vae").to(self.device),
63
  "FLUX.1": AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae").to(self.device),
64
  "CogView4-6B": AutoencoderKL.from_pretrained("THUDM/CogView4-6B", subfolder="vae").to(self.device),
65
+ "playground-v2.5": AutoencoderKL.from_pretrained("playgroundai/playground-v2.5-1024px-aesthetic", subfolder="vae").to(self.device),
66
  }
67
  # Define the desired order of models
68
  order = [
 
73
  #"sd-vae-ft-mse (remote)",
74
  "sdxl-vae",
75
  #"sdxl-vae (remote)",
76
+ "playground-v2.5",
77
  "stable-diffusion-3-medium",
78
  "FLUX.1",
79
  #"FLUX.1 (remote)",
 
198
  with gr.Row():
199
  diff_gallery = gr.Gallery(label="Difference Maps", columns=4, height=512)
200
  recon_gallery = gr.Gallery(label="Reconstructed Images", columns=4, height=512)
201
+ scores_output = gr.Textbox(label="Sum of differences (lower is better) | Processing time (lower is faster)", lines=10, elem_classes="monospace-text")
202
 
203
  if examples:
204
  with gr.Row():