I am trying to convert a V-net code that was written in Keras 1 into Keras 2. It seems that I have an issue with the following class:
class Deconv3D(Layer):
def __init__(self, nb_filter, kernel_dims, output_shape, strides):
assert…
theano.tensor.nnet.abstract_conv.bilinear_upsampling(input, ratio=None, frac_ratio=None, batch_size=None, num_input_channels=None, use_1D_kernel=True)
I need to replace this theano backend command with Keras 2.0 or tensorflow backend. Any…
In Keras library, activattion.get() calls activattion.deserialize() function which in turn calls util.generic_utils.deserialize_keras_object() function. Can someone explain what happens in deserialize_keras_object() function
I have an issue that seems to have no straight forward solution in Keras. My server runs on ubuntu 14.04, keras with backend tensorflow.
Here's the issue:
I wanted to use tensorboard to plot the histograms, other training metrics graphs.
I followed…
I am currently trying to implement GoogLeNet architecture (InceptionV1) in Keras using theano backend, as I want to generate features for CUB dataset using GoogLeNet model.
I found an implementation in Keras here.
However, it is based on the earlier…
I am trying to train a very simple model for image recognition, nothing spectacular. My first attempt worked just fine, when I used image rescaling:
# this is the augmentation configuration to enhance the training dataset
train_datagen =…
I am trying to replicate Siraj's code for predicting stock prices in R (https://github.com/llSourcell/How-to-Predict-Stock-Prices-Easily-Demo).
This is my code:
url <-…
I am training my network using Keras on tensorflow backend(Keras version 2.1), I have tried many things available on internet, but did not find any solution.
My Training set and labels: 26721(each image have size (32, 32,1)) , (26721, 10)…
I have a weighted sparse_categorical_crossentropy loss which is not working after updating to Keras 2.1.1. The previous version I was using was 2.0.6, and it was working fine then.
There are 2 classes (0 and 1) in the Output Layer. I pass the…
I'm using Keras (with tensorflow backend) and trying to get layers output(actual activation) on my training set during train time (using 'fit' function)
Is there any way to get the activations of last batch used for training as part of the…
I have a model function which accepts Features, targets and mode but when I add tf.keras layers I'm currently getting Exception pred must be a Tensor, a Variable, or a Python bool.
But, When I run the same code with out using tf.keras but directly…
I have different length input texts, from few character to hundred words so I decided to use different MAX_LENGTH for each batch instead of fix MAX_LENGTH for all batches (obviously shorter MAX_LENGTH for smaller text).
After googling I saw this…
I am running Keras 2.0.6 with Python 3.6.2 and Tensorflow-gpu 1.3.0.
In order to do fine tuning on the Vgg16 model, I run this code after having hand built a vgg16 architecture and loaded the weights, but I have not called compile() yet:
model =…
I trying to port this model into Keras v2 but I have a problem with following function:
def __call__(self, sent1, sent2):
def _outer(AB):
att_ji = K.batch_dot(AB[1], K.permute_dimensions(AB[0], (0, 2, 1)))
return…
For below code i have save models weights in mnist_weights1234.h5. and want to create same file like mnist_weights1234.h5 with same layer configuration
import keras
from __future__ import print_function
from keras.datasets import mnist
from…