Views
No views yet
cd data/ORI_FOLDER and DES_FOLDER in 1_batch_xml2abc.py, then run this script:python 1_batch_xml2abc.pyORI_FOLDER, INTERLEAVED_FOLDER, AUGMENTED_FOLDER, and EVAL_SPLIT in 2_data_preprocess.py:1ORI_FOLDER = '' # Folder containing standard ABC notation files
2INTERLEAVED_FOLDER = '' # Output interleaved ABC notation files that are compatible with CLaMP 2 to this folder
3AUGMENTED_FOLDER = '' # On the basis of interleaved ABC, output key-augmented and rest-omitted files that are compatible with NotaGen to this folder
4EVAL_SPLIT = 0.1 # Evaluation data ratiopython 2_data_preprocess.pyINTERLEAVED_FOLDER.AUGMENTED_FOLDER, and output interleaved ABC notation files with rest bars omitted. This is the data representation that NotaGen adopts.EVAL_SPLIT defines. The index files will be named as {AUGMENTED_FOLDER}_train.jsonl and {AUGMENTED_FOLDER}_eval.jsonl.cd data/ORI_FOLDER and DES_FOLDER in 3_batch_abc2xml.py, then run this script:
python 3_batch_abc2xml.py