Dancing2Music icon indicating copy to clipboard operation
Dancing2Music copied to clipboard

Operands could not be broadcast together

Open FinnRG opened this issue 5 years ago • 7 comments

I tried executing the command in README and got the following error:

Traceback (most recent call last): File "demo.py", line 128, in aud[j] = (aud[j] - mean_aud) / std_aud ValueError: operands could not be broadcast together with shapes (15,) (28,)

FinnRG avatar Jul 05 '20 17:07 FinnRG

I also have this problem. It looks like the MFCC preprocess.py is not using the right function. In the paper the authors talked about "We then extract the 13-dimensional MFCC feature, and concatenate it with its first temporal derivatives and log mean energy of volume into the final 28-dimensional audio feature." That explains why the mean_aud and std_aud has the (28, )shape. but the aud we get from the preprocess is default MFCC 13 dimension + two other values as defined in sig2s2mfc_energy() function from preprocess.py
I can't find any code that calculate the "first temporal derivatives". Can somebody show where is the code? thanks.

zhiqizhang avatar Jul 07 '20 22:07 zhiqizhang

Same error here, it's a nightmare to reproduce this code

gagolucasm avatar Jul 09 '20 12:07 gagolucasm

I also have this problem. It looks like the MFCC preprocess.py is not using the right function. In the paper the authors talked about "We then extract the 13-dimensional MFCC feature, and concatenate it with its first temporal derivatives and log mean energy of volume into the final 28-dimensional audio feature." That explains why the mean_aud and std_aud has the (28, )shape. but the aud we get from the preprocess is default MFCC 13 dimension + two other values as defined in sig2s2mfc_energy() function from preprocess.py I can't find any code that calculate the "first temporal derivatives". Can somebody show where is the code? thanks.

I check the source code, but have the same isuue

Ai-is-light avatar Jul 22 '20 16:07 Ai-is-light

we must use the special music*.wav as input?

Ai-is-light avatar Jul 22 '20 16:07 Ai-is-light

Same error here, it's a nightmare to reproduce this code

@gagolucasm have you dealt with it?

Ai-is-light avatar Jul 24 '20 03:07 Ai-is-light

I put a zipped file of the complete demo code on my personal webpage.

HsinYingLee avatar Jul 30 '20 03:07 HsinYingLee

I put a zipped file of the complete demo code on my personal webpage.

great, thx very much

caijianfei avatar Nov 09 '21 03:11 caijianfei