Spaces:
Runtime error
Runtime error
edit files
Browse files- data_utils.py +4 -4
- mecab.sh +0 -39
- requirements.txt +1 -1
data_utils.py
CHANGED
@@ -5,10 +5,10 @@ import numpy as np
|
|
5 |
import torch
|
6 |
import torch.utils.data
|
7 |
|
8 |
-
|
9 |
-
from
|
10 |
-
from
|
11 |
-
from
|
12 |
|
13 |
|
14 |
class TextAudioLoader(torch.utils.data.Dataset):
|
|
|
5 |
import torch
|
6 |
import torch.utils.data
|
7 |
|
8 |
+
import commons
|
9 |
+
from mel_processing import spectrogram_torch
|
10 |
+
from utils import load_wav_to_torch, load_filepaths_and_text
|
11 |
+
from text import text_to_sequence, cleaned_text_to_sequence
|
12 |
|
13 |
|
14 |
class TextAudioLoader(torch.utils.data.Dataset):
|
mecab.sh
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
#! /bin/bash
|
2 |
-
#
|
3 |
-
# Original author: Lucy Park
|
4 |
-
# Edited by: nyanye
|
5 |
-
#
|
6 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7 |
-
# you may not use this file except in compliance with the License.
|
8 |
-
# You may obtain a copy of the License at
|
9 |
-
#
|
10 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11 |
-
#
|
12 |
-
# Unless required by applicable law or agreed to in writing, software
|
13 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 |
-
# See the License for the specific language governing permissions and
|
16 |
-
# limitations under the License.
|
17 |
-
#
|
18 |
-
|
19 |
-
os=$(uname)
|
20 |
-
|
21 |
-
if [ $os == "Linux" ]; then
|
22 |
-
echo "Installing MeCab-ko"
|
23 |
-
elif [ $os == "Darwin" ]; then
|
24 |
-
echo "Installing MeCab-ko"
|
25 |
-
else
|
26 |
-
echo "This script does not support this OS."
|
27 |
-
exit 0
|
28 |
-
fi
|
29 |
-
|
30 |
-
# install mecab-ko
|
31 |
-
cd /tmp
|
32 |
-
curl -LO https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.2.tar.gz
|
33 |
-
tar zxfv mecab-0.996-ko-0.9.2.tar.gz
|
34 |
-
cd mecab-0.996-ko-0.9.2
|
35 |
-
./configure
|
36 |
-
make
|
37 |
-
make check
|
38 |
-
sudo make install
|
39 |
-
sudo ldconfig # In case of error: libmecab.so.2: cannot open shared object file: No such file or directory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
@@ -9,8 +9,8 @@ tensorboard
|
|
9 |
ko-pron
|
10 |
jamo
|
11 |
g2pk2
|
12 |
-
eunjeon
|
13 |
cmake
|
|
|
14 |
torch
|
15 |
torchvision
|
16 |
torchaudio
|
|
|
9 |
ko-pron
|
10 |
jamo
|
11 |
g2pk2
|
|
|
12 |
cmake
|
13 |
+
# eunjeon
|
14 |
torch
|
15 |
torchvision
|
16 |
torchaudio
|