rrayy commited on
Commit
9b91cd8
·
1 Parent(s): cd592fd

Changes to be committed: 데이터 수정 및 토크나이저 삭제

Browse files

modified: data/10.mid
modified: data/16.mid
modified: data/28.mid
modified: data/4.mid
modified: preprocessing.ipynb
modified: requirements.txt
deleted: utillity/miditokenizer.py

Files changed (7) hide show
  1. data/10.mid +0 -0
  2. data/16.mid +0 -0
  3. data/28.mid +0 -0
  4. data/4.mid +0 -0
  5. preprocessing.ipynb +0 -0
  6. requirements.txt +63 -100
  7. utillity/miditokenizer.py +0 -21
data/10.mid CHANGED
Binary files a/data/10.mid and b/data/10.mid differ
 
data/16.mid CHANGED
Binary files a/data/16.mid and b/data/16.mid differ
 
data/28.mid CHANGED
Binary files a/data/28.mid and b/data/28.mid differ
 
data/4.mid CHANGED
Binary files a/data/4.mid and b/data/4.mid differ
 
preprocessing.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
requirements.txt CHANGED
@@ -1,113 +1,76 @@
1
- aiohttp==3.9.3
2
- aiosignal==1.3.1
3
- asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1733250440834/work
4
- attrs==23.2.0
5
- cachetools==5.3.2
6
- certifi==2024.2.2
7
- cffi==1.16.0
8
  chardet==5.2.0
9
- charset-normalizer==3.3.2
10
- colorama @ file:///home/conda/feedstock_root/build_artifacts/colorama_1733218098505/work
11
- comm @ file:///home/conda/feedstock_root/build_artifacts/comm_1733502965406/work
12
- contourpy==1.3.2
 
13
  cycler==0.12.1
14
- dataclasses-json==0.6.4
15
- debugpy @ file:///C:/b/abs_bf9oo2vhxp/croot/debugpy_1736269476451/work
16
- decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1740384970518/work
17
- exceptiongroup @ file:///home/conda/feedstock_root/build_artifacts/exceptiongroup_1746947292760/work
18
- executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1745502089858/work
19
- filelock==3.13.1
20
- fonttools==4.58.1
21
- frozenlist==1.4.1
22
- fsspec==2024.6.1
23
- google-api-core==2.17.1
24
- google-api-python-client==2.118.0
25
- google-auth==2.28.0
26
- google-auth-httplib2==0.2.0
27
- googleapis-common-protos==1.62.0
28
- httplib2==0.22.0
29
  huggingface-hub==0.32.4
30
- idna==3.6
31
- importlib_metadata @ file:///home/conda/feedstock_root/build_artifacts/importlib-metadata_1737420181517/work
32
- ipykernel @ file:///D:/bld/ipykernel_1719845595208/work
33
- ipython @ file:///D:/bld/bld/rattler-build_ipython_1745672185/work
34
- ipython_pygments_lexers @ file:///home/conda/feedstock_root/build_artifacts/ipython_pygments_lexers_1737123620466/work
35
- isodate==0.6.1
36
- javascript==1!1.1.2
37
- jedi @ file:///home/conda/feedstock_root/build_artifacts/jedi_1733300866624/work
38
- Jinja2==3.1.4
39
  joblib==1.4.2
40
  jsonpickle==4.1.1
41
- jupyter_client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1733440914442/work
42
- jupyter_core @ file:///C:/b/abs_beftpbuevw/croot/jupyter_core_1718818307097/work
43
- kiwisolver==1.4.8
44
- llvmlite @ file:///C:/b/abs_da51wefv9a/croot/llvmlite_1741209883316/work
45
  MarkupSafe==2.1.5
46
- marshmallow==3.20.2
47
- matplotlib==3.10.3
48
- matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1733416936468/work
49
- miditok==3.0.5.post1
50
- mido==1.3.3
51
- mkl-service==2.4.0
52
- mkl_fft @ file:///C:/Users/dev-admin/mkl/mkl_fft_1730823082242/work
53
- mkl_random @ file:///C:/Users/dev-admin/mkl/mkl_random_1730822522280/work
54
- more-itertools==10.7.0
55
  mpmath==1.3.0
56
- multidict==6.0.5
57
- music21==9.7.0
58
  mypy-extensions==1.0.0
59
- nest_asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1733325553580/work
60
  networkx==3.3
61
- nextcord==2.6.0
62
- numba @ file:///C:/b/abs_f42h_j9bwg/croot/numba_1740668206517/work
63
- numpy==1.26.4
64
- oauthlib==3.2.2
65
- packaging==23.2
66
- parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1733271261340/work
67
- pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1733327343728/work
68
- pillow==11.0.0
69
- platformdirs @ file:///home/conda/feedstock_root/build_artifacts/bld/rattler-build_platformdirs_1746710438/work
70
- prompt_toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1744724089886/work
71
- protobuf==4.25.3
72
- psutil @ file:///C:/b/abs_b5gv3mn55h/croot/psutil_1736371546320/work
73
- pure_eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1733569405015/work
74
- pyasn1==0.5.1
75
- pyasn1-modules==0.3.0
76
- pycparser==2.21
77
- pygame==2.6.0
78
- Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1736243443484/work
79
- PyNaCl==1.4.0
80
- pyparsing==3.1.1
81
- pySmartDL==1.3.4
82
- python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1733215673016/work
83
- pywin32==308
84
  PyYAML==6.0.2
