Open chuagh74 opened 3 years ago
Did you get a solution to this error?
yes. That's because I was not using right version of TF
Which version did you use to get it right?
According to my technical support, we were using keras ....we should use tf keras....so he removed keras and use tf keras
We are importing tenserflow.keras everywhere still we are getting error. Could you please tell me where did you exactly change in the code ?
It was very long ago and i can't remember exactly. But what i remembered is we removed keras and reinstalled tensorflow and change import of keras to tensorflow.keras
from tensorflow.keras.models import Model from tensorflow.keras.regularizers import l2 from tensorflow.keras.layers import *
from tensorflow.keras.applications.vgg16 import from tensorflow.keras.models import
import tensorflow.keras.backend as K import tensorflow as tf from tensorflow.keras.optimizers import Adam from tensorflow.keras.layers import Convolution2D, ZeroPadding2D, MaxPooling2D, Cropping2D, Conv2D from tensorflow.keras.layers import Input, Add, Dropout, Permute, add from tensorflow.compat.v1.layers import conv2d_transpose from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.python.keras.callbacks import TensorBoard, ModelCheckpoint, EarlyStopping, ReduceLROnPlateau
This is the error msg I got:
TypeError Traceback (most recent call last)