Deep Neural Networks – Convert a TensorFlow piecewise model and start using OpenCV v4.8.0

Goals In this tutorial you will learn how to Convert a TensorFlow (TF) segmentation model Run the converted TensorFlow model using OpenCV Evaluate TensorFlow and OpenCV DNN models We will discuss the above points using the DeepLab architecture as an example. Introduction Apart from the graph optimization stage, the key concepts involved in TensorFlow classification […]

[Distributed] tensorflow 1 distributed code practice and explanation; running 2 distributed worker threads on a single node

tensorflow.python.framework.errors_impl.UnknowError: Could not start gRPC server 1. tf distributed A computer = server = server is a node that contains multiple GPUs. First of all, the distributed method is to let the GPUs on multiple computers work together. Distributed work is divided into two parts, parameter server (ps) and worker. PS and worker look familiar, […]

Shengteng Migration丨Interpretation of 4 TensorFlow model training cases

This article is shared from the Huawei Cloud Community “Common Cases of TensorFlow Model Training” by Shengteng CANN. Training scripts developed based on TensorFlow’s Python API run on the CPU/GPU/TPU by default. In order for these scripts to take advantage of the powerful computing power of the Ascend AI processor, they need to be migrated […]

Deep Neural Networks – Convert TensorFlow Classification Model and Release with OpenCV Python OpenCV v4.8.0

Original author Anastasia Murzova Compatibility OpenCV >= 4.5 Goals In this tutorial you will learn how to Get a frozen graph of a TensorFlow (TF) classification model Run the converted TensorFlow model using the OpenCV Python API Get evaluation results for TensorFlow and OpenCV DNN models We will discuss the above points using the MobileNet […]

4 Tensorflow image recognition model (Part 1) data preprocessing

Previous article: 3 Detailed explanation of tensorflow model construction-CSDN blog This article begins by introducing the model for identifying cat and dog pictures. It has a lot of content and will be divided into multiple chapters. Model building is still the same process as before: Dataset preparation Data preprocessing Create model Set up loss function […]

Object detection using TensorFlow SSD network

Object detection using TensorFlow SSD network Table of Contents describe How does this example work? Process input graph Prepare data sampleUffSSD plugin Verify output TensorRT API layers and operations prerequisites Run the example Example –help option additional resources license Change log Known issues Description This example sampleUffSSD preprocesses the TensorFlow SSD network, uses TensorRT to […]

Solving ImportError: cannot import name adam from tensorflow.python.keras.optimizers

Table of Contents Solving ImportError: cannot import name adam from tensorflow.python.keras.optimizers Introduction wrong reason solution TensorFlow 1.x version TensorFlow 2.x version Update TensorFlow version in conclusion Introduction to Adam optimizer The principle of Adam optimizer Solving ImportError: cannot import name adam from tensorflow.python.keras.optimizers Introduction When using TensorFlow for deep learning, you often encounter some errors. […]

SolutionYour CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

Table of Contents SolutionYour CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 problem causes Solution 1. Compile TensorFlow source code 2. Install a lower version of TensorFlow in conclusion Sample code: AVX instruction set AVX2 instruction set Performance advantages and application scenarios Solution Your CPU supports instructions that this […]

Solving AttributeError: module tensorflow has no attribute reset_default_graph

Table of Contents Solving AttributeError: module tensorflow has no attribute reset_default_graph wrong reason Solution Step 1: Check TensorFlow version Step 2: Replace obsolete methods or properties Step 3: Update code Step 4: Manually reset the default map (if applicable) in conclusion Solve AttributeError: module tensorflow has no attribute reset_default_graph When using TensorFlow for deep learning […]