vcollos commited on
Commit
abb8abb
·
verified ·
1 Parent(s): 2a8eb7b
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -208,6 +208,15 @@ loras = [
208
  ]
209
 
210
  #--------------------------------------------------Model Initialization-----------------------------------------------------------------------------------------#
 
 
 
 
 
 
 
 
 
211
 
212
  dtype = torch.bfloat16
213
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
208
  ]
209
 
210
  #--------------------------------------------------Model Initialization-----------------------------------------------------------------------------------------#
211
+ from diffusers import AutoencoderKL
212
+
213
+ good_vae = AutoencoderKL.from_pretrained(
214
+ "black-forest-labs/FLUX.1-dev",
215
+ subfolder="vae",
216
+ torch_dtype=dtype,
217
+ use_auth_token=True # Inclui o token de autenticação
218
+ ).to(device)
219
+
220
 
221
  dtype = torch.bfloat16
222
  device = "cuda" if torch.cuda.is_available() else "cpu"