Tag:tensorflow
-
Image Recognition and Classification: A Practical Guide
Image recognition and classification is one of the core tasks in the field of computer vision. It involves recognizing objects, scenes, or concepts in an image and assigning them to predefined categories. In this article, we will introduce you to the basic concepts of image recognition and classification, and demonstrate how to implement image recognition […]
-
ImportError: cannot import name ‘Literal‘ from ‘typing‘ (D:\Anaconda\envs\tensorflow\lib\typing.py)
Reporting Errors Background: I downgraded python 3.8 to 3.7 in my original newly created anaconda environment (mine is named tensorflow) because the tensorflow-gpu version needs to be installed. The following error occurs when importing the seaborn package: ImportError: cannot import name ‘Literal’ from ‘typing’ (D:\Anaconda\envs\tensorflow\lib\typing.py) Cause analysis: This is due to the fact that ‘Literal’ […]
-
Quantum computing frameworks and libraries TensorFlow Quantum, PyTorch Quantum can be used for deep learning
catalogs 1. Install TensorFlow Quantum:2. Install PyTorch Quantum:3. Case study: quantum linear regression How to install TensorFlow Quantum and PyTorch Quantum with some simple code examples. Please note that since quantum computing is still in the early stages of development, these tools and libraries may change over time 1. Install TensorFlow Quantum: First, you need […]
-
Tensorflow-gpu nanny-level installation tutorial (Win11, Anaconda3, Python3.9)
Tensorflow-gpu Nanny Installation Tutorial (Win11, Anaconda3, Python3.9) preamblePreparation for Tensorflow-gpu version installation(a) Check the computer’s video card:(ii), Anaconda installation(iii) cuda download and installation(D), cudnn download and installation(v) Configuration of environment variables(F), create tensorflow environment(VII), test whether Tensorflow-gpu is installed successfully or notuninstall and reinstall preamble CPUversions andGPUThe differences between the versions are mainlyrunning speed,GPUVersion Running […]
-
Installing tensorflow on Windows
Article Catalog I. Environmental configuration1.1 Installing python 3.81.2 Installing Miniconda1.3 Installing Visual C++ Second, install Tensorflow I. Environmental configuration Installation: python 3.8, Miniconda, Visual C++ 1.1 Installing python 3.8 go intopython official websiteInstallation DownloadWindows installer (64-bit)(The version I downloaded) 1.2 Installing Miniconda go intoMiniconda websiteInstallation DownloadMiniconda3 Windows 64-bit(I downloaded the version) Note that the version […]
-
AttributeError: module ‘numpy‘ has no attribute ‘object‘
The one I have is calling some component of numpy in tensorboard and then causing an error. Tried upgrading numpy but that didn’t work. The tensorboard version was upgraded later and it worked. UPDATE: Upgrading the tensorboard can cause other problems, so the above doesn’t work. The root of this problem is the inconsistent versions […]
-
tensorflow1 tensorflow 2 installation configuration (cpu+gpu) windows+linux new version 2.12+
Installation and deployment of tensorflow 1 and 2 Windows and linux usage is the same, I tested it manually under both win10 and ubuntu2204 This article uses conda’s approach, updated August 17, 2023 Link:tensorflow website Note: If you get an error or get stuck because of network problems, please cancel and try multiple times, I’m […]
-
Logistic regression done with TensorFlow
Article Catalog Logistic regression done with TensorFlow1. Environmental settings2. Data reading3. Prepare the placeholder4. Prepare parameters/weights5. Compute the loss function of multiclassified softmax6. Prepare the optimizer7. Perform the operations defined in the graph in the session. P.S. Series of articles Logistic regression done with TensorFlow TensorFlow is an open source machine learning framework developed by […]