init
Browse files- fetch_dataset_s2s.py +1 -1
- tokenize_dataset_s2s.py +1 -1
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 =
|
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 = 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 |
|
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 =
|
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 = 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 |
|