Category : keras

While I was training my cnn I got this error about tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 1622400 values, but the requested shape requires a multiple of 14400 [[node sequential/flatten/Reshape (defined at /train.py:147) ]] [Op:__inference_train_function_1558] Function call stack: train_function But I don’t really know which part is the error coming from. I think ..

Read more

I created this model from tensorflow.keras.layers import Conv2D from tensorflow.keras.layers import MaxPooling2D, Input, Dense from tensorflow.keras.layers import Reshape, Flatten from tensorflow.keras import Model def create_DeepCAPCHA(input_shape=(28,28,1),n_prediction=1,n_class=10,optimizer=’adam’, show_summary=True): inputs = Input(input_shape) x = Conv2D(filters=32, kernel_size=3, activation=’relu’, padding=’same’)(inputs) x = MaxPooling2D(pool_size=2)(x) x = Conv2D(filters=48, kernel_size=3, activation=’relu’, padding=’same’)(x) x = MaxPooling2D(pool_size=2)(x) x = Conv2D(filters=64, kernel_size=3, activation=’relu’, padding=’same’)(x) x = ..

Read more

I am currently working with the neuMF model from TensorFlow (you can find it here). I’ve already debugged the whole TensorFlow project. The parameter transfer is what I still find difficult. A parameter item_input is passed as well as a user_input and params are passed. I once took screenshots of it. item_input: user_input: params: I ..

Read more

I have a Keras pre-trained model "model_keras" and I want to use it in a loss function. The input of model "model_keras" is an output of another Tensorflow model "model_tf" (a generative model). I’m trying to update the weights of "model_tf" by minimizing the loss. During the optimization, "model_kears" is only used for inference and ..

Read more