mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-10-31 03:20:40 +00:00
146 lines
4.7 KiB
YAML
146 lines
4.7 KiB
YAML
model:
|
|
target: imaginairy.modules.sgm.diffusion.DiffusionEngine
|
|
params:
|
|
scale_factor: 0.18215
|
|
disable_first_stage_autocast: False
|
|
|
|
|
|
denoiser_config:
|
|
target: imaginairy.modules.sgm.diffusionmodules.denoiser.Denoiser
|
|
params:
|
|
scaling_config:
|
|
target: imaginairy.modules.sgm.diffusionmodules.denoiser_scaling.VScalingWithEDMcNoise
|
|
|
|
network_config:
|
|
target: imaginairy.modules.sgm.diffusionmodules.video_model.VideoUNet
|
|
params:
|
|
adm_in_channels: 768
|
|
num_classes: sequential
|
|
use_checkpoint: False
|
|
in_channels: 8
|
|
out_channels: 4
|
|
model_channels: 320
|
|
attention_resolutions: [4, 2, 1]
|
|
num_res_blocks: 2
|
|
channel_mult: [1, 2, 4, 4]
|
|
num_head_channels: 64
|
|
use_linear_in_transformer: True
|
|
transformer_depth: 1
|
|
context_dim: 1024
|
|
spatial_transformer_attn_type: softmax-xformers
|
|
extra_ff_mix_layer: True
|
|
use_spatial_context: True
|
|
merge_strategy: learned_with_images
|
|
video_kernel_size: [3, 1, 1]
|
|
|
|
conditioner_config:
|
|
target: imaginairy.modules.sgm.encoders.modules.GeneralConditioner
|
|
params:
|
|
emb_models:
|
|
- is_trainable: False
|
|
input_key: cond_frames_without_noise
|
|
target: imaginairy.modules.sgm.encoders.modules.FrozenOpenCLIPImagePredictionEmbedder
|
|
params:
|
|
n_cond_frames: 1
|
|
n_copies: 1
|
|
open_clip_embedding_config:
|
|
target: imaginairy.modules.sgm.encoders.modules.FrozenOpenCLIPImageEmbedder
|
|
params:
|
|
freeze: True
|
|
|
|
- input_key: fps_id
|
|
is_trainable: False
|
|
target: imaginairy.modules.sgm.encoders.modules.ConcatTimestepEmbedderND
|
|
params:
|
|
outdim: 256
|
|
|
|
- input_key: motion_bucket_id
|
|
is_trainable: False
|
|
target: imaginairy.modules.sgm.encoders.modules.ConcatTimestepEmbedderND
|
|
params:
|
|
outdim: 256
|
|
|
|
- input_key: cond_frames
|
|
is_trainable: False
|
|
target: imaginairy.modules.sgm.encoders.modules.VideoPredictionEmbedderWithEncoder
|
|
params:
|
|
disable_encoder_autocast: False
|
|
n_cond_frames: 1
|
|
n_copies: 1
|
|
is_ae: True
|
|
encoder_config:
|
|
target: imaginairy.modules.sgm.autoencoder.AutoencoderKLModeOnly
|
|
params:
|
|
embed_dim: 4
|
|
monitor: val/rec_loss
|
|
ddconfig:
|
|
attn_type: vanilla-xformers
|
|
double_z: True
|
|
z_channels: 4
|
|
resolution: 256
|
|
in_channels: 3
|
|
out_ch: 3
|
|
ch: 128
|
|
ch_mult: [1, 2, 4, 4]
|
|
num_res_blocks: 2
|
|
attn_resolutions: []
|
|
dropout: 0.0
|
|
lossconfig:
|
|
target: torch.nn.Identity
|
|
|
|
- input_key: cond_aug
|
|
is_trainable: False
|
|
target: imaginairy.modules.sgm.encoders.modules.ConcatTimestepEmbedderND
|
|
params:
|
|
outdim: 256
|
|
|
|
first_stage_config:
|
|
target: imaginairy.modules.sgm.autoencoder.AutoencodingEngine
|
|
params:
|
|
loss_config:
|
|
target: torch.nn.Identity
|
|
regularizer_config:
|
|
target: imaginairy.modules.sgm.autoencoding.regularizers.DiagonalGaussianRegularizer
|
|
encoder_config:
|
|
target: imaginairy.modules.sgm.diffusionmodules.model.Encoder
|
|
params:
|
|
attn_type: vanilla
|
|
double_z: True
|
|
z_channels: 4
|
|
resolution: 256
|
|
in_channels: 3
|
|
out_ch: 3
|
|
ch: 128
|
|
ch_mult: [1, 2, 4, 4]
|
|
num_res_blocks: 2
|
|
attn_resolutions: []
|
|
dropout: 0.0
|
|
decoder_config:
|
|
target: imaginairy.modules.sgm.autoencoding.temporal_ae.VideoDecoder
|
|
params:
|
|
attn_type: vanilla
|
|
double_z: True
|
|
z_channels: 4
|
|
resolution: 256
|
|
in_channels: 3
|
|
out_ch: 3
|
|
ch: 128
|
|
ch_mult: [1, 2, 4, 4]
|
|
num_res_blocks: 2
|
|
attn_resolutions: []
|
|
dropout: 0.0
|
|
video_kernel_size: [3, 1, 1]
|
|
|
|
sampler_config:
|
|
target: imaginairy.modules.sgm.diffusionmodules.sampling.EulerEDMSampler
|
|
params:
|
|
discretization_config:
|
|
target: imaginairy.modules.sgm.diffusionmodules.discretizer.EDMDiscretization
|
|
params:
|
|
sigma_max: 700.0
|
|
|
|
guider_config:
|
|
target: imaginairy.modules.sgm.diffusionmodules.guiders.LinearPredictionGuider
|
|
params:
|
|
max_scale: 2.5
|
|
min_scale: 1.0 |