Spaces:
Runtime error
Runtime error
Jordan Legg
commited on
Commit
Β·
52fbda8
1
Parent(s):
1ef0ccd
change model
Browse files
app.py
CHANGED
|
@@ -13,8 +13,8 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 13 |
MAX_SEED = np.iinfo(np.int32).max
|
| 14 |
MAX_IMAGE_SIZE = 2048
|
| 15 |
|
| 16 |
-
# Load the initial VAE model for preprocessing
|
| 17 |
-
vae_model_name = "
|
| 18 |
vae = AutoencoderKL.from_pretrained(vae_model_name).to(device)
|
| 19 |
|
| 20 |
# Load the FLUX diffusion pipeline with optimizations
|
|
|
|
| 13 |
MAX_SEED = np.iinfo(np.int32).max
|
| 14 |
MAX_IMAGE_SIZE = 2048
|
| 15 |
|
| 16 |
+
# Load the initial VAE model for preprocessing
|
| 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
|