pub struct UNet2DConditionModelConfig {
pub center_input_sample: bool,
pub flip_sin_to_cos: bool,
pub freq_shift: f64,
pub blocks: Vec<BlockConfig>,
pub layers_per_block: usize,
pub downsample_padding: usize,
pub mid_block_scale_factor: f64,
pub norm_num_groups: usize,
pub norm_eps: f64,
pub cross_attention_dim: usize,
pub sliced_attention_size: Option<usize>,
pub use_linear_projection: bool,
}
Fields§
§center_input_sample: bool
§flip_sin_to_cos: bool
§freq_shift: f64
§blocks: Vec<BlockConfig>
§layers_per_block: usize
§downsample_padding: usize
§mid_block_scale_factor: f64
§norm_num_groups: usize
§norm_eps: f64
§cross_attention_dim: usize
§sliced_attention_size: Option<usize>
§use_linear_projection: bool
Trait Implementations§
source§impl Clone for UNet2DConditionModelConfig
impl Clone for UNet2DConditionModelConfig
source§fn clone(&self) -> UNet2DConditionModelConfig
fn clone(&self) -> UNet2DConditionModelConfig
Returns a copy 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 UNet2DConditionModelConfig
impl Debug for UNet2DConditionModelConfig
Auto Trait Implementations§
impl Freeze for UNet2DConditionModelConfig
impl RefUnwindSafe for UNet2DConditionModelConfig
impl Send for UNet2DConditionModelConfig
impl Sync for UNet2DConditionModelConfig
impl Unpin for UNet2DConditionModelConfig
impl UnwindSafe for UNet2DConditionModelConfig
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