2023-09-24T05:03:37.012000+00:00 /home/algorithm/.local/lib/python3.10/site-packages/monai/utils/deprecate_utils.py:321: FutureWarning: monai.transforms.io.dictionary LoadImaged.__init__:image_only: Current default value of argument `image_only=False` has been deprecated since version 1.1. It will be changed to `image_only=True` in version 1.3.
2023-09-24T05:03:37.012000+00:00 warn_deprecated(argname, msg, warning_category)
2023-09-24T05:04:54.033000+00:00 Current run is terminating due to exception: applying transform <monai.transforms.compose.Compose object at 0x7f0d7049b280>
2023-09-24T05:04:54.033000+00:00 Engine run is terminating due to exception: applying transform <monai.transforms.compose.Compose object at 0x7f0d7049b280>
2023-09-24T05:04:54.033000+00:00 Traceback (most recent call last):
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/transform.py", line 141, in apply_transform
2023-09-24T05:04:54.033000+00:00 return _apply_transform(transform, data, unpack_items, lazy, overrides, log_stats)
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/transform.py", line 98, in _apply_transform
2023-09-24T05:04:54.033000+00:00 return transform(data, lazy=lazy) if isinstance(transform, LazyTrait) else transform(data)
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/post/dictionary.py", line 436, in __call__
2023-09-24T05:04:54.033000+00:00 d[self.output_key] = self.ensemble(items)
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/post/array.py", line 635, in __call__
2023-09-24T05:04:54.033000+00:00 img_ = img_ * weights / weights.mean(dim=0, keepdim=True)
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/data/meta_tensor.py", line 276, in __torch_function__
2023-09-24T05:04:54.033000+00:00 ret = super().__torch_function__(func, types, args, kwargs)
2023-09-24T05:04:54.033000+00:00 File "/opt/conda/lib/python3.10/site-packages/torch/_tensor.py", line 1295, in __torch_function__
2023-09-24T05:04:54.033000+00:00 ret = func(*args, **kwargs)
2023-09-24T05:04:54.033000+00:00 torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 3.37 GiB (GPU 0; 14.76 GiB total capacity; 11.14 GiB already allocated; 1.82 GiB free; 12.01 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
2023-09-24T05:04:54.033000+00:00
2023-09-24T05:04:54.033000+00:00 The above exception was the direct cause of the following exception:
2023-09-24T05:04:54.033000+00:00
2023-09-24T05:04:54.033000+00:00 Traceback (most recent call last):
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/transform.py", line 141, in apply_transform
2023-09-24T05:04:54.033000+00:00 return _apply_transform(transform, data, unpack_items, lazy, overrides, log_stats)
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/transform.py", line 98, in _apply_transform
2023-09-24T05:04:54.033000+00:00 return transform(data, lazy=lazy) if isinstance(transform, LazyTrait) else transform(data)
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/compose.py", line 322, in __call__
2023-09-24T05:04:54.033000+00:00 result = execute_compose(
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/compose.py", line 111, in execute_compose
2023-09-24T05:04:54.033000+00:00 data = apply_transform(
2023-09-24T05:04:54.033000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/transform.py", line 171, in apply_transform
2023-09-24T05:04:54.034000+00:00 raise RuntimeError(f"applying transform {transform}") from e
2023-09-24T05:04:54.034000+00:00 RuntimeError: applying transform <monai.transforms.post.dictionary.MeanEnsembled object at 0x7f0d7049a5c0>
2023-09-24T05:04:54.034000+00:00
2023-09-24T05:04:54.034000+00:00 The above exception was the direct cause of the following exception:
2023-09-24T05:04:54.034000+00:00
2023-09-24T05:04:54.034000+00:00 Traceback (most recent call last):
2023-09-24T05:04:54.034000+00:00 File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2023-09-24T05:04:54.034000+00:00 return _run_code(code, main_globals, None,
2023-09-24T05:04:54.034000+00:00 File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
2023-09-24T05:04:54.034000+00:00 exec(code, run_globals)
2023-09-24T05:04:54.034000+00:00 File "/opt/algorithm/process.py", line 102, in <module>
2023-09-24T05:04:54.034000+00:00 Unet_baseline().process()
2023-09-24T05:04:54.034000+00:00 File "/opt/algorithm/process.py", line 88, in process
2023-09-24T05:04:54.034000+00:00 monai_unet.run_inference(
2023-09-24T05:04:54.034000+00:00 File "/opt/algorithm/monai_unet.py", line 176, in run_inference
2023-09-24T05:04:54.034000+00:00 segment_PETCT(
2023-09-24T05:04:54.034000+00:00 File "/opt/algorithm/monai_unet.py", line 157, in segment_PETCT
2023-09-24T05:04:54.034000+00:00 ensemble_evaluate(post_transforms, models, device, val_dataloader)
2023-09-24T05:04:54.034000+00:00 File "/opt/algorithm/monai_unet.py", line 130, in ensemble_evaluate
2023-09-24T05:04:54.034000+00:00 evaluator.run()
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/engines/evaluator.py", line 148, in run
2023-09-24T05:04:54.034000+00:00 super().run()
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/engines/workflow.py", line 283, in run
2023-09-24T05:04:54.034000+00:00 super().run(data=self.data_loader, max_epochs=self.state.max_epochs)
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 892, in run
2023-09-24T05:04:54.034000+00:00 return self._internal_run()
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 935, in _internal_run
2023-09-24T05:04:54.034000+00:00 return next(self._internal_run_generator)
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 993, in _internal_run_as_gen
2023-09-24T05:04:54.034000+00:00 self._handle_exception(e)
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 638, in _handle_exception
2023-09-24T05:04:54.034000+00:00 raise e
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 959, in _internal_run_as_gen
2023-09-24T05:04:54.034000+00:00 epoch_time_taken += yield from self._run_once_on_dataset_as_gen()
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 1087, in _run_once_on_dataset_as_gen
2023-09-24T05:04:54.034000+00:00 self._handle_exception(e)
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 638, in _handle_exception
2023-09-24T05:04:54.034000+00:00 raise e
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 1068, in _run_once_on_dataset_as_gen
2023-09-24T05:04:54.034000+00:00 self.state.output = self._process_function(self, self.state.batch)
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/engines/evaluator.py", line 462, in _iteration
2023-09-24T05:04:54.034000+00:00 engine.fire_event(IterationEvents.MODEL_COMPLETED)
2023-09-24T05:04:54.034000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 449, in fire_event
2023-09-24T05:04:54.034000+00:00 return self._fire_event(event_name)
2023-09-24T05:04:54.035000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/ignite/engine/engine.py", line 425, in _fire_event
2023-09-24T05:04:54.035000+00:00 func(*first, *(event_args + others), **kwargs)
2023-09-24T05:04:54.035000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/engines/workflow.py", line 226, in _run_postprocessing
2023-09-24T05:04:54.035000+00:00 engine.state.batch[i], engine.state.output[i] = engine_apply_transform(b, o, posttrans)
2023-09-24T05:04:54.035000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/engines/utils.py", line 261, in engine_apply_transform
2023-09-24T05:04:54.035000+00:00 transformed_data = apply_transform(transform, data)
2023-09-24T05:04:54.035000+00:00 File "/home/algorithm/.local/lib/python3.10/site-packages/monai/transforms/transform.py", line 171, in apply_transform
2023-09-24T05:04:54.035000+00:00 raise RuntimeError(f"applying transform {transform}") from e
2023-09-24T05:04:54.035000+00:00 RuntimeError: applying transform <monai.transforms.compose.Compose object at 0x7f0d7049b280>