Jordan Legg commited on
Commit
c5a49a2
Β·
1 Parent(s): df1e50c

loaded vae

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -14,8 +14,10 @@ MAX_SEED = np.iinfo(np.int32).max
14
  MAX_IMAGE_SIZE = 2048
15
 
16
  # Load the initial VAE model for preprocessing YAY
17
- vae_model_name = "runwayml/stable-diffusion-v1-5" # Changed VAE model
18
- vae = AutoencoderKL.from_pretrained(vae_model_name).to(device)
 
 
19
 
20
  # Load the FLUX diffusion pipeline with optimizations
21
  pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype)
 
14
  MAX_IMAGE_SIZE = 2048
15
 
16
  # Load the initial VAE model for preprocessing YAY
17
+ # Load the initial VAE model for preprocessing
18
+ vae_model_name = "runwayml/stable-diffusion-v1-5" # Adjusted VAE model path
19
+ vae = AutoencoderKL.from_pretrained(vae_model_name, subfolder="vae").to(device)
20
+
21
 
22
  # Load the FLUX diffusion pipeline with optimizations
23
  pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype)