handwriting-generation
handwriting-generation copied to clipboard
Tensorflow2.x version compatible
Thank you for this great work :)
When I try to run the code, I am getting many errors because of new TensorFlow 2.x changes. So, I tried to use tf_upgrade_v2 script, but still, I get an error and not sure how to proceed,
More specifically: Substructure "type=LSTMStateTuple str=LSTMStateTuple(c=<tf.Tensor 'rnn/rnn_model/lstm_0/lstm_cell/add_1:0' shape=(64, 400) dtype=float32>, h=<tf.Tensor 'rnn/rnn_model/lstm_0/lstm_cell/mul_2:0' shape=(64, 400) dtype=float32>)" is a sequence, while substructure "type=ResourceVariable str=<tf.Variable 'model/rnn/Variable:0' shape=(64, 400) dtype=float32>" is not
Entire first structure:
[., (.,), [LSTMStateTuple(c=., h=.), LSTMStateTuple(c=., h=.), LSTMStateTuple(c=., h=.), ., ., .]]
Entire second structure:
[., (.,), [., ., ., ., ., ., ., ., .]]
It would be great if anyone give comments to reproduce this work in Tensorflow2.x
Got through same path and I only could run by downgrading tf version to 13.1.2
as mentioned in #27.
I have modified to make Tensorflow2.x compatible https://github.com/Vigneswaran-Chandrasekaran/rnn_handwriting_generation