init
Browse files- attach_speaker_embedding_s2s.py +1 -1
- fetch_dataset_s2s.py +1 -1
- main_s2s.sh +7 -0
- test_s2s.sh +17 -0
- tokenize_dataset_s2s.py +1 -1
attach_speaker_embedding_s2s.py
CHANGED
@@ -21,7 +21,7 @@ sides = set(direction.split("-"))
|
|
21 |
dataset_id = os.getenv("DATASET_ID", 0)
|
22 |
num_proc = int(os.getenv("NUM_PROC", 1))
|
23 |
hf_org = os.getenv("HF_ORG", "asahi417")
|
24 |
-
hf_dataset = f"seamless-align-{direction}"
|
25 |
dataset = load_dataset(f"{hf_org}/{hf_dataset}", f"subset_{dataset_id}", split="train")
|
26 |
audio_loader = Audio()
|
27 |
|
|
|
21 |
dataset_id = os.getenv("DATASET_ID", 0)
|
22 |
num_proc = int(os.getenv("NUM_PROC", 1))
|
23 |
hf_org = os.getenv("HF_ORG", "asahi417")
|
24 |
+
hf_dataset = os.getenv("HF_DATASET", f"seamless-align-{direction}")
|
25 |
dataset = load_dataset(f"{hf_org}/{hf_dataset}", f"subset_{dataset_id}", split="train")
|
26 |
audio_loader = Audio()
|
27 |
|
fetch_dataset_s2s.py
CHANGED
@@ -41,7 +41,7 @@ line_no_start = int(os.getenv("LINE_NO_START", 0))
|
|
41 |
line_no_end = int(os.getenv("LINE_NO_END", 10000))
|
42 |
dataset_id = os.getenv("DATASET_ID", 0)
|
43 |
hf_org = os.getenv("HF_ORG", "asahi417")
|
44 |
-
hf_dataset = f"seamless-align-{direction}"
|
45 |
skip_download = bool(int(os.getenv("SKIP_DOWNLOAD", 0)))
|
46 |
sampling_rate = 16000 # seamless-align aligns audio in 16kHz
|
47 |
|
|
|
41 |
line_no_end = int(os.getenv("LINE_NO_END", 10000))
|
42 |
dataset_id = os.getenv("DATASET_ID", 0)
|
43 |
hf_org = os.getenv("HF_ORG", "asahi417")
|
44 |
+
hf_dataset = os.getenv("HF_DATASET", f"seamless-align-{direction}")
|
45 |
skip_download = bool(int(os.getenv("SKIP_DOWNLOAD", 0)))
|
46 |
sampling_rate = 16000 # seamless-align aligns audio in 16kHz
|
47 |
|
main_s2s.sh
CHANGED
@@ -25,6 +25,13 @@ do
|
|
25 |
export DIRECTION="enA-jaA"
|
26 |
python tokenize_dataset_s2s.py
|
27 |
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
####################
|
30 |
# enA-hiA: 454_942 #
|
|
|
25 |
export DIRECTION="enA-jaA"
|
26 |
python tokenize_dataset_s2s.py
|
27 |
done
|
28 |
+
# speaker embedding
|
29 |
+
for i in $(seq 1 144);
|
30 |
+
do
|
31 |
+
export DATASET_ID=${i}
|
32 |
+
export DIRECTION="enA-jaA"
|
33 |
+
python attach_speaker_embedding_s2s.py
|
34 |
+
done
|
35 |
|
36 |
####################
|
37 |
# enA-hiA: 454_942 #
|
test_s2s.sh
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# audio
|
2 |
+
export DATASET_ID=test
|
3 |
+
export DIRECTION="enA-jaA"
|
4 |
+
export LINE_NO_START=0
|
5 |
+
export LINE_NO_END=10
|
6 |
+
export HF_DATASET="experiment-process-seamless-align"
|
7 |
+
python fetch_dataset_s2s.py
|
8 |
+
# tokenize
|
9 |
+
export DATASET_ID=test
|
10 |
+
export DIRECTION="enA-jaA"
|
11 |
+
export HF_DATASET="experiment-process-seamless-align"
|
12 |
+
python tokenize_dataset_s2s.py
|
13 |
+
# speaker embedding
|
14 |
+
export DATASET_ID=test
|
15 |
+
export DIRECTION="enA-jaA"
|
16 |
+
export HF_DATASET="experiment-process-seamless-align"
|
17 |
+
python attach_speaker_embedding_s2s.py
|
tokenize_dataset_s2s.py
CHANGED
@@ -13,7 +13,7 @@ sides = set(direction.split("-"))
|
|
13 |
dataset_id = os.getenv("DATASET_ID", 0)
|
14 |
num_proc = int(os.getenv("NUM_PROC", 1))
|
15 |
hf_org = os.getenv("HF_ORG", "asahi417")
|
16 |
-
hf_dataset = f"seamless-align-{direction}"
|
17 |
dataset = load_dataset(f"{hf_org}/{hf_dataset}", f"subset_{dataset_id}", split="train")
|
18 |
tokenizer = EncodecTokenizer.from_pretrained()
|
19 |
|
|
|
13 |
dataset_id = os.getenv("DATASET_ID", 0)
|
14 |
num_proc = int(os.getenv("NUM_PROC", 1))
|
15 |
hf_org = os.getenv("HF_ORG", "asahi417")
|
16 |
+
hf_dataset = os.getenv("HF_DATASET", f"seamless-align-{direction}")
|
17 |
dataset = load_dataset(f"{hf_org}/{hf_dataset}", f"subset_{dataset_id}", split="train")
|
18 |
tokenizer = EncodecTokenizer.from_pretrained()
|
19 |
|