asahi417 commited on
Commit
3e1b04d
·
1 Parent(s): cc0ba7a
Files changed (2) hide show
  1. attach_speaker_embedding_s2s.py +1 -0
  2. main_s2s.sh +26 -26
attach_speaker_embedding_s2s.py CHANGED
@@ -60,6 +60,7 @@ print(f"Num examples (after filtering): {len(dataset)}")
60
 
61
  def speaker_embedding(example):
62
  for side in sides:
 
63
  embedding = speaker_embedder.get_speaker_embedding(
64
  example[f"{side}.audio"]["array"], example[f"{side}.audio"]["sampling_rate"]
65
  )
 
60
 
61
  def speaker_embedding(example):
62
  for side in sides:
63
+ print(len(example[f"{side}.audio"]["array"]))
64
  embedding = speaker_embedder.get_speaker_embedding(
65
  example[f"{side}.audio"]["array"], example[f"{side}.audio"]["sampling_rate"]
66
  )
main_s2s.sh CHANGED
@@ -332,32 +332,24 @@ done
332
 
333
  # todo
334
  export SE_MODEL="hubert-xl"
335
- for i in $(seq 1 98);
336
  do
337
  export DATASET_ID=${i}
338
  export DIRECTION="enA-koA"
339
  python attach_speaker_embedding_s2s.py
340
  done
 
341
  export SE_MODEL="w2vbert-600m"
342
- for i in $(seq 90 98);
343
- do
344
- export DATASET_ID=${i}
345
- export DIRECTION="enA-koA"
346
- python attach_speaker_embedding_s2s.py
347
- done
348
- for i in 34 49 50 87 88;
349
- do
350
- export DATASET_ID=${i}
351
- export DIRECTION="enA-koA"
352
- python attach_speaker_embedding_s2s.py
353
- done
354
  export SE_MODEL="xlsr-2b"
355
- for i in $(seq 90 98);
356
- do
357
- export DATASET_ID=${i}
358
- export DIRECTION="enA-koA"
359
- python attach_speaker_embedding_s2s.py
360
- done
361
 
362
 
363
 
@@ -404,20 +396,28 @@ do
404
  python attach_speaker_embedding_s2s.py
405
  done
406
 
407
- for i in 162 163 164 165 83 8;
408
  do
409
  export SE_MODEL="xlsr-2b" # running
410
  export DIRECTION="enA-zhA"
411
  python attach_speaker_embedding_s2s.py
412
  done
413
 
414
- export SE_MODEL="w2vbert-600m" # running
415
- export DATASET_ID=167
416
- export DIRECTION="enA-zhA"
417
- python attach_speaker_embedding_s2s.py
418
-
419
-
 
420
 
 
 
 
 
 
 
 
421
 
422
 
423
  ####################
 
332
 
333
  # todo
334
  export SE_MODEL="hubert-xl"
335
+ for i in $(seq 1 100);
336
  do
337
  export DATASET_ID=${i}
338
  export DIRECTION="enA-koA"
339
  python attach_speaker_embedding_s2s.py
340
  done
341
+
342
  export SE_MODEL="w2vbert-600m"
343
+ export DATASET_ID=34
344
+ export DIRECTION="enA-koA"
345
+ python attach_speaker_embedding_s2s.py
346
+ export DATASET_ID=49
347
+ export DIRECTION="enA-koA"
348
+ python attach_speaker_embedding_s2s.py
 
 
 
 
 
 
349
  export SE_MODEL="xlsr-2b"
350
+ export DATASET_ID=49
351
+ export DIRECTION="enA-koA"
352
+ python attach_speaker_embedding_s2s.py
 
 
 
353
 
354
 
355
 
 
396
  python attach_speaker_embedding_s2s.py
397
  done
398
 
399
+ for i in 162 163 164 165 175 83 84;
400
  do
401
  export SE_MODEL="xlsr-2b" # running
402
  export DIRECTION="enA-zhA"
403
  python attach_speaker_embedding_s2s.py
404
  done
405
 
406
+ for i in 49 34;
407
+ do
408
+ export SE_MODEL="w2vbert-600m"
409
+ export DATASET_ID=${i}
410
+ export DIRECTION="enA-koA"
411
+ python attach_speaker_embedding_s2s.py
412
+ done
413
 
414
+ for i in 34 81 49 50 21;
415
+ do
416
+ export SE_MODEL="xlsr-2b"
417
+ export DATASET_ID=${i}
418
+ export DIRECTION="enA-koA"
419
+ python attach_speaker_embedding_s2s.py
420
+ done
421
 
422
 
423
  ####################