Dragunflie-420 commited on
Commit
1153882
Β·
verified Β·
1 Parent(s): 0f503f7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -0
README.md CHANGED
@@ -1,3 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  language:
3
  - en
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: cc-by-4.0
5
+ pretty_name: Free Music Archive (FMA) Dataset
6
+ size_categories:
7
+ - 1K<n<10K
8
+ source_datasets:
9
+ - original
10
+ task_categories:
11
+ - audio-classification
12
+ task_ids:
13
+ - multi-class-classification
14
+ ---
15
+
16
+ # Free Music Archive (FMA) Dataset
17
+
18
+ ## Overview
19
+
20
+ This repository contains the Free Music Archive (FMA) dataset, curated and made available on Hugging Face by [dragunflie-420](https://huggingface.co/dragunflie-420). The FMA dataset is a large-scale, open-source dataset of music tracks, designed for music information retrieval and machine learning tasks.
21
+
22
+ ## Dataset Description
23
+
24
+ The Free Music Archive (FMA) is an open and easily accessible dataset consisting of full-length audio tracks with associated metadata. This particular version focuses on the "small" subset of the FMA, which includes:
25
+
26
+ - 8,000 tracks of 30 seconds each
27
+ - 8 balanced genres (Electronic, Experimental, Folk, Hip-Hop, Instrumental, International, Pop, Rock)
28
+ - Audio files in 128k MP3 format
29
+ - Comprehensive metadata for each track
30
+
31
+ ## Contents
32
+
33
+ This dataset provides:
34
+
35
+ 1. Audio files: 30-second MP3 clips of music tracks
36
+ 2. Metadata: Information about each track, including:
37
+ - Track ID
38
+ - Title
39
+ - Artist
40
+ - Genre
41
+ - Additional features (e.g., acoustic features, music analysis data)
42
+
43
+ ## Data Files
44
+
45
+ To use this dataset, you need to manually download and place the following files in the repository:
46
+
47
+ 1. `fma_small.zip`: Contains the audio files
48
+ 2. `fma_metadata.zip`: Contains the metadata for the tracks
49
+
50
+ After downloading, extract these files and ensure the following directory structure:
51
+
52
+ ```
53
+ fma_dataset/
54
+ β”œβ”€β”€ fma_small/
55
+ β”‚ β”œβ”€β”€ 000/
56
+ β”‚ β”œβ”€β”€ 001/
57
+ β”‚ └── ...
58
+ └── fma_metadata/
59
+ β”œβ”€β”€ tracks.csv
60
+ β”œβ”€β”€ genres.csv
61
+ └── features.csv
62
+ ```
63
+
64
+ ## Usage
65
+
66
+ To use this dataset in your Hugging Face projects:
67
+
68
+ ```python
69
+ from datasets import load_dataset
70
+
71
+ dataset = load_dataset("dragunflie-420/fma")
72
+
73
+ # Access the first example
74
+ first_example = dataset['train'][0]
75
+ print(first_example['title'], first_example['artist'], first_example['genre'])
76
+
77
+ # Play the audio (if in a notebook environment)
78
+ from IPython.display import Audio
79
+ Audio(first_example['audio']['array'], rate=first_example['audio']['sampling_rate'])
80
+ ```
81
+
82
+ [... rest of the README content remains the same ...]
83
+
84
+
85
+
86
+
87
+
88
  ---
89
  language:
90
  - en