question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension for cross-dimensional inference with SlidingWindowInferer

See original GitHub issue

Is your feature request related to a problem? Please describe. The request is to have an addition for the SlidingWindowInferer to support inference on, for example, 3D CT scans on a slice-by-slice basis using a 2D model.

Describe the solution you’d like A simple solution exists ofcourse, where the model is run using SimpleInferer on a slice-by-slice basis and then collected. However, adding this support to SlidingWindowInferer will allow it to be more generalized. A single interface can handle the inference for a 3D volume both with 2D and 3D models.

Describe alternatives you’ve considered I’ve implemented a naive version here: https://github.com/ganslate-team/ganslate/blob/master/ganslate/utils/sliding_window_inferer.py which looks at the roi_size and the inputs and adds a network_wrapper over the 2D model

Additional context I would be happy to contribute a better solution if this is interesting to a larger set of user.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
surajpaibcommented, Jan 3, 2022

Hey @Nic-Ma

Thanks for your input - I agree with your suggestion. I’ll send in a PR in the coming days.

Apologies for the inactivity, courtesy of the holidays.

1reaction
Nic-Macommented, Dec 14, 2021

Hi @surajpaib ,

Thanks for your proposals. I would suggest option 2, it’s better to design multiple components for multiple features. Please try to make the usage clear in the doc-string to help users.

Thanks in advance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inference methods — MONAI 1.1.0 Documentation
Sliding window inference on inputs with predictor . The outputs of predictor could be a tensor, a tuple, or a dictionary of tensors....
Read more >
Sliding window inference for large 3D volumes? How to fit into ...
I want to run sliding window inference on big 3D microscopy images. My volumes have sizes of approximately (there is a bit of...
Read more >
Dimensionality Reduction and Network Inference for Climate ...
Networks are inferred over periods of 51 years and computed with a sliding window of 2 years for observational data sets from 1920...
Read more >
Multi-omics single-cell data integration and regulatory ... - Nature
We applied GLUE to various challenging tasks, including triple-omics integration, integrative regulatory inference and multi-omics human ...
Read more >
Full-Stack Innovation Fuels Highest MLPerf Inference 2.1 ...
NVIDIA delivered record-setting inference performance with the debut ... for a given sample up to 18x due to the sliding window inference.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found