The SyncNet visual encoder architecture is defined in a configuration file.
Key configuration parameters:
in_channels: This must equal num_frames * image_channels.- For pixel-space SyncNet,
image_channels is 3. - For latent-space SyncNet,
image_channels equals the latent_channels of the VAE being used (e.g., 4 for SD 1.5/SDXL, or 16 for FLUX/SD3).
block_out_channels: A list defining the number of channels at each layer.downsample_factors: Defines the downsampling at each layer.attn_blocks: A list where 1 indicates the presence of a self-attention layer and 0 indicates its absence.dropout: The dropout rate.
visual_encoder: # input (48, 128, 256)
in_channels: 48 # (16 x 3)
block_out_channels: [64, 128, 256, 256, 512, 1024, 2048, 2048]
downsample_factors: [[1, 2], 2, 2, 2, 2, 2, 2, 2]
attn_blocks: [0, 0, 0, 0, 1, 1, 0, 0]
dropout: 0.0