Spaces:
Runtime error
Runtime error
Commit
·
ea00224
1
Parent(s):
c895ee6
Fix bug in trying to import removed models
Browse files- remfx/models.py +0 -4
remfx/models.py
CHANGED
@@ -9,8 +9,6 @@ from auraloss.freq import MultiResolutionSTFTLoss
|
|
9 |
from umx.openunmix.model import OpenUnmix, Separator
|
10 |
|
11 |
from remfx.utils import FADLoss, spectrogram
|
12 |
-
from remfx.dptnet import DPTNet_base
|
13 |
-
from remfx.dcunet import RefineSpectrogramUnet
|
14 |
from remfx.tcn import TCN
|
15 |
from remfx.utils import causal_crop
|
16 |
import asteroid
|
@@ -214,8 +212,6 @@ class DPTNetModel(nn.Module):
|
|
214 |
def sample(self, x: Tensor) -> Tensor:
|
215 |
return self.model(x.squeeze(1))
|
216 |
|
217 |
-
|
218 |
-
class DCUNetModel(nn.Module):
|
219 |
def __init__(self, sample_rate, num_bins, **kwargs):
|
220 |
super().__init__()
|
221 |
self.model = asteroid.models.DCUNet(**kwargs)
|
|
|
9 |
from umx.openunmix.model import OpenUnmix, Separator
|
10 |
|
11 |
from remfx.utils import FADLoss, spectrogram
|
|
|
|
|
12 |
from remfx.tcn import TCN
|
13 |
from remfx.utils import causal_crop
|
14 |
import asteroid
|
|
|
212 |
def sample(self, x: Tensor) -> Tensor:
|
213 |
return self.model(x.squeeze(1))
|
214 |
|
|
|
|
|
215 |
def __init__(self, sample_rate, num_bins, **kwargs):
|
216 |
super().__init__()
|
217 |
self.model = asteroid.models.DCUNet(**kwargs)
|