asahi417 commited on
Commit
f18b743
1 Parent(s): 85389e6
Files changed (2) hide show
  1. main_s2s.sh +39 -18
  2. tokenize_dataset_s2s.py +2 -0
main_s2s.sh CHANGED
@@ -8,16 +8,6 @@ export LINE_NO_START=0
8
  export LINE_NO_END=10
9
  python fetch_dataset_s2s.py
10
  # main
11
- for i in $(seq 49 50);
12
- do
13
- export N_POOL=15
14
- export DATASET_ID=${i}
15
- export DIRECTION="enA-koA"
16
- export LINE_NO_START=$(((DATASET_ID-1) * 2500))
17
- export LINE_NO_END=$((DATASET_ID * 2500))
18
- echo ${LINE_NO_START}
19
- python fetch_dataset_s2s.py
20
- done
21
  for i in $(seq 87 100);
22
  do
23
  export N_POOL=15
@@ -29,7 +19,7 @@ do
29
  python fetch_dataset_s2s.py
30
  done
31
  # tokenize
32
- for i in $(seq 21 36);
33
  do
34
  export N_POOL=15
35
  export DATASET_ID=${i}
@@ -339,12 +329,17 @@ export SE_MODEL="metavoice"
339
  export SE_MODEL="w2vbert-600m"
340
  export SE_MODEL="hubert-xl"
341
  export SE_MODEL="xlsr-2b"
342
- for i in $(seq 1 91);
343
  do
344
  export DATASET_ID=${i}
345
  export DIRECTION="enA-hiA"
346
  python attach_speaker_embedding_s2s.py
347
  done
 
 
 
 
 
348
  ####################
349
  # enA-viA: 740_598 #
350
  ####################
@@ -374,9 +369,9 @@ do
374
  done
375
  # speaker embedding
376
  export SE_MODEL="metavoice"
 
377
  export SE_MODEL="w2vbert-600m"
378
  export SE_MODEL="hubert-xl"
379
- export SE_MODEL="xlsr-2b"
380
  for i in $(seq 1 149);
381
  do
382
  export DATASET_ID=${i}
@@ -384,7 +379,17 @@ do
384
  python attach_speaker_embedding_s2s.py
385
  done
386
 
 
 
 
387
 
 
 
 
 
 
 
 
388
 
389
  ######################
390
  # enA-zhA: 1_289_192 #
@@ -419,10 +424,10 @@ do
419
  done
420
  # speaker embedding
421
  export SE_MODEL="metavoice"
422
- export SE_MODEL="hubert-xl"
423
- export SE_MODEL="xlsr-2b"
424
  export SE_MODEL="w2vbert-600m"
425
- for i in $(seq 14 258);
 
426
  do
427
  export DATASET_ID=${i}
428
  export DIRECTION="enA-zhA"
@@ -460,12 +465,28 @@ done
460
  # speaker embedding
461
  export SE_MODEL="metavoice"
462
  export SE_MODEL="w2vbert-600m"
463
- export SE_MODEL="xlsr-2b"
464
  export SE_MODEL="hubert-xl"
 
465
  for i in $(seq 1 144);
466
  do
467
  export DATASET_ID=${i}
468
  export DIRECTION="enA-jaA"
469
  python attach_speaker_embedding_s2s.py
470
- rm -rf ~/.cache/huggingface/datasets
471
  done
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  export LINE_NO_END=10
9
  python fetch_dataset_s2s.py
10
  # main
 
 
 
 
 
 
 
 
 
 
11
  for i in $(seq 87 100);
12
  do
13
  export N_POOL=15
 
19
  python fetch_dataset_s2s.py
20
  done
21
  # tokenize
22
+ for i in $(seq 37 50);
23
  do
24
  export N_POOL=15
25
  export DATASET_ID=${i}
 
329
  export SE_MODEL="w2vbert-600m"
330
  export SE_MODEL="hubert-xl"
331
  export SE_MODEL="xlsr-2b"
332
+ for i in $(seq 17 91);
333
  do
334
  export DATASET_ID=${i}
335
  export DIRECTION="enA-hiA"
336
  python attach_speaker_embedding_s2s.py
337
  done
338
+
339
+ export SE_MODEL="hubert-xl"
340
+ export DATASET_ID=84
341
+ export DIRECTION="enA-hiA"
342
+ python attach_speaker_embedding_s2s.py
343
  ####################
344
  # enA-viA: 740_598 #
345
  ####################
 
369
  done
370
  # speaker embedding
371
  export SE_MODEL="metavoice"
372
+ export SE_MODEL="xlsr-2b"
373
  export SE_MODEL="w2vbert-600m"
374
  export SE_MODEL="hubert-xl"
 
375
  for i in $(seq 1 149);
376
  do
377
  export DATASET_ID=${i}
 
379
  python attach_speaker_embedding_s2s.py
380
  done
381
 
382
+ export SE_MODEL="w2vbert-600m"
383
+ export DATASET_ID=116
384
+ python attach_speaker_embedding_s2s.py
385
 
386
+ export SE_MODEL="hubert-xl"
387
+ for i in 107 115 126;
388
+ do
389
+ export DATASET_ID=${i}
390
+ export DIRECTION="enA-viA"
391
+ python attach_speaker_embedding_s2s.py
392
+ done
393
 
394
  ######################
395
  # enA-zhA: 1_289_192 #
 
424
  done
425
  # speaker embedding
426
  export SE_MODEL="metavoice"
427
+ #export SE_MODEL="xlsr-2b"
 
428
  export SE_MODEL="w2vbert-600m"
429
+ export SE_MODEL="hubert-xl"
430
+ for i in $(seq 1 258);
431
  do
432
  export DATASET_ID=${i}
433
  export DIRECTION="enA-zhA"
 
465
  # speaker embedding
466
  export SE_MODEL="metavoice"
467
  export SE_MODEL="w2vbert-600m"
 
468
  export SE_MODEL="hubert-xl"
469
+ export SE_MODEL="xlsr-2b"
470
  for i in $(seq 1 144);
471
  do
472
  export DATASET_ID=${i}
473
  export DIRECTION="enA-jaA"
474
  python attach_speaker_embedding_s2s.py
 
475
  done
476
+
477
+ export SE_MODEL="w2vbert-600m"
478
+ for i in 9 107 126 142;
479
+ do
480
+ export DATASET_ID=${i}
481
+ export DIRECTION="enA-jaA"
482
+ python attach_speaker_embedding_s2s.py
483
+ done
484
+
485
+ export SE_MODEL="hubert-xl"
486
+ for i in 103 114 115 121 129;
487
+ do
488
+ export DATASET_ID=${i}
489
+ export DIRECTION="enA-jaA"
490
+ python attach_speaker_embedding_s2s.py
491
+ done
492
+
tokenize_dataset_s2s.py CHANGED
@@ -26,6 +26,8 @@ def error_file(example):
26
  wav = audio_loader.decode_example(example[f"{side}.audio"])
27
  if len(wav["array"]) == 0 or len(wav["array"]) > max_seq_length:
28
  return False
 
 
29
  except LibsndfileError:
30
  return False
31
  return True
 
26
  wav = audio_loader.decode_example(example[f"{side}.audio"])
27
  if len(wav["array"]) == 0 or len(wav["array"]) > max_seq_length:
28
  return False
29
+ except ValueError:
30
+ return False
31
  except LibsndfileError:
32
  return False
33
  return True