guangkaixu commited on
Commit
eb1d34b
·
1 Parent(s): a123370
Files changed (1) hide show
  1. app.py +1 -1
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.float32
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)