pub enum HeadCategory {
Face,
Body,
Background,
Style,
Composition,
Detail,
Lighting,
Color,
Edge,
General,
}Expand description
Categories of attention heads based on their learned function
Variants§
Face
Face/portrait focused heads (eyes, mouth, structure)
Body
Body and pose attention
Background
Background and scene composition
Style
Style and texture patterns
Composition
Composition and layout
Detail
Fine detail refinement
Lighting
Lighting and shadows
Color
Color harmony
Edge
Object boundaries
General
General purpose (always active)
Implementations§
Source§impl HeadCategory
impl HeadCategory
Sourcepub fn default_importance(&self) -> f32
pub fn default_importance(&self) -> f32
Default importance for this category (0.0 - 1.0)
Sourcepub fn is_mandatory(&self) -> bool
pub fn is_mandatory(&self) -> bool
Whether this category should always be active
Sourcepub fn all() -> &'static [HeadCategory]
pub fn all() -> &'static [HeadCategory]
All categories
Trait Implementations§
Source§impl Clone for HeadCategory
impl Clone for HeadCategory
Source§fn clone(&self) -> HeadCategory
fn clone(&self) -> HeadCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeadCategory
Source§impl Debug for HeadCategory
impl Debug for HeadCategory
Source§impl<'de> Deserialize<'de> for HeadCategory
impl<'de> Deserialize<'de> for HeadCategory
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
impl Eq for HeadCategory
Source§impl Hash for HeadCategory
impl Hash for HeadCategory
Source§impl PartialEq for HeadCategory
impl PartialEq for HeadCategory
Source§impl Serialize for HeadCategory
impl Serialize for HeadCategory
impl StructuralPartialEq for HeadCategory
Auto Trait Implementations§
impl Freeze for HeadCategory
impl RefUnwindSafe for HeadCategory
impl Send for HeadCategory
impl Sync for HeadCategory
impl Unpin for HeadCategory
impl UnsafeUnpin for HeadCategory
impl UnwindSafe for HeadCategory
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