Category "keras"

Deeplearning with Python Tensorflow,Keras

I am writing masters thesis about deeplearning and have a problem probably about library. Below is the error: AttributeError: module 'tensorflow.compat.v2' has

Convert model.fit_generator to model.fit

I have codes in the following, train_datagen = ImageDataGenerator( rescale=1./255, shear_range=0.2, zoom_range=0.2, horizontal

how can I make a 2D softmax Layer?

I am making a network using keras library. Lets suppose that I have 2D matrix [ 0 0 1 2 0 1 2 5 1 0 0 1 ] what I want to do is obtaining the following matrix [

Does image classification transfer learning require negative examples?

Task is to determine which of 3 classes does an image belongs to, or none. I received a ready model. EfficientNet B4 with ImageNet weights had transfer learnin

Deep learning CNN: low accuracy

I am training a convolutional neural network for binary time series classification. The training accuracy on both models is very different. If on the first it g

Keras model.fit() runs faster on GPU when the CPU is loaded with a heavy multiprocessing script

I wasn't expecting this to happen. The relevant code pieces are: import os import tensorflow as tf os.environ['TF_XLA_FLAGS'] = '--tf_xla_enable_xla_devices' .

Failing to load model using multiprocessing on windows

This program works on Unix and I'm trying to transition it to windows. It uses multiprocessing and I understand it's an issue with being forced to use spawning

Failing to load model using multiprocessing on windows

This program works on Unix and I'm trying to transition it to windows. It uses multiprocessing and I understand it's an issue with being forced to use spawning

(Keras) ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float)

I know this problem has been answered previously in the link below,but it does not apply to my situation.(Tensorflow - ValueError: Failed to convert a NumPy arr

Tensorflow error: ValueError: Shapes (128, 100) and (128, 100, 139) are incompatible

I try to use Functional API for my model, but i don't understand why i have error: ValueError: Shapes (128, 100) and (128, 100, 139) are incompatible My code:

AttributeError: 'Sequential' object has no attribute '_get_distribution_strategy'

I am following an online course through linkedin regrading the Building of models through Keras. This is my code. (This is claimed to work) import pandas as p

Mask R-CNN is not loading weights properly for inference and re-training

QUESTION: I'm new to the world of computer vision and this is my second project with it. I am running an edited version of the Matterport Mask RCNN that runs wi

What is the prediction value of this LSTM neural network?

I just implemented a LSTM, but I'm not sure if I interpreted the structure right. is in this context testPredict = model.predict(Xtest) the last value of the se

How does tf.keras.metrics.TopKCategoricalAccuracy differ from Precision@k?

Coming from recommender systems, precision@k is a popular metric. precision@k = number of relevant predictions in top k / k On the tensorflow docs for tf.kera

Colab: Importing old modules from tf.keras 2.4 fails; importing from Keras 2.4 works, but leads to mixing tf and tf.keras

I'm trying to modify a jupyter notebook to run on colab. It's from a somewhat older repo with known compatibility issues for tensorflow/keras versions after ~2.

Tensorflow on Docker Engine Error Code 132

I am using Docker and Docker-Compose on Ubuntu 20. The application I am deploying on container is using Tensorflow. Docker-Compose build is able to be executed

how to use CRF in tensorflow keras?

The code is like this: import tensorflow as tf from keras_contrib.layers import CRF from tensorflow import keras def create_model(max_seq_len, adapter_size=64

AttributeError: 'Node' object has no attribute 'input_masks'

I created a network, but got the error: AttributeError: in user code: C:\Users\LocalAdmin\.conda\envs\newenvt\lib\site-packages\keras_contrib\metrics\crf_accura

How do I retrieve the one-hot-encoded feature names in tensorflow.keras preprocessing layers

What is the tf.keras equivalent of encoder.get_feature_names found in sklearn? As shown shown in this SO question Need this to get all the one-hot encoded featu

What is the meaning of "trainable_weights" in Keras?

If I freeze my base_model with trainable=false, I get strange numbers with trainable_weights. Before freezing my model has 162 trainable_weights. After freezin