sander-wood
commited on
Commit
•
c5c8305
1
Parent(s):
2777b14
Update README.md
Browse files
README.md
CHANGED
@@ -120,6 +120,15 @@ K:D
|
|
120 |
"G" Bc d2"A7" c2 |"D" d4 :|
|
121 |
```
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
### Usage
|
124 |
```
|
125 |
usage: generate.py [-h] [-num_tunes NUM_TUNES] [-max_patch MAX_PATCH]
|
@@ -146,20 +155,11 @@ optional arguments:
|
|
146 |
|
147 |
```bibtex
|
148 |
@misc{https://doi.org/10.48550/arxiv.2301.02884,
|
149 |
-
doi = {10.48550/ARXIV.2301.02884},
|
150 |
-
|
151 |
-
url = {https://arxiv.org/abs/2301.02884},
|
152 |
-
|
153 |
-
author = {Wu, Shangda and Sun, Xiaobing Li, Feng Yu, Maosong},
|
154 |
-
|
155 |
-
keywords = {Sound (cs.SD), Audio and Speech Processing (eess.AS), FOS: Computer and information sciences, FOS: Computer and information sciences, FOS: Electrical engineering, electronic engineering, information engineering, FOS: Electrical engineering, electronic engineering, information engineering},
|
156 |
-
|
157 |
title = {TunesFormer: Forming Irish Tunes with Control Codes by Bar Patching},
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
copyright = {Creative Commons Attribution 4.0 International}
|
164 |
}
|
165 |
```
|
|
|
120 |
"G" Bc d2"A7" c2 |"D" d4 :|
|
121 |
```
|
122 |
|
123 |
+
### Use your own dataset
|
124 |
+
Follow these steps:
|
125 |
+
|
126 |
+
1. First, unzip the `data_curation.zip` file.
|
127 |
+
2. Next, place your own symbol music data (in .xml, .mxl, .musicxml format) into the `xmls` folder.
|
128 |
+
3. Run the `batch_converter.py` file to convert your data to ABC notation into the `abcs` folder.
|
129 |
+
4. Run the `add_control_codes.py` file. This will add control codes to your ABC notation and save the data as `dataset.json`.
|
130 |
+
5. Finally, run the `train.py` file to train your own model. The weights will be saved as `weights.pth`
|
131 |
+
|
132 |
### Usage
|
133 |
```
|
134 |
usage: generate.py [-h] [-num_tunes NUM_TUNES] [-max_patch MAX_PATCH]
|
|
|
155 |
|
156 |
```bibtex
|
157 |
@misc{https://doi.org/10.48550/arxiv.2301.02884,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
title = {TunesFormer: Forming Irish Tunes with Control Codes by Bar Patching},
|
159 |
+
author={Shangda Wu and Feng Yu and Xiaobing Li and Maosong Sun},
|
160 |
+
year={2023},
|
161 |
+
eprint={2301.02884},
|
162 |
+
archivePrefix={arXiv},
|
163 |
+
primaryClass={cs.SD}
|
|
|
164 |
}
|
165 |
```
|