We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d2278 commit 1030581Copy full SHA for 1030581
napari_cellseg3d/model_workers.py
@@ -711,17 +711,9 @@ def inference(self):
711
torch.set_num_threads(1) # required for threading on macOS ?
712
self.log("Number of threads has been set to 1 for macOS")
713
714
- # if self.device =="cuda": # TODO : fix mem alloc, this does not work it seems
715
- # torch.backends.cudnn.benchmark = False
716
-
717
- # TODO : better solution than loading first image always ?
718
- # data_check = LoadImaged(keys=["image"])(images_dict[0])
719
- # print(data)
720
- # check = data_check["image"].shape
721
- # print(check)
722
723
try:
724
- dims = self.model_dict["segres_size"]
+ dims = self.model_dict["model_input_size"]
725
726
727
if self.model_dict["name"] == "SegResNet":
0 commit comments