pub enum CaptionKey {
LowLevel,
MiddleLevel,
HighLevelSummary,
HighLevelAll,
MiddleLow,
HighLow,
HighMiddle,
HighMiddleLow,
}Expand description
Which caption tier to use as the text pair during training.
Variants§
LowLevel
Statistical summary only (level 1).
MiddleLevel
Structural patterns only (level 2).
HighLevelSummary
High-level semantic summary (level 3, 256 tokens).
HighLevelAll
Full high-level caption (level 3, 1024 tokens).
MiddleLow
Levels 2 + 1.
HighLow
Levels 3 + 1.
HighMiddle
Levels 3 + 2.
HighMiddleLow
All three levels concatenated.
Implementations§
Source§impl CaptionKey
impl CaptionKey
Sourcepub fn max_tokens(self) -> usize
pub fn max_tokens(self) -> usize
Maximum token budget for this caption type.
Trait Implementations§
Source§impl Clone for CaptionKey
impl Clone for CaptionKey
Source§fn clone(&self) -> CaptionKey
fn clone(&self) -> CaptionKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaptionKey
impl Debug for CaptionKey
Source§impl<'de> Deserialize<'de> for CaptionKey
impl<'de> Deserialize<'de> for CaptionKey
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 CaptionKey
impl PartialEq for CaptionKey
Source§impl Serialize for CaptionKey
impl Serialize for CaptionKey
impl Copy for CaptionKey
impl Eq for CaptionKey
impl StructuralPartialEq for CaptionKey
Auto Trait Implementations§
impl Freeze for CaptionKey
impl RefUnwindSafe for CaptionKey
impl Send for CaptionKey
impl Sync for CaptionKey
impl Unpin for CaptionKey
impl UnsafeUnpin for CaptionKey
impl UnwindSafe for CaptionKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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