liuhaumin / LeadsheetArrangement

Lead Sheet Generation and Arrangement 自動簡譜編曲
https://liuhaumin.github.io/LeadsheetArrangement/
71 stars 15 forks source link

Couldn't run your pretrained model using Scripts #6

Open HanhaodiZhang opened 3 years ago

HanhaodiZhang commented 3 years ago

--------------Start arrangement generation !!-------------- *running sampler... Traceback (most recent call last): File "scripts.py", line 4, in import main File "/home/ohla-ai/Projects/LeadsheetArrangement/main.py", line 62, in musegan.gen_test(input_data, is_eval=True) File "/home/ohla-ai/Projects/LeadsheetArrangement/model/core.py", line 447, in gentest type=type_) File "/home/ohla-ai/Projects/LeadsheetArrangement/model/core.py", line 412, in run_sampler self.model.prediction_chroma], feed_dict=feed_dict) File "/home/ohla-ai/anaconda3/envs/tf15/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 956, in run run_metadata_ptr) File "/home/ohla-ai/anaconda3/envs/tf15/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 1156, in _run (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (64, 48, 84, 2) for Tensor 'NowbarHybrid/x:0', which has shape '(?, 48, 84, 5)'

Above is what I am occured, my input is a 2 track 8 bar midi file with melody and chords. Need your help please...

liuhaumin commented 3 years ago

Hello, It looks like there is an unmatching of the dimension. Have you tried the default files in /mysong_mid_C/?

On Fri, Aug 13, 2021 at 4:10 PM HanhaodiZhang @.***> wrote:

--------------Start arrangement generation !!-------------- *running sampler... Traceback (most recent call last): File "scripts.py", line 4, in import main File "/home/ohla-ai/Projects/LeadsheetArrangement/main.py", line 62, in musegan.gen_test(input_data, is_eval=True) File "/home/ohla-ai/Projects/LeadsheetArrangement/model/core.py", line 447, in gentest type=type_) File "/home/ohla-ai/Projects/LeadsheetArrangement/model/core.py", line 412, in run_sampler self.model.prediction_chroma], feed_dict=feed_dict) File "/home/ohla-ai/anaconda3/envs/tf15/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 956, in run run_metadata_ptr) File "/home/ohla-ai/anaconda3/envs/tf15/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 1156, in _run (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (64, 48, 84, 2) for Tensor 'NowbarHybrid/x:0', which has shape '(?, 48, 84, 5)'

Above is what I am occured, my input is a 2 track 8 bar midi file with melody and chords. Need your help please...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/liuhaumin/LeadsheetArrangement/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLURGZMDERLBVDYGUEJK7DT4THN3ANCNFSM5CDC6F5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

dianxin556 commented 3 years ago

I also meet the same problem with the default input files in /mysong_mid_C/

CliffNewsted commented 2 years ago

I also meet the same problem with the default input files in /mysong_mid_C/

wangzi815 commented 2 years ago

I also meet the same problem with the default input files in /mysong_mid_C/.what is the problem?@liuhaumin,how to solve it?