Spaces:
zino36
/
Runtime error

yocabon commited on
Commit
e83109b
1 Parent(s): 6a7aa9b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ torch.backends.cuda.matmul.allow_tf32 = True
31
  batch_size = 1
32
 
33
  weights_path = "naver/" + 'MASt3R_ViTLarge_BaseDecoder_512_catmlpdpt_metric'
34
- device = 'cuda'
35
  model = AsymmetricMASt3R.from_pretrained(weights_path).to(device)
36
  chkpt_tag = hash_md5(weights_path)
37
 
 
31
  batch_size = 1
32
 
33
  weights_path = "naver/" + 'MASt3R_ViTLarge_BaseDecoder_512_catmlpdpt_metric'
34
+ device = 'cuda' if torch.cuda.is_available() else 'cpu'
35
  model = AsymmetricMASt3R.from_pretrained(weights_path).to(device)
36
  chkpt_tag = hash_md5(weights_path)
37