Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Commit
•
7befb0b
1
Parent(s):
0018e73
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from huggingface_hub import hf_hub_download
|
|
16 |
from diffusers import DiffusionPipeline, AutoencoderTiny
|
17 |
import safetensors.torch
|
18 |
from safetensors.torch import load_file
|
19 |
-
from
|
20 |
from transformers import CLIPModel, CLIPProcessor, CLIPConfig
|
21 |
import gc
|
22 |
|
@@ -30,8 +30,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
30 |
torch.backends.cuda.matmul.allow_tf32 = True
|
31 |
|
32 |
dtype = torch.bfloat16
|
33 |
-
pipe = FluxWithCFGPipeline.from_pretrained(
|
34 |
-
"ostris/OpenFLUX.1", custom_pipeline="AlekseyCalvin/OpenFlux_Lorasoonr", torch_dtype=dtype
|
35 |
).to("cuda")
|
36 |
pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to("cuda")
|
37 |
|
|
|
16 |
from diffusers import DiffusionPipeline, AutoencoderTiny
|
17 |
import safetensors.torch
|
18 |
from safetensors.torch import load_file
|
19 |
+
from pipeline import FluxWithCFGPipeline
|
20 |
from transformers import CLIPModel, CLIPProcessor, CLIPConfig
|
21 |
import gc
|
22 |
|
|
|
30 |
torch.backends.cuda.matmul.allow_tf32 = True
|
31 |
|
32 |
dtype = torch.bfloat16
|
33 |
+
pipe = FluxWithCFGPipeline.from_pretrained("ostris/OpenFLUX.1", torch_dtype=dtype
|
|
|
34 |
).to("cuda")
|
35 |
pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to("cuda")
|
36 |
|