85
- pyzmq @ file:///C:/b/abs_f3yte6j5yn/croot/pyzmq_1734711069724/work
86
  requests==2.32.3
87
- requests-oauthlib==1.3.1
88
- rsa==4.9
89
- scikit-learn==1.6.1
90
- scipy==1.15.2
91
- setuptools==75.8.0
92
- six==1.16.0
93
- stack_data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1733569443808/work
94
  sympy==1.13.3
95
- symusic==0.5.8
96
- threadpoolctl==3.6.0
97
- tokenizers==0.21.1
98
- torch==2.7.0+cu126
99
- torchaudio==2.7.0+cu126
100
- torchvision==0.22.0+cu126
101
- tornado @ file:///C:/b/abs_7cyu943ybx/croot/tornado_1733960510898/work
102
  tqdm==4.67.1
103
- traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1733367359838/work
104
- typing-inspect==0.9.0
105
- typing_extensions==4.12.2
106
- uritemplate==4.1.1
107
- urllib3==2.4.0
108
- waitress==3.0.0
109
- wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1733231326287/work
110
- webcolors==24.11.1
111
- wheel==0.45.1
112
- yarl==1.9.4
113
- zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1732827521216/work
 
1
+ asttokens==3.0.0
2
+ backcall==0.2.0
3
+ blinker==1.8.2
4
+ certifi==2025.8.3
 
 
 
5
  chardet==5.2.0
6
+ charset-normalizer==3.4.2
7
+ click==8.1.8
8
+ colorama==0.4.6
9
+ comm==0.2.3
10
+ contourpy==1.1.1
11
  cycler==0.12.1
12
+ debugpy==1.8.15
13
+ decorator==5.2.1
14
+ executing==2.2.0
15
+ filelock==3.16.1
16
+ Flask==3.0.3
17
+ Flask-Cors==5.0.0
18
+ fonttools==4.57.0
19
+ fsspec==2025.3.0
20
+ -e git+https://github.com/ISLAND-IDs/HarmonyMIDIToken.git@8cdb44aeee4c5f5d6915cde7e7acab75f3f3d7fb#egg=harmony_midi_token
 
 
 
 
 
 
21
  huggingface-hub==0.32.4
22
+ idna==3.10
23
+ importlib_metadata==8.5.0
24
+ importlib_resources==6.4.5
25
+ ipykernel==6.29.5
26
+ ipython==8.12.3
27
+ ipython_pygments_lexers==1.1.1
28
+ itsdangerous==2.2.0
29
+ jedi==0.19.2
30
+ Jinja2==3.1.6
31
  joblib==1.4.2
32
  jsonpickle==4.1.1
33
+ jupyter_client==8.6.3
34
+ jupyter_core==5.8.1
35
+ kiwisolver==1.4.7
 
36
  MarkupSafe==2.1.5
37
+ matplotlib==3.7.5
38
+ matplotlib-inline==0.1.7
39
+ more-itertools==10.5.0
 
 
 
 
 
 
40
  mpmath==1.3.0
41
+ music21==8.3.0
 
42
  mypy-extensions==1.0.0
43
+ nest-asyncio==1.6.0
44
  networkx==3.3
45
+ numpy==2.3.2
46
+ packaging==25.0
47
+ parso==0.8.4
48
+ pickleshare==0.7.5
49
+ pillow==10.4.0
50
+ platformdirs==4.3.6
51
+ prompt_toolkit==3.0.51
52
+ psutil==7.0.0
53
+ pure_eval==0.2.3
54
+ pychord==1.2.2
55
+ Pygments==2.19.2
56
+ pyparsing==3.1.4
57
+ python-dateutil==2.9.0.post0
58
+ pywin32==311
 
 
 
 
 
 
 
 
 
59
  PyYAML==6.0.2
60
+ pyzmq==27.0.1
61
  requests==2.32.3
62
+ six==1.17.0
63
+ stack-data==0.6.3
 
 
 
 
 
64
  sympy==1.13.3
65
+ torch==2.7.1+cu128
66
+ torchaudio==2.7.1+cu128
67
+ torchvision==0.22.1+cu128
68
+ tornado==6.4.2
 
 
 
69
  tqdm==4.67.1
70
+ traitlets==5.14.3
71
+ typing_extensions==4.13.2
72
+ urllib3==2.2.3
73
+ wcwidth==0.2.13
74
+ webcolors==24.8.0
75
+ Werkzeug==3.0.6
76
+ zipp==3.20.2
 
 
 
 
utillity/miditokenizer.py DELETED
@@ -1,21 +0,0 @@
1
- from miditok import REMI, TokSequence, TokenizerConfig
2
- from symusic import Score
3
- import os
4
-
5
- # 토크나이저 설정
6
- config = TokenizerConfig()
7
- tokenizer = REMI(config) # REMI 토크나이저 사용
8
-
9
- def get_midi_scores(midi_folder):
10
- for filename in os.listdir(midi_folder):
11
- if filename.endswith(".mid"):
12
- yield Score(os.path.join(midi_folder, filename)), filename # 제네레이터로 코루틴 만들어서 이용
13
-
14
- def tokenize_midi(midi):
15
- tokens = tokenizer(midi)
16
- return tokens[0].ids # type: ignore
17
-
18
- def detokenize_midi(tokens: list[int]):
19
- seq = TokSequence(ids=tokens) # type: ignore
20
- midi = tokenizer.decode([seq])
21
- return midi