Hey @billyblu2000
I am getting a strange tensor error on my test melody. So I was wondering if you can help me out to figure out what I am doing wrong...
Here is the traceback:
Searching for Phrase 1 Searching for Phrase 2 Searching for Phrase 3 Reference chosen: [(144, '倒带'), (144, '倒带'), (144, '倒带')] Pitch Transposition (Fit by Model): [-3, 2, 2] Generating... Traceback (most recent call last): File "demo.py", line 14, in <module> cdt.generate_save(demo_name + '_output_results') File "/content/AccoMontage2/chorderator/interaction.py", line 91, in generate_save return _core.generate_save(output_name=output_name, task=task, log=log, wav=wav, **kwargs) File "/content/AccoMontage2/chorderator/core.py", line 392, in generate_save log=True, **kwargs) File "/content/AccoMontage2/chorderator/core.py", line 361, in generate gen = self.run(cut_in, cut_in_arg, with_texture, **kwargs) File "/content/AccoMontage2/chorderator/core.py", line 294, in run **kwargs) File "/content/AccoMontage2/chorderator/utils/pipeline.py", line 62, in send_in self.final_output = self.__add_textures(self.chord_gen_output, self.final_output_log, **kwargs) File "/content/AccoMontage2/chorderator/utils/pipeline.py", line 113, in __add_textures processor.solve() File "/content/AccoMontage2/chorderator/utils/models/accomontage/AccoMontage.py", line 122, in solve midi = render_acc(piano_roll, chord_table, query_seg, path, shift, acc_pool, state_dict=self.state_dict) File "/content/AccoMontage2/chorderator/utils/models/accomontage/util_tools/AccoMontage.py", line 248, in render_acc est_x = model.inference(pr_matrix, gt_chord, sample=False) File "/content/AccoMontage2/chorderator/utils/models/accomontage/models/model.py", line 139, in inference dec_z = torch.cat([z_chd, z_rhy], dim=-1) RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 10 but got size 8 for tensor number 1 in the list.
My demo.py file is setup as such:
`import chorderator as cdt
if name == 'main':
demo_name = 'test'
input_melody_path = 'MIDI demos/inputs/' + demo_name + '/melody.mid'
cdt.set_melody(input_melody_path)
cdt.set_meta(tonic=cdt.Key.D)
cdt.set_segmentation('A4B8A4')
cdt.set_texture_prefilter((0, 2))
cdt.set_note_shift(0)
cdt.set_output_style(cdt.Style.POP_STANDARD)
cdt.generate_save(demo_name + '_output_results')`
And the melody MIDI is attached.
Thank you.
melody.zip