Spaces:
Running
Running
update
Browse files- app.py +0 -3
- requirements.txt +0 -2
- vdecoder/hifigan/utils.py +0 -14
app.py
CHANGED
@@ -11,9 +11,6 @@ from scipy.io import wavfile
|
|
11 |
import tempfile
|
12 |
import edge_tts
|
13 |
import utils
|
14 |
-
import matplotlib
|
15 |
-
|
16 |
-
matplotlib.use('TkAgg')
|
17 |
|
18 |
from inference.infer_tool import Svc
|
19 |
|
|
|
11 |
import tempfile
|
12 |
import edge_tts
|
13 |
import utils
|
|
|
|
|
|
|
14 |
|
15 |
from inference.infer_tool import Svc
|
16 |
|
requirements.txt
CHANGED
@@ -6,9 +6,7 @@ faiss-cpu
|
|
6 |
ffmpeg
|
7 |
librosa
|
8 |
local_attention
|
9 |
-
matplotlib
|
10 |
numpy
|
11 |
-
onnxruntime
|
12 |
parselmouth
|
13 |
pynvml
|
14 |
pyworld
|
|
|
6 |
ffmpeg
|
7 |
librosa
|
8 |
local_attention
|
|
|
9 |
numpy
|
|
|
10 |
parselmouth
|
11 |
pynvml
|
12 |
pyworld
|
vdecoder/hifigan/utils.py
CHANGED
@@ -1,24 +1,10 @@
|
|
1 |
import glob
|
2 |
import os
|
3 |
|
4 |
-
# matplotlib.use("Agg")
|
5 |
-
import matplotlib.pylab as plt
|
6 |
import torch
|
7 |
from torch.nn.utils import weight_norm
|
8 |
|
9 |
|
10 |
-
def plot_spectrogram(spectrogram):
|
11 |
-
fig, ax = plt.subplots(figsize=(10, 2))
|
12 |
-
im = ax.imshow(spectrogram, aspect="auto", origin="lower",
|
13 |
-
interpolation='none')
|
14 |
-
plt.colorbar(im, ax=ax)
|
15 |
-
|
16 |
-
fig.canvas.draw()
|
17 |
-
plt.close()
|
18 |
-
|
19 |
-
return fig
|
20 |
-
|
21 |
-
|
22 |
def init_weights(m, mean=0.0, std=0.01):
|
23 |
classname = m.__class__.__name__
|
24 |
if classname.find("Conv") != -1:
|
|
|
1 |
import glob
|
2 |
import os
|
3 |
|
|
|
|
|
4 |
import torch
|
5 |
from torch.nn.utils import weight_norm
|
6 |
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
def init_weights(m, mean=0.0, std=0.01):
|
9 |
classname = m.__class__.__name__
|
10 |
if classname.find("Conv") != -1:
|