Skip to content

Commit 1030581

Browse files
committed
name fix
1 parent 55d2278 commit 1030581

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

napari_cellseg3d/model_workers.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -711,17 +711,9 @@ def inference(self):
711711
torch.set_num_threads(1) # required for threading on macOS ?
712712
self.log("Number of threads has been set to 1 for macOS")
713713

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)
722714

723715
try:
724-
dims = self.model_dict["segres_size"]
716+
dims = self.model_dict["model_input_size"]
725717

726718

727719
if self.model_dict["name"] == "SegResNet":

0 commit comments

Comments
 (0)