pub struct ModelSpec {Show 13 fields
pub id: &'static str,
pub name: &'static str,
pub stage: ModelStage,
pub status: WeightStatus,
pub origin: Framework,
pub description: &'static str,
pub paper: &'static str,
pub source: &'static str,
pub license: &'static str,
pub files: &'static [WeightFile],
pub inputs: &'static [&'static str],
pub outputs: &'static [&'static str],
pub size_divisor: u32,
}Expand description
A deep-learning QSM model and everything needed to obtain and run it.
Fields§
§id: &'static strStable identifier, e.g. "bfrnet", "qsmnet". Used by find_model and
as the env-var suffix $QSM_MODEL_DIR.
name: &'static strHuman-readable name, e.g. "BFRnet".
stage: ModelStageReconstruction stage this model implements.
status: WeightStatusWhether the weights are hosted and ready.
origin: FrameworkFramework the weights came from (before ONNX export).
description: &'static strOne-line description of the method.
paper: &'static strReference (citation / DOI / arXiv).
source: &'static strUpstream code repository.
license: &'static strLicense / redistribution note for the weights.
files: &'static [WeightFile]ONNX weight file(s) required at inference time.
inputs: &'static [&'static str]ONNX graph input tensor name(s), in the order the runner feeds them.
outputs: &'static [&'static str]ONNX graph output tensor name(s).
size_divisor: u32Spatial dimensions must be zero-padded to a multiple of this before
inference (0/1 = no constraint). Fully-convolutional nets with
pooling need e.g. 8 or 16.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelSpec
impl RefUnwindSafe for ModelSpec
impl Send for ModelSpec
impl Sync for ModelSpec
impl Unpin for ModelSpec
impl UnsafeUnpin for ModelSpec
impl UnwindSafe for ModelSpec
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