pub enum PromptCategory {
Portrait,
Landscape,
Abstract,
Photorealistic,
Anime,
Architecture,
Object,
Fantasy,
Mixed,
}Expand description
Categories of prompts that influence head activation
Variants§
Portrait
Portrait or character-focused
Landscape
Landscape or scene
Abstract
Abstract or artistic
Photorealistic
Photorealistic
Anime
Anime/cartoon style
Architecture
Architecture or interiors
Object
Objects or products
Fantasy
Fantasy or sci-fi
Mixed
Unknown/mixed
Implementations§
Source§impl PromptCategory
impl PromptCategory
Sourcepub fn category_weights(&self) -> HashMap<HeadCategory, f32>
pub fn category_weights(&self) -> HashMap<HeadCategory, f32>
Head category importance modifiers for this prompt category
Trait Implementations§
Source§impl Clone for PromptCategory
impl Clone for PromptCategory
Source§fn clone(&self) -> PromptCategory
fn clone(&self) -> PromptCategory
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 PromptCategory
Source§impl Debug for PromptCategory
impl Debug for PromptCategory
Source§impl<'de> Deserialize<'de> for PromptCategory
impl<'de> Deserialize<'de> for PromptCategory
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 PromptCategory
Source§impl Hash for PromptCategory
impl Hash for PromptCategory
Source§impl PartialEq for PromptCategory
impl PartialEq for PromptCategory
Source§impl Serialize for PromptCategory
impl Serialize for PromptCategory
impl StructuralPartialEq for PromptCategory
Auto Trait Implementations§
impl Freeze for PromptCategory
impl RefUnwindSafe for PromptCategory
impl Send for PromptCategory
impl Sync for PromptCategory
impl Unpin for PromptCategory
impl UnsafeUnpin for PromptCategory
impl UnwindSafe for PromptCategory
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