Skip to content Skip to sidebar Skip to footer
Showing posts with the label Keras

How To Predict The Results For Ocr Using Keras Image_ocr Example?

Keras OCR example demonstrates a very simple OCR system developed using a stacked CNN and RNN. But … Read more How To Predict The Results For Ocr Using Keras Image_ocr Example?

Implement Custom Cost Function In Keras Which Requires Output Of Whole Batch-size

Brief info about the data-set:- Its a person Re-ID problem(whether 2 images are same or not) and i… Read more Implement Custom Cost Function In Keras Which Requires Output Of Whole Batch-size

Keras - Autoencoder Accuracy Stuck On Zero

I'm trying to detect fraud using autoencoder and Keras. I've written the following code as … Read more Keras - Autoencoder Accuracy Stuck On Zero

Training A Multi-variate Multi-series Regression Problem With Stateful Lstms In Keras

I have time series of P processes, each of varying length but all having 5 variables (dimensions). … Read more Training A Multi-variate Multi-series Regression Problem With Stateful Lstms In Keras

Bug On Keras Fit_generator, Running Few Steps More Than It Should

I found fit_generator() would run few steps more than it should. I set steps_per_epoch=100. i and k… Read more Bug On Keras Fit_generator, Running Few Steps More Than It Should

Choose Random Validation Data Set

Given a numpy array consisting of data which has been generated for ongoing time from a simulation.… Read more Choose Random Validation Data Set

Keras Fit_generator Gives A Dimension Mismatch Error

I am working on MNIST dataset, in which X_train = (42000,28,28,1) is the training set. y_train = (4… Read more Keras Fit_generator Gives A Dimension Mismatch Error

Keras, Tensorflow : Merge Two Different Model Output Into One

I am working on one deep learning model where I am trying to combine two different model's outp… Read more Keras, Tensorflow : Merge Two Different Model Output Into One

Using Sample_weight In Keras For Sequence Labelling

I am working on a sequential labeling problem with unbalanced classes and I would like to use sampl… Read more Using Sample_weight In Keras For Sequence Labelling

Importerror: `load_model` Requires H5py When Loading Hdf5

I saved Keras model in hdf5 format as follows: from keras.callbacks import ModelCheckpoint filepath… Read more Importerror: `load_model` Requires H5py When Loading Hdf5

Python Theano Undefined Symbol: _zdlpvm Error

I'm trying to execute this code: import matplotlib.pyplot as plt import numpy as np from keras.… Read more Python Theano Undefined Symbol: _zdlpvm Error

"typeerror: 'session' Object Is Not Callable" Error Running Sess = Tf.compat.v1.session()(graph=tf.compat.v1.get_default_graph(), Config=session_conf)

I'm trying to set seeds and configure keras settings to ensure my experiments are reproducible.… Read more "typeerror: 'session' Object Is Not Callable" Error Running Sess = Tf.compat.v1.session()(graph=tf.compat.v1.get_default_graph(), Config=session_conf)

No Module Named 'keras.legacy'

I am working on speech recognition where I have to use keras Optimizer. from keras.optimizers impor… Read more No Module Named 'keras.legacy'

Keras Valueerror: Output Of Generator Should Be A Tuple (x, Y, Sample_weight) Or (x, Y). Found: None

I have Unet model from Retina Unet, However I have augmented the images as well as the masks. Now?… Read more Keras Valueerror: Output Of Generator Should Be A Tuple (x, Y, Sample_weight) Or (x, Y). Found: None

Valueerror: A Merge Layer Should Be Called On A List Of Inputs. Add()

# import the necessary packages import keras from keras.initializers import glorot_uniform from ker… Read more Valueerror: A Merge Layer Should Be Called On A List Of Inputs. Add()

Importerror: Cannot Import Name 'context' From 'tensorflow.python.eager' (unknown Location)

I created virtual environment and installed both tensorflow and tensorflow-gpu. After that I instal… Read more Importerror: Cannot Import Name 'context' From 'tensorflow.python.eager' (unknown Location)

Keras Python Multi Image Input Shape Error

I am trying to teach myself to build a CNN that takes more than one image as an input. Since the da… Read more Keras Python Multi Image Input Shape Error

Error When Checking Target: Expected Dense_20 To Have Shape (none, 3) But Got Array With Shape (1200, 1)

With VGG 16 using Keras, I'm trying to run a three class classification problem and here is the… Read more Error When Checking Target: Expected Dense_20 To Have Shape (none, 3) But Got Array With Shape (1200, 1)

How To Use Tensorflow Batchnormalization With Gradienttape?

Suppose we have a simple Keras model that uses BatchNormalization: model = tf.keras.Sequential([ … Read more How To Use Tensorflow Batchnormalization With Gradienttape?

"typeerror: Input 'global_step' Of 'resourceapplyadagradda' Op Has Type Int32 That Does Not Match Expected Type Of Int64." What Is This Bug?

While I was trying to use the AdaGradDual Optimizer, I got an error for the batch size I had entere… Read more "typeerror: Input 'global_step' Of 'resourceapplyadagradda' Op Has Type Int32 That Does Not Match Expected Type Of Int64." What Is This Bug?