Category "tensorflow"

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

`generator` yielded an element of shape (8, 0) where an element of shape (None,) was expected. Traceback (most recent call last):

I was training a network and I decided to add more data for training. my data set is selected from another data but both have (460,620,3) and Uint8 type. but wh

Why is my Pytorch code significantly slower than Tensorflow?

I am trying to move my code from Tensorflow to Pytorch. Before doing this, I just simply test myself two frameworks. I expected two frameworks should show simil

'NoneType' object has no attribute '_inbound_nodes'

I have a code to forecast a time series using an attention mechanism. Here's what I've got so far, but I'm getting an error. def dot_product(x, kernel): if

Is there a way to change GPU / CPU on tensorflow during code execution?

I have 2 tensorflow (1.15.4) models running sequentially. The output from the first model will be fed into the second model. Is there a way to run the first mod

Lookup table in TensorFlow with key is string and value is list of strings

I would like to generate a Lookup table in TensorFlow with key is string and value is list of strings. But it seems currently no classes in tf.lookup support th

Matterport's mask rcnn doesn't train after setting up parameters

Task: Mask RCNN train_shapes.ipynb tutorial. Training to segment different shapes in the artificially generated shapes dataset. Problem: Matterport's Mask RCNN

Generic requirements.txt for TensorFlow on both Apple M1 and other devices

I have a new MacBook with the Apple M1 chipset. To install tensorflow, I follow the instructions here, i.e., installing tensorflow-metal and tensorflow-macos in

Upgrade CUDNN to 8.2 in google colab

I wan to use upgrade the CUDNN version from 8.0 to 8.1 and CUDA version to 11.2, but I am not sure how we can do this on colab. Below is the script I wrote to r

Image segementation dataset format

I'm following this tutorial: Tensorflow Image Segmentation I want to make my own dataset. Ideally, following the same format as the Oxford pet dataset used in