sunsetsobserver
commited on
Commit
·
30ce9c6
1
Parent(s):
d6e13a7
change generate
Browse files- .DS_Store +0 -0
- generate.py +2 -2
- runs/.DS_Store +0 -0
- runs/checkpoint-1000/.DS_Store +0 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
generate.py
CHANGED
@@ -19,7 +19,7 @@ from tqdm import tqdm
|
|
19 |
set_seed(777)
|
20 |
|
21 |
# Creates the tokenizer
|
22 |
-
tokenizer =
|
23 |
|
24 |
# Trains the tokenizer with Byte Pair Encoding (BPE) to build the vocabulary, here 10k tokens
|
25 |
midi_paths = list(Path('Maestro').glob('**/*.mid')) + list(Path('Maestro').glob('**/*.midi'))
|
@@ -39,7 +39,7 @@ collator = DataCollator(
|
|
39 |
)
|
40 |
|
41 |
# Creates model using the correct configuration
|
42 |
-
model =
|
43 |
|
44 |
collator = DataCollator(tokenizer["PAD_None"], tokenizer["BOS_None"], tokenizer["EOS_None"], copy_inputs_as_labels=True)
|
45 |
|
|
|
19 |
set_seed(777)
|
20 |
|
21 |
# Creates the tokenizer
|
22 |
+
tokenizer = REMI.from_pretrained("sunsetsobserver/MIDI")
|
23 |
|
24 |
# Trains the tokenizer with Byte Pair Encoding (BPE) to build the vocabulary, here 10k tokens
|
25 |
midi_paths = list(Path('Maestro').glob('**/*.mid')) + list(Path('Maestro').glob('**/*.midi'))
|
|
|
39 |
)
|
40 |
|
41 |
# Creates model using the correct configuration
|
42 |
+
model = AutoModelForCausalLM.from_pretrained("sunsetsobserver/MIDI/runs")
|
43 |
|
44 |
collator = DataCollator(tokenizer["PAD_None"], tokenizer["BOS_None"], tokenizer["EOS_None"], copy_inputs_as_labels=True)
|
45 |
|
runs/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
runs/checkpoint-1000/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|