pub struct FlowConfig {
pub d_model: usize,
pub latents: usize,
pub latent_dim: usize,
pub cond_dim: usize,
pub cond_tokens: usize,
pub blocks: usize,
pub num_heads: usize,
pub head_dim: usize,
pub d_ff: usize,
pub d_cond: usize,
pub frequencies: usize,
pub eps: f32,
}Expand description
The shape of a FlowTransformer.
The defaults are the plan’s: 512 latent slots of 64 dimensions, 16 blocks
of width 1,024, conditioned on a ViT-B tower’s [197, 768] tokens.
Fields§
§d_model: usize§latents: usizeLatent slots, which must match the shape autoencoder’s.
latent_dim: usizeThe width of one latent slot, likewise.
cond_dim: usizeThe width of one conditioning token — 768 for ViT-B.
cond_tokens: usizeHow many conditioning tokens there are — 197 for ViT-B/16 at 224.
blocks: usize§num_heads: usize§head_dim: usize§d_ff: usize§d_cond: usizeThe width of the timestep conditioning the blocks are modulated from.
frequencies: usizeThe sinusoidal basis the timestep is expanded into. Even.
eps: f32Trait Implementations§
Source§impl Clone for FlowConfig
impl Clone for FlowConfig
impl Copy for FlowConfig
Source§impl Debug for FlowConfig
impl Debug for FlowConfig
Source§impl Default for FlowConfig
impl Default for FlowConfig
Source§impl<'de> Deserialize<'de> for FlowConfig
impl<'de> Deserialize<'de> for FlowConfig
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 FlowConfig
impl PartialEq for FlowConfig
Source§impl Serialize for FlowConfig
impl Serialize for FlowConfig
impl StructuralPartialEq for FlowConfig
Auto Trait Implementations§
impl Freeze for FlowConfig
impl RefUnwindSafe for FlowConfig
impl Send for FlowConfig
impl Sync for FlowConfig
impl Unpin for FlowConfig
impl UnsafeUnpin for FlowConfig
impl UnwindSafe for FlowConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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