Skip to content

Commit 160072a

Browse files
committed
still no fix for mem alloc
1 parent 5c82022 commit 160072a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/napari_cellseg3d/model_workers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ def inference(self):
184184

185185
images_dict = self.create_inference_dict(self.images_filepaths)
186186

187-
if self.device =="cuda": # TODO : fix mem alloc
188-
torch.backends.cudnn.benchmark = False
187+
# if self.device =="cuda": # TODO : fix mem alloc, this does not work it seems
188+
# torch.backends.cudnn.benchmark = False
189189

190190
# TODO : better solution than loading first image always ?
191191
data_check = LoadImaged(keys=["image"])(images_dict[0])

0 commit comments

Comments
 (0)