AttributeError: module 'tensorflow' has no attribute 'compat' when loading tf.compat.v1.train.SessionRunHook

I can see that this question has been asked before here tensorflow-has-no-attribute-compat but the answer given was to Microsoft Visual C++ 2015-2019 Redistributable (x64) It did not work for the...

OSError: [E050] Can't find model 'de'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory

So I am trying to make a seq to seq model for translating german to english using pytorch on online notebook like kaggle notebook and google colab import torch import torch.nn as nn import...

module 'tensorflow' has no attribute 'Session' cannot resolve

Please please please help me out here! I cannot resolve it! so... my python version is Python 3.5.6 and Anaconda version is Conda 4.8.3. I am working with Jupyter Notebook. I am working in...

ImportError: TensorBoard logging requires TensorBoard version 1.15 or above

I follow the tutorials in pytorch.org It occurs error:TensorBoard logging requires TensorBoard version 1.15 or above,but I have install TensorBoard already. Here is the code: #from...

Error PackagesNotFoundError: The following packages are not available from current channels for Pypi packages

I am trying to create a conda env conda create --name sf-prj-final --file requirements.txt But I have encountered error says: PackagesNotFoundError: The following packages are not available from...

Python: TypeError: required field "type_ignores" missing from Module in Jupyter notebook

I have been having issues with my jupyter notebook for a few days. I didn't fix them at the time but have decided to now. Earlier whenever I executed anything in the jupyter notebook, It showed a...

TF object detection API detection model retraining: "object_detection.protos.TrainConfig" has no field named "fine_tune_checkpoint_version"

I'm retraining ssd_mobilenet_v2_coco_2018_03_29 using Tensorflow Object Detection API and I get this particular error on both Windows and Ubuntu environments. My environment below is Windows 10...

Graph ops missing from the python registry

I am trying to run the example code from bertseq2seq/roberta24_bbc: import tensorflow.compat.v1 as tf import tensorflow_hub as hub import sentencepiece text_generator = hub.Module( ...

Trouble installing turbodbc

I am attempting to install turbodbc on my Ubuntu 20.10 machine. My specs are as follows: pip 20.2.4, Python 3.8.5 , gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0 I have attempted the solutions provided in...

No module named 'tensorflow_probability' when it's installed

I am having the same issue as many others and their solutions haven't worked. Im using tensorflow 2.2.0 and tensorflow probability 0.10.0. Package Version ----------------------...

Invalid requirement

I converted the requirements of my project into a txt file with the method below. pip freeze > requirements.txt And I tried to load the generated txt file with the code below to test it, but I...

Pipenv fails locking when installing TensorFlow 2.4.1

2021-02-06: I ended up with installing TensorFlow using pip. The original question is shown below. As I mentioned in the title, pipenv fails to lock when installing TensorFlow (ver. 2.4.1). I...

How to downgrade python version without affecting other files

When I am installing tensorflow in python 3.8.0 then it shows error. How to downgrade python version without affecting other files. (base) C:\Users\Akanksha-Lab-PC>pip uninstall python...

Segmentation fault (core dumped) on training the deep neural network /torch/cuda/__init__.py", line 172 in _lazy_init

python3 -q -X faulthandler test.py --model.backbone=resnet18 2021-02-07 20:14:21.198583: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library...

ConfusionMatrixDisplay(confusion_matrix).plot() doesn't show anything

I have the following code: from sklearn.metrics import classification_report, confusion_matrix, ConfusionMatrixDisplay ... confusion_matrix = confusion_matrix(validation_generator.classes,...

GPU Issue Tensorflow 2.4.1

I would like to train a Tensorflow model by using my GPU I'm using : tensorboard 2.4.1 tensorboard-plugin-wit 1.8.0 tensorflow-estimator ...

Conda - how to update only cudatoolkit in an existing environment?

This is a specific instance of a general problem that I run into when updating packages using conda. I have an environment that is working great on machine A. I want to transfer it to machine...

Tensorflow stuck on first epoch

My execution is stuck on the following step I got GTX 3090 on Python 3.7 on windows 10. I installed cuda, cudnn and tensorflow-gpu using conda as instructed from here conda install...

Call to CreateProcess failed. Error code: 2 (TensorFlow)

When trying to use the GPU enabled tensorflow, I run into some error messages that seem to limit my ability to run my GPU despite many success messages in the log (see below). In terms of...

ValueError from detectron2 import model_zoo

I am trying to install detectron2 inside a Docker container to use it into a project, but after being able to install all the dependencies, I get an error when I try to import model_zoo. Full...

Im trying to build mediapipe on my jetson nano

So Im trying to build a mediapipe whl file for my jetson nano by following this guide https://github.com/jiuqiant/mediapipe_python_aarch64 I am successful on building it with my raspberry pi 4. By...

Sudden Tensorflow / Keras Google Colab dependency problems `AttributeError: module 'tensorflow._api.v1.compat.v2' has no attribute '__internal__'`

I have running a machine learning model (Matterport's Mask R-CNN) in google colab for a couple of weeks. All of a sudden today I am unable to run any of my notebooks due to I think some kind of...

DeepFace.analyze: AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects

I am using DeepFace to analyze/classify some face images The process is simple, I download an image into a folder and then I analyze it using DeepFace.analyze from deepface import DeepFace url =...

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 ...

Cannot import installed packages in Jupyter Notebook using Miniforge Conda Environment on M1 Mac

I have a M1 Mac (Apple Silicon, ARM) and I followed the instructions given by Apple here to install Miniforge, create a conda environment called tf_env and install Tensorflow on it. I wanted to...

ImportError: Could not find the DLL(s) 'msvcp140.dll or msvcp140_1.dll'. Even when the files are located in the %PATH% directory

I receive the following error when importing tensorflow (base) PS C:\Users\Rostyslav\GIt\GNN-GCP> python run_model.py --train --save Traceback (most recent call last): File "run_model.py", line...

Tensorflow Object Detection Api M1 Macbook Conflict Error

Machine: MacBook Air M1 2020 OS: macOs BigSur 11.4 Python version of venv: Python 3.8.6 Tensorflow version: ATF Apple Tensorflow 0.1a3 Pip version: 21.2.4 I have installed Tensorflow from...

AttributeError: module 'tensorflow.compat.v2.summary' has no attribute 'scalar'

I have been running a u-net on oxford_iiit_pet dataset. I followed quite similar the code from this medium. Here you have my code. When running the fit method I got the following error message: ...

Python: matplotlib.pyplot.show() is not showing the plot

import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.show() input("Press enter to continue...") If I run the script above within VS Code, or even within command prompt, the plot canvas only...

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...