Spaces:
Running
on
Zero
Running
on
Zero
guangkaixu
commited on
Commit
·
eb1d34b
1
Parent(s):
a123370
upload
Browse files
app.py
CHANGED
@@ -266,7 +266,7 @@ def main():
|
|
266 |
|
267 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
268 |
|
269 |
-
dtype = torch.
|
270 |
|
271 |
vae = AutoencoderKL.from_pretrained("guangkaixu/GenPercept", subfolder='vae').to(dtype)
|
272 |
unet_depth_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_depth_v1").to(dtype)
|
|
|
266 |
|
267 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
268 |
|
269 |
+
dtype = torch.float16
|
270 |
|
271 |
vae = AutoencoderKL.from_pretrained("guangkaixu/GenPercept", subfolder='vae').to(dtype)
|
272 |
unet_depth_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_depth_v1").to(dtype)
|