Open luisvivasg opened 4 years ago
Hi.
I am trying to train the model ImageAI but I get this error.
I was previously getting the error regarding the floatt AttributeError: module 'tensorflow' has no attribute 'to_float'
and it was fixed with the code below.
import tensorflow as tf tf.to_float = lambda x: tf.cast(x, tf.float32)
How can I fix TypeError: Tensor is unhashable. Instead, use tensor.ref() as the key.
I am using Tensorflow 2.x that is on Kaggle.
Tahnks.
use tensorflow 1.13.1 gpu, its solve ypur problem , imageAi is not comfortable with tensorflow 2.0 , so use the lower version of tensorflow.
Hi.
I am trying to train the model ImageAI but I get this error.
I was previously getting the error regarding the floatt AttributeError: module 'tensorflow' has no attribute 'to_float'
and it was fixed with the code below.
import tensorflow as tf tf.to_float = lambda x: tf.cast(x, tf.float32)
How can I fix TypeError: Tensor is unhashable. Instead, use tensor.ref() as the key.
I am using Tensorflow 2.x that is on Kaggle.
Tahnks.