ZZZXIANG commited on
Commit
d2e5470
1 Parent(s): 3d41926

改回使用cuda

Browse files

device = torch.device('cuda')

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ infer_config = config.infer_config
98
 
99
  IS_FLEXICUBES = True if config_name.startswith('instant-mesh') else False
100
 
101
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
102
 
103
  # load diffusion model
104
  print('Loading diffusion model ...')
 
98
 
99
  IS_FLEXICUBES = True if config_name.startswith('instant-mesh') else False
100
 
101
+ device = torch.device('cuda')
102
 
103
  # load diffusion model
104
  print('Loading diffusion model ...')