Module audiocraft.modules
Modules used for building the models.
Expand source code
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""Modules used for building the models."""
# flake8: noqa
from .conv import (
NormConv1d,
NormConv2d,
NormConvTranspose1d,
NormConvTranspose2d,
StreamableConv1d,
StreamableConvTranspose1d,
pad_for_conv1d,
pad1d,
unpad1d,
)
from .lstm import StreamableLSTM
from .seanet import SEANetEncoder, SEANetDecoder
from .transformer import StreamingTransformer
Sub-modules
audiocraft.modules.activations
audiocraft.modules.chroma
audiocraft.modules.codebooks_patterns
audiocraft.modules.conditioners
audiocraft.modules.conv
audiocraft.modules.diffusion_schedule
-
Functions for Noise Schedule, defines diffusion process, reverse process and data processor.
audiocraft.modules.lstm
audiocraft.modules.rope
audiocraft.modules.seanet
audiocraft.modules.streaming
-
Streaming module API that should be implemented by all Streaming components,
audiocraft.modules.transformer
-
Transformer model, with streaming support, xformer attention support and easy causal attention with a potentially finite receptive field …