Category "tensorflow"

How to construct an equivalent multivariate normal distribution in tensorflow-probability, using TransformedDistribution?

How to construct an equivalent multivariate normal distribution in tensorflow-probability, using TransformedDistribution and tfb.ScaleMatvecLinearOperator? I'm

Import Error: cannot import name 'BatchNormalization' from 'keras.layers.normalization'

I am getting the following error message when trying to run this AlexNET python code. Traceback (most recent call last): File "C:\Users\PycharmProjects\Local-

Why is my accuracy is zero after set backbone trainable?

I trained my model with frozen backbone like: model.get_layer('efficientnet-b0').trainable = False Now, I unfreeze backbone, compile model, start training and

Add MC Holdout layers to trained model in Keras

I am looking for a solution for a problem that has arisen when building a generic ANN for image classification in R. What I want to do is either: Design and com

Why converted images now shown as grayscale?

I am working on image compression problem, i want to convert the images from 3 channel to 1 channle , i used tf.image.rgb_to_grayscale(img_data_array, name=None

Finding the angle of rotation relative to a normal of a 2D image with TensorFlow

I am new to TF, so what is the general process of finding the angle of a 2D image? What I want to do is find the angle of rotation a particular object real-time

How to access image datasets from Dropbox?

I have a dataset of images on Dropbox it is in uncompressed folders, and I want to train a a model using google colab. How can I tell Colab where the dataset is

cannot import name '_registerMatType' from 'cv2.cv2'

I got below error message when I run model_main_tf2.py on Object Detection API: Traceback (most recent call last): File "/content/models/research/object_detec

Getting error 'NoneType' object has no attribute 'read' in python for image processing image_dataframe['image']

I am working on image classification using CNN. I am using below source code for that task. I am stuck with this error : AttributeError: 'NoneType' object has

RuntimeError: class '__torch__.kornia.geometry.boxes.Boxes3D' already defined

I am using a Premade code that works on colab.research.google.com but when I downloaded it locally and used Jupyter I got this error RuntimeError: class '__torc

Tensorflow CNN Image Classification - Using ImageDataGenerator and then Next&Model.fit gives error

I have a CNN model, which is basically processing images and classifying them at the end. There are four class labels, which are UN, D1, D2 and D3. If you look

tensorflow crashes on Mac M1

I am trying to start using tensorflow on my M1 Mac. However, I only get the following message when I try to import tensorflow Python 3.8.5 (v3.8.5:580fbb018f, J

How to convert rgb mask to categorical in keras

I try to find a proper solution to convert a rgb mask from "cam vid" dataset to categorical mask. I have the list of rgb value and corresponding label. What is

Keras semantic segmentation, infinite epoch using ImageDataGenerators

I am trying to train a model based on the U-Net architecture. I am using two data generators (one for training, the other one for validation). However, whatever

How to attach or get filenames from MapDataset from image_dataset_from_directory() in Keras?

I am training convolutional autoencoder and I have this code for loading data (images): train_ds = tf.keras.preprocessing.image_dataset_from_directory( 'pat

Will y_train change during training in keras?

I am trying to write a custom metric in keras like this: def C_index1(E,T): T = T.reshape(len(T),1) T_ind = T > T.T E_ind = E.reshape(len(E),1) E_ind

How to use tensorflow hub in Azure ML

I am trying to use TensorFlow Hub in Azure ML Studio I am using the kernel Python 3.8 PT and TF And I installed a few modules: !pip install bert-for-tf2 !pip

migrating keras + tensorflow cpu to tensorflow-gpu keras modelling

I'm a beginner of data-science and by now, I'm trying to migrate old code keras cpu modelling to gpu-tensorflow. fyi: I'm following instruction on prof.jeffheat

Keras simpleRNN by hand debugging

I plan to transfer my Keras model to embedded C code. In order to do that, I'm first validating in python whether my calculations are correct. There are some er

Work around Keras TypeError limitation when calling layer "tf.keras.backend.rnn_1"

I am trying to use Keras for an attention mechanism in a machine translation using an LSTM network. However, I get a TypeError exception when in my code. TypeEr