Spaces:
Running
on
Zero
Running
on
Zero
nftblackmagic
commited on
Commit
•
f6916ac
1
Parent(s):
7b183da
Update app.py
Browse files
app.py
CHANGED
@@ -17,12 +17,12 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
17 |
print('Loading diffusion model ...')
|
18 |
transformer = FluxTransformer2DModel.from_pretrained(
|
19 |
"xiaozaa/catvton-flux-alpha",
|
20 |
-
torch_dtype=
|
21 |
)
|
22 |
pipe = FluxFillPipeline.from_pretrained(
|
23 |
"black-forest-labs/FLUX.1-dev",
|
24 |
transformer=transformer,
|
25 |
-
torch_dtype=
|
26 |
).to(device)
|
27 |
print('Loading Finished!')
|
28 |
|
|
|
17 |
print('Loading diffusion model ...')
|
18 |
transformer = FluxTransformer2DModel.from_pretrained(
|
19 |
"xiaozaa/catvton-flux-alpha",
|
20 |
+
torch_dtype=dtype
|
21 |
)
|
22 |
pipe = FluxFillPipeline.from_pretrained(
|
23 |
"black-forest-labs/FLUX.1-dev",
|
24 |
transformer=transformer,
|
25 |
+
torch_dtype=dtype
|
26 |
).to(device)
|
27 |
print('Loading Finished!')
|
28 |
|