pub enum HdBetInference {
FullVolume,
SlidingWindow {
patch: (usize, usize, usize),
tile_step: f64,
},
}Expand description
How the network is applied to the preprocessed (cropped, 1 mm) volume.
Variants§
FullVolume
One network pass over the whole volume, zero-padded (centred) to the next multiple of
(32, 32, 16). Fastest, and every voxel sees the whole head; peak memory grows with the
field of view in mm (natively 5.7 GB for 184×256×128 mm, 9.3 GB for 240×240×160 mm; see
hd_bet_memory_bytes).
SlidingWindow
Gaussian-weighted sliding window, as nnU-Net (and the HD-BET v2 CLI) runs it.
Fields
patch: (usize, usize, usize)Patch size (px, py, pz) in voxels at 1 mm; HD-BET v2 was trained with
(192, 192, 96). Must be multiples of (32, 32, 16). Peak memory follows the patch
(natively 3.4 GB at (192, 192, 96), 1.3 GB at (128, 128, 64); see
hd_bet_memory_bytes); below ~(128, 128, 64) tiles that lie wholly inside the
brain start to be labelled background.
Implementations§
Source§impl HdBetInference
impl HdBetInference
Sourcepub const SLIDING_WINDOW: Self
pub const SLIDING_WINDOW: Self
nnU-Net’s sliding window: HD-BET v2’s training patch (192, 192, 96), 50 % overlap.
Sourcepub const LOW_MEMORY: Self
pub const LOW_MEMORY: Self
Memory-bounded sliding window: (128, 128, 64) patches, 50 % overlap.
Trait Implementations§
Source§impl Clone for HdBetInference
impl Clone for HdBetInference
Source§fn clone(&self) -> HdBetInference
fn clone(&self) -> HdBetInference
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HdBetInference
Source§impl Debug for HdBetInference
impl Debug for HdBetInference
Source§impl PartialEq for HdBetInference
impl PartialEq for HdBetInference
Source§impl Serialize for HdBetInference
impl Serialize for HdBetInference
impl StructuralPartialEq for HdBetInference
Auto Trait Implementations§
impl Freeze for HdBetInference
impl RefUnwindSafe for HdBetInference
impl Send for HdBetInference
impl Sync for HdBetInference
impl Unpin for HdBetInference
impl UnsafeUnpin for HdBetInference
impl UnwindSafe for HdBetInference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more