Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
edafa01
1
Parent(s):
f57923f
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ dtype = torch.bfloat16
|
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
|
13 |
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
|
14 |
-
good_vae = AutoencoderKL.from_pretrained(
|
15 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1).to(device)
|
16 |
torch.cuda.empty_cache()
|
17 |
|
|
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
|
13 |
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
|
14 |
+
good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae", torch_dtype=dtype).to(device)
|
15 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1).to(device)
|
16 |
torch.cuda.empty_cache()
|
17 |
|