asahi417 commited on
Commit
5b6fcfd
·
1 Parent(s): d0d5d11
Files changed (1) hide show
  1. download_audio.py +11 -11
download_audio.py CHANGED
@@ -165,23 +165,23 @@ if __name__ == '__main__':
165
  audio_dataset = Dataset.from_dict(data_dict)
166
  for side in sides:
167
  audio_dataset = audio_dataset.cast_column(f"{side}.audio", Audio())
168
- # DatasetDict({"train": audio_dataset}).push_to_hub(
169
- # f"{hf_org}/{hf_dataset}",
170
- # config_name=f"subset_{dataset_id}"
171
- # )
172
-
173
-
174
- DatasetDict({"train": audio_dataset.select(list(range(1000)))}).push_to_hub(
175
  f"{hf_org}/{hf_dataset}",
176
  config_name=f"subset_{dataset_id}"
177
  )
178
 
 
 
 
 
 
 
179
  # # 2 panel
180
  # dataset_id = 75
181
- DatasetDict({"train": audio_dataset.select(list(range(3000, len(audio_dataset))))}).push_to_hub(
182
- f"{hf_org}/{hf_dataset}",
183
- config_name=f"subset_{dataset_id}"
184
- )
185
  #
186
  #
187
 
 
165
  audio_dataset = Dataset.from_dict(data_dict)
166
  for side in sides:
167
  audio_dataset = audio_dataset.cast_column(f"{side}.audio", Audio())
168
+ DatasetDict({"train": audio_dataset}).push_to_hub(
 
 
 
 
 
 
169
  f"{hf_org}/{hf_dataset}",
170
  config_name=f"subset_{dataset_id}"
171
  )
172
 
173
+
174
+ # DatasetDict({"train": audio_dataset.select(list(range(1000)))}).push_to_hub(
175
+ # f"{hf_org}/{hf_dataset}",
176
+ # config_name=f"subset_{dataset_id}"
177
+ # )
178
+
179
  # # 2 panel
180
  # dataset_id = 75
181
+ # DatasetDict({"train": audio_dataset.select(list(range(3000, len(audio_dataset))))}).push_to_hub(
182
+ # f"{hf_org}/{hf_dataset}",
183
+ # config_name=f"subset_{dataset_id}"
184
+ # )
185
  #
186
  #
187