#[non_exhaustive]pub struct SemanticParams {
pub upsample: Option<Upsample>,
pub decode_mode: Option<DecodeMode>,
pub threshold: Option<f32>,
pub background_index: Option<u32>,
pub no_object_index: Option<u32>,
pub mask_activation: Option<MaskActivation>,
}Expand description
Semantic segmentation decode fields of a logical output.
Serialized flat alongside the other logical-output fields. All fields are optional; absent means the decoder default.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.upsample: Option<Upsample>Upsampling of the score map to the requested resolution.
decode_mode: Option<DecodeMode>Default decode mode; callers may override it at runtime.
threshold: Option<f32>Foreground threshold for single-channel outputs, in the space of
the tensor after activation_applied (probability for sigmoid,
logit otherwise).
background_index: Option<u32>Channel index of the background class, when the model has one.
no_object_index: Option<u32>class_logits only: index of the “no object” class. Absent means
the last class.
mask_activation: Option<MaskActivation>mask_logits only: activation applied across the mask logits.
Trait Implementations§
Source§impl Clone for SemanticParams
impl Clone for SemanticParams
Source§impl Debug for SemanticParams
impl Debug for SemanticParams
Source§impl Default for SemanticParams
impl Default for SemanticParams
Source§impl<'de> Deserialize<'de> for SemanticParams
impl<'de> Deserialize<'de> for SemanticParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SemanticParams
impl PartialEq for SemanticParams
Source§impl Serialize for SemanticParams
impl Serialize for SemanticParams
impl StructuralPartialEq for SemanticParams
Auto Trait Implementations§
impl Freeze for SemanticParams
impl RefUnwindSafe for SemanticParams
impl Send for SemanticParams
impl Sync for SemanticParams
impl Unpin for SemanticParams
impl UnsafeUnpin for SemanticParams
impl UnwindSafe for SemanticParams
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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