Spaces:
Running
on
Zero
Running
on
Zero
aifeifei798
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -11,17 +11,17 @@ def feifeimodload():
|
|
11 |
dtype = torch.bfloat16
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
|
14 |
-
#pipe = DiffusionPipeline.from_pretrained(
|
15 |
-
# "aifeifei798/DarkIdol-flux-v1.1", torch_dtype=dtype
|
16 |
-
#).to(device)
|
17 |
-
|
18 |
pipe = DiffusionPipeline.from_pretrained(
|
19 |
-
"
|
20 |
).to(device)
|
|
|
|
|
|
|
|
|
21 |
|
22 |
pipe.vae.enable_slicing()
|
23 |
pipe.vae.enable_tiling()
|
24 |
-
pipe.unload_lora_weights()
|
25 |
torch.cuda.empty_cache()
|
26 |
return pipe
|
27 |
|
|
|
11 |
dtype = torch.bfloat16
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
|
|
|
|
|
|
|
|
|
14 |
pipe = DiffusionPipeline.from_pretrained(
|
15 |
+
"aifeifei798/DarkIdol-flux-v1.1", torch_dtype=dtype
|
16 |
).to(device)
|
17 |
+
|
18 |
+
#pipe = DiffusionPipeline.from_pretrained(
|
19 |
+
# "city96/Flux.1-Heavy-17B", torch_dtype=dtype
|
20 |
+
#).to(device)
|
21 |
|
22 |
pipe.vae.enable_slicing()
|
23 |
pipe.vae.enable_tiling()
|
24 |
+
#pipe.unload_lora_weights()
|
25 |
torch.cuda.empty_cache()
|
26 |
return pipe
|
27 |
|