Haojiacheng commited on
Commit
dd9427d
·
1 Parent(s): e396124

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -127,7 +127,7 @@ def process_nii_file(input_nii_file, slice, mode):
127
 
128
  with torch.no_grad():
129
 
130
- inputs = torch.unsqueeze(test_image, 1).cuda()
131
 
132
  val_outputs = sliding_window_inference(inputs, (96, 96, 16), 8, model, overlap=0.8)
133
 
 
127
 
128
  with torch.no_grad():
129
 
130
+ inputs = torch.unsqueeze(test_image, 1).cpu() ################################### .cuda() -> .cpu()
131
 
132
  val_outputs = sliding_window_inference(inputs, (96, 96, 16), 8, model, overlap=0.8)
133