change fig size compress
Browse files- app.py +2 -0
- local/pitch_contour.py +1 -1
app.py
CHANGED
|
@@ -10,6 +10,8 @@ from local.convert_metrics import nat2avaMOS, WER2INTELI
|
|
| 10 |
from local.indicator_plot import Intelligibility_Plot, Naturalness_Plot
|
| 11 |
from local.pitch_contour import draw_spec_db_pitch
|
| 12 |
# ASR part
|
|
|
|
|
|
|
| 13 |
from transformers import pipeline
|
| 14 |
p = pipeline("automatic-speech-recognition")
|
| 15 |
|
|
|
|
| 10 |
from local.indicator_plot import Intelligibility_Plot, Naturalness_Plot
|
| 11 |
from local.pitch_contour import draw_spec_db_pitch
|
| 12 |
# ASR part
|
| 13 |
+
import csv
|
| 14 |
+
csv.field_size_limit(10e9)
|
| 15 |
from transformers import pipeline
|
| 16 |
p = pipeline("automatic-speech-recognition")
|
| 17 |
|
local/pitch_contour.py
CHANGED
|
@@ -76,7 +76,7 @@ def draw_pitch(pitch):
|
|
| 76 |
|
| 77 |
def draw_spec_db_pitch(wav, save_fig_path=None):
|
| 78 |
# get figure
|
| 79 |
-
fig = plt.figure(figsize=(
|
| 80 |
fig.tight_layout()
|
| 81 |
|
| 82 |
# get pitch, intensity, spectrogram
|
|
|
|
| 76 |
|
| 77 |
def draw_spec_db_pitch(wav, save_fig_path=None):
|
| 78 |
# get figure
|
| 79 |
+
fig = plt.figure(figsize=(5, 2.5))
|
| 80 |
fig.tight_layout()
|
| 81 |
|
| 82 |
# get pitch, intensity, spectrogram
|