rizavelioglu commited on
Commit
9175dc1
·
1 Parent(s): 2bed2d3

remove Flux2-TAE

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import spaces
2
  import gradio as gr
3
  import torch
4
- from diffusers import AutoencoderKL, AutoencoderDC, AutoModel
5
  from diffusers.utils.remote_utils import remote_decode
6
  import torchvision.transforms.v2 as transforms
7
  from torchvision.io import read_image
@@ -66,7 +66,6 @@ class VAETester:
66
  # "dc-ae-f32c32-sana-1.0": AutoencoderDC.from_pretrained("mit-han-lab/dc-ae-f32c32-sana-1.0-diffusers").to(self.device),
67
  "FLUX.1-Kontext": AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", subfolder="vae").to(self.device),
68
  "FLUX.2": AutoencoderKL.from_pretrained("black-forest-labs/FLUX.2-dev", subfolder="vae").to(self.device),
69
- "FLUX.2-TinyAutoEncoder": AutoModel.from_pretrained("fal/FLUX.2-Tiny-AutoEncoder", trust_remote_code=True).to(self.device),
70
  }
71
  # Define the desired order of models
72
  order = [
@@ -85,7 +84,6 @@ class VAETester:
85
  # "dc-ae-f32c32-sana-1.0",
86
  "FLUX.1-Kontext",
87
  "FLUX.2",
88
- "FLUX.2-TinyAutoEncoder",
89
  ]
90
 
91
  # Construct the vae_models dictionary in the specified order
 
1
  import spaces
2
  import gradio as gr
3
  import torch
4
+ from diffusers import AutoencoderKL, AutoencoderDC
5
  from diffusers.utils.remote_utils import remote_decode
6
  import torchvision.transforms.v2 as transforms
7
  from torchvision.io import read_image
 
66
  # "dc-ae-f32c32-sana-1.0": AutoencoderDC.from_pretrained("mit-han-lab/dc-ae-f32c32-sana-1.0-diffusers").to(self.device),
67
  "FLUX.1-Kontext": AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", subfolder="vae").to(self.device),
68
  "FLUX.2": AutoencoderKL.from_pretrained("black-forest-labs/FLUX.2-dev", subfolder="vae").to(self.device),
 
69
  }
70
  # Define the desired order of models
71
  order = [
 
84
  # "dc-ae-f32c32-sana-1.0",
85
  "FLUX.1-Kontext",
86
  "FLUX.2",
 
87
  ]
88
 
89
  # Construct the vae_models dictionary in the specified order