#[non_exhaustive]#[repr(i32)]pub enum ClipSkip {
Unspecified = 0,
None = 1,
OneLayer = 2,
}
Expand description
Ignore the lower X layers of CLIP network
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified = 0
Will be ClipSkip::None for SD1.x, ClipSkip::OneLayer for SD2.x
None = 1
OneLayer = 2
Trait Implementations§
impl Copy for ClipSkip
impl Eq for ClipSkip
impl StructuralPartialEq for ClipSkip
Auto Trait Implementations§
impl Freeze for ClipSkip
impl RefUnwindSafe for ClipSkip
impl Send for ClipSkip
impl Sync for ClipSkip
impl Unpin for ClipSkip
impl UnwindSafe for ClipSkip
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