Skip to content

Added command line argument --not_on_device to disable perform_everything_on_device during inference.#2980

Merged
FabianIsensee merged 2 commits intoMIC-DKFZ:masterfrom
ancestor-mithril:contribute_1
Mar 13, 2026
Merged

Added command line argument --not_on_device to disable perform_everything_on_device during inference.#2980
FabianIsensee merged 2 commits intoMIC-DKFZ:masterfrom
ancestor-mithril:contribute_1

Conversation

@ancestor-mithril
Copy link
Copy Markdown
Contributor

  • Enabling --not_on_device ensures sliding window aggregation is performed on cpu.
  • This feature is usefull for inference on GPUs without enough VRAM (e.g. CTs with more than 1000 slices might not fit in 8GB VRAM)
  • Without this feature, the default inference pipeline tries to do everything on GPU (perform_everything_on_device=True) and falls back to the CPU device only after failure (which might take some time). Moreover, the gaussian heatmap remains allocated on the CUDA device due to the lru_cache.

…ume on cuda device

Enabling this feature ensures sliding window aggregation is performed on cpu. This feature is usefull for inference on GPUs without enough VRAM (e.g. CTs with more than 1000 slices might not fit in 8GB VRAM)
@FabianIsensee FabianIsensee self-assigned this Feb 18, 2026
@FabianIsensee FabianIsensee merged commit 5ff0da5 into MIC-DKFZ:master Mar 13, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants