How to test a model in tensor flow?

I'm following this tutorial: https://www.tensorflow.org/versions/r0.9/tutorials/mnist/beginners/index.html#mnist-for-ml-beginners What I want to be able to do is pass in a test image x - as a...

TF record corrupted after several successful training epochs

I was training a neural network and had run over all the training data for several epochs successfully. However, the tfrecord corrputed error suddenly came out as follows: File...

Error tokenizing data. C error: Expected 14 fields in line 3, saw 57

What does the tokenizing mean in the the contex. I keep getting this error and I am unable to train my model. Please can somebody review my sample dataset and code to see where I have gone wrong ?...

TensorFlow Object Detection API Return text from object

I'm using TF Object Detection API with Open CV. How do I go about extracting the type of the object the video detects and have it copied to a .txt file? For example, once the video in the Object...

Extract Image Segmentation Map from Tensorflow DeepLab v3 Demo

I have set up the Google's DeepLab V3 Demo on my local system and it runs successfully after making some minor changes. It's as: # -*- coding: utf-8 -*- # DeepLab Demo # This demo will demostrate...

Error running Tensorflow Object Detection with custom dataset

I've been trying to use tensorflow's object detection api for a school project and I've managed to follow their instructions in the documentation, but I'm getting this error I can't find anywhere...

tensorflow.python.framework.errors_impl.UnknownError: Failed to rename: Input/output error

When I apply tensorflow eager mode to train a classifier, I met the following error. Steps 151, Train loss is 0.00039766659028828144, learning_rate is 0.009999999776482582 Traceback (most recent...

'tuple' object has no attribute 'layer'

I am having many troubles trying to start training my model (a DCGAN). It is giving me the error: 'tuple' object has no attribute 'layer' I read that this could be due to having both the...

Windows fatal exception: access violation with tensorboard

I installed tensorflow in the following steps 1, Install anaconda in win 10 2, conda install -c anaconda tensorflow-gpu=1.14 I can use this to train my model, but when I use tensorboard,...

"No Backend Error" while reading files in Python

I am trying to perform STFT on a bunch of sound files and I get this error. The path of the files which I am trying to perform STFT is correct but still, I get this error. import librosa import...

Keras GPU memory overflow using with keras.utils.sequence and generator

Dataset.py import os import random from skimage import io import cv2 from skimage.transform import resize import numpy as np import tensorflow as tf import keras import Augmentor def...

Tensorflow-IO Dataset input pipeline with very large HDF5 files

I have very big training (30Gb) files. Since all the data does not fit in my available RAM, I want to read the data by batch. I saw that there is Tensorflow-io package which implemented a way to...

AttributeError: module 'tensorflow' has no attribute 'io'

My problem is when i try to run this code if log_to_tensorboard: from torch.utils.tensorboard import SummaryWriter if log_to_tensorboard: writer = SummaryWriter() I get this error: (import...

Failed to rename ; Access denied Tensorflow

I am trying to build a machine learning code with tensorflow 2.0 in jupyter using the mnist dataset . The data set is being taken from tensorflow-datasets but during the initial downloading of...

I can't import Tensorflow on google colab

I am trying to train a custom object detection model on Google Colab. I am using Tensorflow gpu 2.2.0. But when I try to import libraries in cell 4(you can see below) I am getting...

Failed to convert a NumPy array to a Tensor while converting pandas dataframe

I am trying to convert a pandas dataframe to a tf dataset, but i constantly rrun into this problem: Traceback (most recent call last): File "/home/arch_poppin/dev/AI/reviews/rev.py", line 36, in...

TensorFlow Object Detection API ERROR - Access Denied [WINDOWS]

I am experiencing somewhat strange error when trying to run TF Object Detection API on my Windows machine. I've followed instructions from this link:...

with AttributeError: module 'tensorflow' has no attribute 'gfile'

*I am trying to build an object detection model with the help of tensorflow and having this error again and again. I tried that tf.io.Gfile also, but it is not helpful. I am using tensorflow 2.2.0...

W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries

How should I fix this in CentOS 7? [[email protected] ~]$ pip freeze | grep tensorflow tensorflow-estimator==2.2.0 tensorflow-gpu==2.2.0 [[email protected] ~]$ python Python 3.8.5 (default, Mar 31 2021,...

ERROR: CMake must be installed to build dlib

While using docker build -t /flask-docker to create an image to later upload it to heroku, I get the following errors: #8 417.3 ERROR: CMake must be installed to build dlib #8 417.3 #8 417.3 ...

How to perform super pixel image segmentation and feature extraction

I am interested in multi class segmentation of skin tissues, I have 3000 skin tissue labels classified into 4 classes, I have created a CNN classification algorithm to train my classification...

Pytorch Dataloader for reading a large parquet/csv file

I am trying to get Pytorch to train records of a single parquet file, without having to read the entire file in memory at once since it won't fit in memory. Since the file is stored remotely, I...

How to pip install pycocotools on windows

this is the error said i don't know how to solve this Building wheel for pycocotools (setup.py) ... error ERROR: Command errored out with exit status 1: command:...

How can I access to HDFS file system in the latest Tensorflow 2.6.0?

I recently upgraded the tensorflow version used in my program to the recently released 2.6.0, but I ran into a trouble. import tensorflow as tf pattern =...

Cannot import name 'TextVectorization'

I can successfully run the Keras mnist example. I now would like to run the "English-to-Spanish translation with a sequence-to-sequence Transformer" example found here. I'm running TensorFlow...

GPU memory is empty, but CUDA out of memory error occurs

During training this code with ray tune(1 gpu for 1 trial), after few hours of training (about 20 trials) CUDA out of memory error occurred from GPU:0,1. And even after terminated the training...

Could not resolve com.google.guava:guava:30.1-jre - Gradle project sync failed. Basic functionality will not work properly - in kotlin project

It was a project that used to work well in the past, but after updating, the following errors appear. plugins { id 'com.android.application' id 'kotlin-android' } android { ...

Getting DLL error when running tensorflow/keras program on python gpu 3.8

I am trying to run my simple AI program but I keep getting this DLL error: ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a...

ModuleNotFoundError: No module named 'pandas' | `pip install pandas` & `poetry add pandas` fail

I've been able to run and install pandas library before... Included is IDLE traceback, at bottom of post. I'm starting to believe there is more of an underlying serious issue with my setup. Really...

How to compile and install tensorflow-2.8 from source for the aarch64/arm64, now that the version depends on "tensorflow-io"

I followed the compile guide found in https://www.tensorflow.org/install/source to compile tensorflow from source successfully on Oracle ARM Ampere instance and managed to generate the "whl"...