Don't bother Tensorflow learning code 9 (handwritten numeral recognition MNIST CNN learning)

Based on the previous learning, the training of CNN using convolutional neural network has greatly improved the accuracy. The difference from before is that two layers of convolution neural network are added. The full connection layer that was not understood by the previous learning theory is also understood after writing this code. Moreover, d ...

Added by x2fusion on Sun, 23 Jan 2022 23:03:12 +0200

One of the foundations of deep learning is a neuron

neuron    the most basic concept in deep learning: neuron, the popular neural network, is almost composed of neurons combined in different ways. A complete neuron is mainly composed of two parts, namely linear function and excitation function.    linear function:      y = wX + b       the formulas o ...

Added by scm24 on Sun, 23 Jan 2022 19:49:58 +0200

Principle summary and implementation of convolutional neural network based on PyTorch

1. General 1.1 introduction of convolutional neural network In the previous blog, we made an implementation of fully connected neural network. Among them, the input layer has 784 (28 * 28 picture) elements, the four hidden layers have 400, 300, 200 and 100 neurons respectively, and the output layer includes 10 categories of handwritten digits ...

Added by Candise on Sun, 23 Jan 2022 14:53:36 +0200

PyTorch learning notes

Source: PyTorch deep learning quick start tutorial (absolutely easy to understand!) [small mound] 1, Environment configuration Installing anaconda: software that integrates various package s Install anacodna3 five point two Mirror image of Tsinghua UniversityCreate environment In Anaconda Prompt: conda create -n pytorch python=3.6 #Create an ...

Added by iceman2g on Sun, 23 Jan 2022 13:46:53 +0200

Python error note: Python's torch Normal() function

0. Preface In the middle, there are many process notes to modify the code, which are not available. They are only used to record ideas. If you want to see the final code, turn to the bottom directly. Run Li Mo 2021 deep learning linear regression code as follows def synthetic_data(w, b, num_examples): """generate y = Xw + b + Noise."" ...

Added by thedotproduct on Sun, 23 Jan 2022 06:08:32 +0200

Python based Image Super Resolution

1, Business background This experiment will use the time depth learning technology to reconstruct the image with super-resolution. The designed technology includes convolution neural network, generation countermeasure network, residual network and so on. 2, Development environment This experiment uses "Microsoft Visual Studio", &qu ...

Added by ambrennan on Sun, 23 Jan 2022 00:57:45 +0200

ResNet actual combat: tensorflow2 Version x, ResNet50 image classification task (small dataset)

abstract This example extracts part of the data in the plant seedling data set as the data set. The data set has 12 categories. Today, I will work with you to implement tensorflow2 For the X version image classification task, the classification model uses ResNet50. Through this article, you can learn: 1. How to load picture data and process ...

Added by The_Walrus on Sat, 22 Jan 2022 19:13:57 +0200

Han Pi's semantic segmentation and remaking 8 -- Keras builds its own deep labv3 + semantic segmentation platform

matters needing attention This is the reconstructed deep labv3 + semantic segmentation network, mainly the construction on the file framework and the implementation of code. Compared with the previous semantic segmentation network, it is more complete and clearer. It is recommended to learn this version of DeeplabV3 +. Study Preface Deep ...

Added by paulytrick on Sat, 22 Jan 2022 15:08:52 +0200

torch.optim.lr_scheduler -- learning rate adjustment summary

Reference link: https://blog.csdn.net/qyhaill/article/details/103043637 Call example: import torch import torch.nn as nn from torch.optim.lr_scheduler import LambdaLR initial_lr = 5 class model(nn.Module): def __init__(self): super().__init__() self.conv1 = nn.Conv2d(in_channels=3, out_channels=3, kernel_size=3) def ...

Added by jamesp on Sat, 22 Jan 2022 12:00:45 +0200

Implementation of Pytorch single machine multi card GPU (principle overview, basic framework and common error reporting)

Implementation of Pytorch single machine multi card GPU (principle overview, basic framework and common error reporting)   usually, when large-scale training tasks are required such as pre training, it is difficult for a single card to meet the needs. Therefore, resources such as clusters need to be used to meet the needs of acceleration. ...

Added by arcanechaos on Sat, 22 Jan 2022 08:40:29 +0200