Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Added possibility to set num_downsampling_paths for Unet as part of model configuration #425

Merged
merged 5 commits into from
Mar 26, 2021

Conversation

kh296
Copy link
Collaborator

@kh296 kh296 commented Mar 23, 2021

The Unet parameter num_downsampling_paths defines the number of network layers. It was previously always set to 4, but can now be modified as a part of model configuration. The default value remains 4. A lower value may be useful for decreasing memory requirements, of for working with shorter images. (The minimum number of image slices required when using a network of n layers is 2**n.)

The parameter num-downsampling-paths is initialised in InnerEye/ML/config.py, then is used in Unet creation in the build_net() function of InnerEye/ML/utils/model_util.py. An associated unit test has been added to Tests/ML/test_config_helpers.py.

@ant0nsc
Copy link
Contributor

ant0nsc commented Mar 26, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ant0nsc ant0nsc enabled auto-merge (squash) March 26, 2021 13:28
@ant0nsc ant0nsc disabled auto-merge March 26, 2021 13:29
@ant0nsc ant0nsc enabled auto-merge (squash) March 26, 2021 13:29
@ant0nsc ant0nsc merged commit 426854a into microsoft:main Mar 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants