Closed NamTran838P closed 4 years ago
I've been unable to reproduce your error. I have pushed a small fix for an edge case. Try again updating the repo.
If it doesn't work, can you set args.splits = ['val']
and try again?
If it still doesn't work, can you provide more info about the dataset? For instance:
from keras_wrapper.saving import loadDataset
ds = loadDataset('dataset/Dataset_tutorial_dataset.pkl')
print("ids_inputs:", ds.ids_inputs)
print("ids_outputs:", ds.ids_outputs)
print("types_inputs:", ds.types_inputs)
print("types_outputs:", ds.types_outputs)
print("len_train:", ds.len_train)
print("len_val:", ds.len_val)
print("len_test:", ds.len_test)
I just updated everything and tried setting args.splits = ['val']
. The following error showed up:
Here is more information about the dataset:
Thanks a lot for your help.
I think I was able to reproduce your problem. I think you are updating a dataset of type text
with data of type text_features
. This has been fixed (https://github.com/MarcBS/multimodal_keras_wrapper/commit/1349edaaa0e13092a72280bb24316b460ed841de).
I've also modified a little bit the update_dataset_from_file
. So, please try again updating multimodal_keras_wrapper
and nmt_keras
.
I am using the function
score_corpus
inapply_model.py
and encountering the following issue:My code is as follows:
It appears that the problem is in the
scoreNet
function inmultimodal_keras_wrapper
. Any help is really appreciated! Thanks