I am working with TensorFlow and Keras in R. I have already trained a neural network and model was exported in HDF5 format.
I save some models with this command:
name1 = paste0("/projects/apog/work/input/test/","M",p,".hdf5") save_model_hdf5(Best_model, name1)
Now, I am loading one of them in another script with this command
M50 = load_model_hdf5("path/M9050.hdf5", custom_objects = NULL, compile = TRUE)
but I get this error:
Error in py_call_impl(callable, dots$args, dots$keywords) :
AttributeError: 'str' object has no attribute 'decode'
How can I fix it?
Thanks in advance