Spaces:
Runtime error
Runtime error
Jordan Legg
commited on
Commit
Β·
c5a49a2
1
Parent(s):
df1e50c
loaded vae
Browse files
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 |
-
|
18 |
-
|
|
|
|
|
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)
|