Update models.py
Browse files
models.py
CHANGED
|
@@ -1,4 +1,17 @@
|
|
| 1 |
from loss import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
class AlignmentEncoder(torch.nn.Module):
|
| 4 |
"""
|
|
|
|
| 1 |
from loss import *
|
| 2 |
+
import functools
|
| 3 |
+
import os
|
| 4 |
+
import random
|
| 5 |
+
import traceback
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Any, Dict, List, Optional, Tuple
|
| 8 |
+
|
| 9 |
+
import librosa
|
| 10 |
+
import numpy as np
|
| 11 |
+
import torch
|
| 12 |
+
from einops import rearrange
|
| 13 |
+
from scipy import ndimage
|
| 14 |
+
from torch.special import gammaln
|
| 15 |
|
| 16 |
class AlignmentEncoder(torch.nn.Module):
|
| 17 |
"""
|