Category "tensorflow"

What's the most efficient and/or easy way of exporting and using a TensorFlow model

Ive created a time series forecasting model (RNN) which is heavily based off this tutorial, If I wanted to export this model and use it with, say, a kivy UI in

Trying to write a custom loss function in tensorflow

I am trying to make a custom loss function where I perform an inverse fast Fourier transform to a set of data and then do the following calculations. When I run

Cuda illegal memory access when running inference on *.engine

After exporting a YoloV5 model to .engine I receive an error when trying to perform inference on it. Loading model.engine for TensorRT inference... [01/16/2022-

Negative dimension size error in tensorflow [duplicate]

so I have 2 images, img1 and img2 both with shape=(20,20), to which I expand_dims to (1,20,20) 1 being batch size and feed them to the network

Training custom object detection train_spec and eval_specs[0] not found

I'm trying to train a custom object detector using tensorflow on google colab using this Building your own object detector — PyTorch vs TensorFlow and how

Transformers model from Hugging-Face throws error that specific classes couldn t be loaded

Hi after running this code below, I get the following error. ValueError: Could not load model facebook/bart-large-mnli with any of the following classes: (<c

Multi input problem Keras. Expected to see 2 array(s), but instead got the following list of 1 arrays

I have a model that takes two inputs of the same shape (batch_size,512,512,1), and predict two masks each of shape (batch_size,512,512,1). dataset_input = tf.da

Downgrade Python version in virtual environment

I am always getting the same error regarding TensorFlow: ModuleNotFoundError: No module named 'tensorflow.contrib'. I am actually using Python version 3.9 but,

Tensorflow is partially imported

When I run a script and import Tensorflow from cmd or Visual Studio Code it throws me the error but when I run it from Anaconda prompt or Spyder it works well.

How to switch from the old to the new version of TensorFlow?

I did not use TensorFlow for a while and now, when I was starting to use it again, I have the problem with the first basic line of my code: X = tf.placeholder(n

Use Keras Neural Translation Model (h5 format model) in spacy v3

first 'im not a developer by trade, my developer is not available for health reasons but i have some experience in python/spacy development. I need some guidanc

tensorflow.python.lib.io._pywrap_file_io.BufferedInputStream(filename: str, buffer_size: int, token: tensorflow.python.lib.i

I have a problem while converting from xmls to TFrecords. Here the problem with the code !python {GTFrecords + 'generate_tfrecord.py'} -x {IMAGE_PATH + '/train'

Keras: Having trouble converting depreciated 'merge' layer to new version

I am trying to implement this model: https://github.com/abhishekkrthakur/is_that_a_duplicate_quora_question/blob/master/deepnet.py but it is from an older versi

AssertionError: Duplicate registrations for type 'experimentalOptimizer' when converting ssd model to tflite format

I was trying to convert my trained ssd model to tflite format. But I always face to this below error. error I faced Here is my code: //-------------------------

Why does Tensorflow Function perform retracing for different integer inputs to the function?

I am following the Tensorflow guide on Functions here, and based on my understanding, TF will trace and create one graph for each call to a function with a dist

Select a column without "losing" a dimension

Suppose I execute the following code W = tf.random.uniform(shape = (100,1), minval = 0, maxval = 1) Z = tf.random.uniform(shape = (100,1), minval = 0, maxval =

TensorFlow: TypeError when itterating through model architectures

I have a script which goes through a simple 2d CNN and I'm trying to run through a range of different values for the number of layers and neurons per layer in m

Weighted categorical cross entropy

please I'm trying to build an NLP classifier on top of BERT but I'm struggling with data imbalance. I'm looking for an implementation of weighted CategoricalCro

About 2D convolutions and how they produce a 1 channel image

Trying to understand 2D convolutions, I ran into the following image, which has me confused: If I understood correctly: the blue shape is the input the orange

How can I use tensorflow-privacy in SeqGAN in a right way?

i'm trying to use DPAdamGaussianOptimizer from tensorflow privacy to switch my original optimizer so i could protect privacy during the training. but when i cre