asahi417 commited on
Commit
775b8cf
·
1 Parent(s): 70e3538
Files changed (2) hide show
  1. download_audio.py +0 -1
  2. main.sh +2 -2
download_audio.py CHANGED
@@ -125,7 +125,6 @@ def get_audio(dataframe: pd.DataFrame):
125
  wav, sr = sf.read(features[f"{side}.path"])
126
  if wav.ndim > 1:
127
  wav = wav[:, 0]
128
- # wav = audio_loader.decode_example({"path": features[f"{side}.path"], "bytes": None})
129
  if sr != sampling_rate:
130
  print(f"RESAMPLING: {wav.shape} length audio")
131
  if torch.cuda.is_available():
 
125
  wav, sr = sf.read(features[f"{side}.path"])
126
  if wav.ndim > 1:
127
  wav = wav[:, 0]
 
128
  if sr != sampling_rate:
129
  print(f"RESAMPLING: {wav.shape} length audio")
130
  if torch.cuda.is_available():
main.sh CHANGED
@@ -23,7 +23,7 @@ python -c 'file_name="tmp.mp3"; from datasets import Audio; a=Audio(); wav=a.dec
23
  ####################
24
  export CUDA_VISIBLE_DEVICES=
25
  export N_POOL=1
26
- export DATASET_ID=2
27
  export DIRECTION="enA-jaA"
28
  export LINE_NO_START=$(((DATASET_ID-1) * 2500))
29
  export LINE_NO_END=$((DATASET_ID * 2500))
@@ -31,7 +31,7 @@ echo ${LINE_NO_START}
31
  python download_audio.py
32
 
33
  export N_POOL=10
34
- export DATASET_ID=1
35
  export DIRECTION="enA-jaA"
36
  export LINE_NO_START=$(((DATASET_ID-1) * 2500))
37
  export LINE_NO_END=$((DATASET_ID * 2500))
 
23
  ####################
24
  export CUDA_VISIBLE_DEVICES=
25
  export N_POOL=1
26
+ export DATASET_ID=1
27
  export DIRECTION="enA-jaA"
28
  export LINE_NO_START=$(((DATASET_ID-1) * 2500))
29
  export LINE_NO_END=$((DATASET_ID * 2500))
 
31
  python download_audio.py
32
 
33
  export N_POOL=10
34
+ export DATASET_ID=2
35
  export DIRECTION="enA-jaA"
36
  export LINE_NO_START=$(((DATASET_ID-1) * 2500))
37
  export LINE_NO_END=$((DATASET_ID * 2500))