Skip to content

Commit

Permalink
🗿 Killed bug that didn't let you go into cuda mode 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanaba committed Apr 15, 2020
1 parent 43d5963 commit c54c61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Paint4Brains/Segmenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _segment_over_one_axis(self, file_path, orientation):
self.completion = self.completion + 50 / 256
batch_x = volume[i:i + 1]
if self.cuda_available and self.device == "cuda":
batch_x = batch_x.cuda(device)
batch_x = batch_x.cuda(self.device)
volume_pred[i] = model(batch_x).cpu().numpy().astype(np.half)

if orientation == "COR":
Expand Down

0 comments on commit c54c61a

Please sign in to comment.