rtlee9 / recipe-summarization

Sequence to sequence recipe summarization
MIT License
136 stars 75 forks source link

ValueError: shapes (512,) and (944,40000) not aligned: 512 (dim 0) != 944 (dim 0) #3

Open ron-weiner opened 7 years ago

ron-weiner commented 7 years ago

Hey!

tnx for sharing and documenting your work!

i tried many different versions of that code and i always get stack on the same place with the command: "samples = gensamples(sample_str, skips=2, batch_size=batch_size, k=10, temperature=1.)" and the error: "ValueError: shapes (512,) and (944,40000) not aligned: 512 (dim 0) != 944 (dim 0)" and then i'm just stuck and can generate the headers :(

There is also another issue on: "weights = load_weights(rnn_model, 'models/%s.hdf5'%FN1)" with the same error that you have: "failed to find layer timedistributed_1 in model" the same as the one that you have (maybe it's on purpose)

pls help