Category "tensorflow"

Displaying images from each class of a batched tensorflow dataset

I'm doing an assignment creating a cv model with 6 different classes. I've loaded my dataset as per this example: https://keras.io/examples/vision/image_classif

Apply different loss function to part of tensor in keras

I'm trying to build a custom loss function where it will apply different function to different part of tensor based on groundtruth. Say for example the groundt

Dependent hyperparameters with keras tuner

My goal is to tune over possible network architectures that meet the following criteria: Layer 1 can have any number of hidden units from this list: [32, 64, 12

Which tensorflow method does decide to a particular batch of examples is for the model to learn?

I'm trying to understand the implementation of SGD in tensorflow. I began with gradient_descent.py because of the file name. Per keras doc, an optimizer needs t

ValueError: Can't convert non-rectangular Python sequence to Tensor

I want to change list to tensor with tf.convert_to_tensor, data is following: data=[ array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.

ERROR: Could not install packages due to an OSError: [WinError 5] [duplicate]

i was trying to install tensorflow-gpu on my pycharm (pip install tensorflow-gpu), but unfortunately im getting a Error Message. How can i ins

tensorboard: command not found

I installed TensorFlow on my MacBook Pro 10.12.5 from source code by steps described here. https://www.tensorflow.org/install/install_sources TensorFlow itself

Can I use Layer Normalization with CNN?

I see the Layer Normalization is the modern normalization method than Batch Normalization, and it is very simple to coding in Tensorflow. But I think the layer

Troubleshooting pycocotools installation

I'm trying to use object detection models from Tensorflow and need to get pycocotools installed. I'm doing this from a python (3) virtual environment on a Windo

File system for s3 already registered when importing tensorflow_io

I installed tensorflow-io with pip install tensorflow-io, when I import it I get: tensorflow.python.framework.errors_impl.AlreadyExistsError: File system for s3

Tensorflow:Model was constructed with shape (None, 28, 28) , but it was called on an input with incompatible shape (None, 28)

I am solving the digit recognition task using the MNIST dataset in keras. The task itself runs smoothly but afterwards I have tried to use the same model for so

A simple case of Graph visualization in TensorFlow 2.0

I would like to simply define a model and visualize its graph in TensorBoard for initial architectural examination. Thus, I would not like to compute anything f

Use different metrics in tf.keras.metrics for mutli-classification model

I am using the TensorFlow federated framework for a multiclassification problem. I am following the tutorials and most of them use the metric (tf.keras.metrics.

ImportError: cannot import name 'keras' from 'tensorflow'

I'm try learning TensorFlow but i have a problem. I'm importing TensorFlow like in official website but i take a error. import pandas as pd import numpy as np i

Reload Keras-Tuner Trials from the directory

I'm trying to reload or access the Keras-Tuner Trials after the Tuner's search has completed for inspecting the results. I'm not able to find any documentation

Tensorflow: Getting scalar tensor value as int for pass to set_shape()

I'm attempting to load 3D images and their labels from a numpy array to TensorFlow records, then read them from a queue while training my network. The code for

Issues running a Keras model with custom layers

I am currently working on my bachelor's thesis at FIIT STU, the primary goal of which is to attempt to replicate and verify the results of the following study.

Why does BERT Model fail to find an option that matches my input positional arguments?

While attempting an NLP exercise, I tried to make use of BERT architecture to get a good training model. So I defined a function that builds and compiles the mo

Tensorflow Equivalent of skimage.transform.warp or scipy.ndimage.interpolation.map_coordinates

Does Tensorflow have an equivalent of skimage.transform.warp or scipy.ndimage.interpolation.map_coordinates? I am looking for some way to "warp an image accordi

How to decode raw_outputs/box_encodings from Tensorflow Object detection ssd-mobilenet without nms

In order to deploy my own ssd-mobile model on android and use NNAPI acceleration , I retrained the model without NMS post processing according to the tensorflo