mickylan2367 commited on
Commit
049b64f
·
1 Parent(s): 85d0d0a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -1
README.md CHANGED
@@ -8,4 +8,18 @@ task_categories:
8
 
9
  * 後で要修正(;'∀')
10
 
11
- * Music Cpasとは:https://huggingface.co/datasets/google/MusicCaps
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  * 後で要修正(;'∀')
10
 
11
+ * Music Cpasとは:https://huggingface.co/datasets/google/MusicCaps
12
+
13
+ ## 0: データセットをダウンロード
14
+ ```py
15
+ from datasets import load_dataset
16
+ data = load_dataset("mickylan2367/spectrogram")
17
+ data = data["train"]
18
+ ```
19
+
20
+ ## 1: データ型をtorchへ
21
+ ```py
22
+ from datasets import Dataset
23
+ train = Dataset.from_dict(data[slice(0, 400, None)])
24
+ train = train.with_format("torch")
25
+ ```