Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
f452e56
1
Parent(s):
5e3dc77
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ USE_TORCH_COMPILE = False
|
|
26 |
ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
|
27 |
PREVIEW_IMAGES = True
|
28 |
|
29 |
-
dtype = torch.
|
30 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
31 |
if torch.cuda.is_available():
|
32 |
prior_pipeline = StableCascadePriorPipeline.from_pretrained("diffusers/StableCascade-prior", torch_dtype=dtype).to(device)
|
|
|
26 |
ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
|
27 |
PREVIEW_IMAGES = True
|
28 |
|
29 |
+
dtype = torch.bfloat16
|
30 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
31 |
if torch.cuda.is_available():
|
32 |
prior_pipeline = StableCascadePriorPipeline.from_pretrained("diffusers/StableCascade-prior", torch_dtype=dtype).to(device)
|