Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Commit
•
03550a8
1
Parent(s):
917d2f3
Update app.py
Browse files
app.py
CHANGED
@@ -52,8 +52,11 @@ good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfold
|
|
52 |
#trust_remote_code=True,
|
53 |
#).to(device)
|
54 |
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
57 |
|
58 |
clipmodel = 'norm'
|
59 |
if clipmodel == "long":
|
|
|
52 |
#trust_remote_code=True,
|
53 |
#).to(device)
|
54 |
|
55 |
+
dtype = torch.bfloat16
|
56 |
+
base_model = "AlekseyCalvin/Artsy_Lite_Flux_v1_by_jurdn_Diffusers"
|
57 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype).to("cuda")
|
58 |
+
#pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
|
59 |
+
torch.cuda.empty_cache()
|
60 |
|
61 |
clipmodel = 'norm'
|
62 |
if clipmodel == "long":
|