Skip to content

Instantly share code, notes, and snippets.

View lucasnewman's full-sized avatar

Lucas Newman lucasnewman

  • San Francisco, CA
View GitHub Profile
import torch
def mel_filterbank(
n_freqs,
f_min,
f_max,
n_mels,
sample_rate,
norm=None,
mel_scale="htk"
from __future__ import annotations
from functools import reduce
from typing import List
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pad_sequence
import einx
from __future__ import annotations
from typing import Any, Optional
import torch
from torch import nn
import torchaudio
import yaml
import datetime
from pathlib import Path
import torch
import torchaudio
from torchaudio.transforms import MelSpectrogram
from einops import rearrange
from vocos import Vocos