Spaces:
Build error
Build error
ringhyacinth
commited on
Commit
•
8ad224a
1
Parent(s):
4086306
Update app.py
Browse filesswitch to half precision
app.py
CHANGED
@@ -9,7 +9,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
9 |
context = autocast if device == "cuda" else nullcontext
|
10 |
dtype = torch.float16 if device == "cuda" else torch.float32
|
11 |
|
12 |
-
pipe = StableDiffusionPipeline.from_pretrained("ringhyacinth/nail-set-diffuser")
|
13 |
pipe = pipe.to(device)
|
14 |
|
15 |
|
|
|
9 |
context = autocast if device == "cuda" else nullcontext
|
10 |
dtype = torch.float16 if device == "cuda" else torch.float32
|
11 |
|
12 |
+
pipe = StableDiffusionPipeline.from_pretrained("ringhyacinth/nail-set-diffuser", torch_dtype=dtype)
|
13 |
pipe = pipe.to(device)
|
14 |
|
15 |
|