wei
commited on
Commit
·
23b5d36
1
Parent(s):
486a3e3
sd pipe
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ if torch.cuda.is_available():
|
|
13 |
else:
|
14 |
torch_dtype = torch.float32
|
15 |
|
16 |
-
pipe =
|
17 |
pipe.unet.load_attn_procs("enhanceaiteam/Flux-uncensored-V2")
|
18 |
pipe = pipe.to(device)
|
19 |
|
|
|
13 |
else:
|
14 |
torch_dtype = torch.float32
|
15 |
|
16 |
+
pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch.bfloat16)
|
17 |
pipe.unet.load_attn_procs("enhanceaiteam/Flux-uncensored-V2")
|
18 |
pipe = pipe.to(device)
|
19 |
|