Skip to content

Commit

Permalink
typos: encodec.py
Browse files Browse the repository at this point in the history
  • Loading branch information
0xlws committed Oct 18, 2023
1 parent 887b2ba commit e95bcf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions audiocraft/models/encodec.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


class CompressionModel(ABC, nn.Module):
"""Base API for all compression model that aim at being used as audio tokenizers
"""Base API for all compression models that aim at being used as audio tokenizers
with a language model.
"""

Expand Down Expand Up @@ -111,7 +111,7 @@ def get_pretrained(
logger.info("Getting pretrained compression model for debug")
model = builders.get_debug_compression_model()
elif Path(name).exists():
# We assume here if the paths exist that it is in fact an AC checkpoint
# We assume here if the path exists that it is in fact an AC checkpoint
# that was exported using `audiocraft.utils.export` functions.
model = loaders.load_compression_model(name, device=device)
else:
Expand Down Expand Up @@ -227,8 +227,8 @@ def encode(self, x: torch.Tensor) -> tp.Tuple[torch.Tensor, tp.Optional[torch.Te
Returns:
codes, scale (tuple of torch.Tensor, torch.Tensor): Tuple composed of:
codes a float tensor of shape [B, K, T] with K the number of codebooks used and T the timestep.
scale a float tensor containing the scale for audio renormalizealization.
codes: a float tensor of shape [B, K, T] with K the number of codebooks used and T the timestep.
scale: a float tensor containing the scale for audio renormalization.
"""
assert x.dim() == 3
x, scale = self.preprocess(x)
Expand Down

0 comments on commit e95bcf9

Please sign in to comment.