Spaces:
Running
on
A10G
Running
on
A10G
Changed dtype to torch_dtype
#2
by
alphatozeta
- opened
app.py
CHANGED
@@ -18,7 +18,8 @@ auth_token = os.environ.get("API_TOKEN") or True
|
|
18 |
|
19 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
20 |
|
21 |
-
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-inpainting",
|
|
|
22 |
|
23 |
transform = transforms.Compose([
|
24 |
transforms.ToTensor(),
|
18 |
|
19 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
20 |
|
21 |
+
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-inpainting", torch_
|
22 |
+
dtype=torch.float16, revision="fp16", use_auth_token=auth_token).to(device)
|
23 |
|
24 |
transform = transforms.Compose([
|
25 |
transforms.ToTensor(),
|