Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -32,6 +32,66 @@ task_categories:
|
|
| 32 |
|
| 33 |
## Monster MIDI Dataset GPU Search and Filter
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
[![Open In Colab][colab-badge]][colab-notebook1]
|
| 36 |
|
| 37 |
[colab-notebook1]: <https://colab.research.google.com/github/asigalov61/Monster-MIDI-Dataset/blob/main/Monster_MIDI_Dataset_GPU_Search_and_Filter.ipynb>
|
|
|
|
| 32 |
|
| 33 |
## Monster MIDI Dataset GPU Search and Filter
|
| 34 |
|
| 35 |
+
### [NEW] Monster GPU/CPU Search and Filter stand-alone Python module with improved matching
|
| 36 |
+
|
| 37 |
+
#### Installation
|
| 38 |
+
|
| 39 |
+
##### Install requirements
|
| 40 |
+
|
| 41 |
+
```sh
|
| 42 |
+
!git clone --depth 1 https://github.com/asigalov61/Monster-MIDI-Dataset
|
| 43 |
+
|
| 44 |
+
!pip install cupy-cuda12x
|
| 45 |
+
!pip install numpy==1.24.4
|
| 46 |
+
!pip install huggingface_hub
|
| 47 |
+
!pip install hf-transfer
|
| 48 |
+
!pip install ipywidgets
|
| 49 |
+
!pip install tqdm
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
##### Import modules
|
| 53 |
+
|
| 54 |
+
```python
|
| 55 |
+
import os
|
| 56 |
+
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
| 57 |
+
|
| 58 |
+
from huggingface_hub import hf_hub_download
|
| 59 |
+
|
| 60 |
+
%cd ./Monster-MIDI-Dataset
|
| 61 |
+
import monster_search_and_filter
|
| 62 |
+
%cd ..
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
##### Download and unzip Monster MIDI dataset
|
| 66 |
+
|
| 67 |
+
```python
|
| 68 |
+
hf_hub_download(repo_id='projectlosangeles/Monster-MIDI-Dataset',
|
| 69 |
+
repo_type='dataset',
|
| 70 |
+
filename='Monster-MIDI-Dataset-Ver-1-0-CC-BY-NC-SA.zip',
|
| 71 |
+
local_dir='./Monster-MIDI-Dataset/'
|
| 72 |
+
)
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
```sh
|
| 76 |
+
%cd ./Monster-MIDI-Dataset
|
| 77 |
+
!unzip Monster-MIDI-Dataset-Ver-1-0-CC-BY-NC-SA.zip > /dev/null
|
| 78 |
+
%cd ..
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
##### Run the search
|
| 82 |
+
|
| 83 |
+
```python
|
| 84 |
+
sigs_data_path = './Monster-MIDI-Dataset/SIGNATURES_DATA/MONSTER_SIGNATURES_DATA.pickle'
|
| 85 |
+
|
| 86 |
+
sigs_data = monster_search_and_filter.load_pickle(sigs_data_path)
|
| 87 |
+
sigs_dicts = monster_search_and_filter.load_signatures(sigs_data)
|
| 88 |
+
X, global_union = monster_search_and_filter.precompute_signatures(sigs_dicts)
|
| 89 |
+
|
| 90 |
+
monster_search_and_filter.search_and_filter(sigs_dicts, X, global_union)
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
### [LEGACY]
|
| 94 |
+
|
| 95 |
[![Open In Colab][colab-badge]][colab-notebook1]
|
| 96 |
|
| 97 |
[colab-notebook1]: <https://colab.research.google.com/github/asigalov61/Monster-MIDI-Dataset/blob/main/Monster_MIDI_Dataset_GPU_Search_and_Filter.ipynb>
|