Feature preprocessing

import numpy as np import pandas as pd import tensorflow as tf from tensorflow import feature_column from tensorflow.keras import layers from sklearn.model_selection import train_test_split data URL = 'https://storage.googleapis.com/applied-dl/heart.csv' dataframe = pd.read_csv(URL) train, test = train_test_split(dataframe, test_size=0.2) ...

Posted by sean72 on Wed, 02 Feb 2022 15:10:29 +0100

MobileNetV1 V2 V3 network understanding + pytorch source code

Introduction to Mobilenet Traditional neural network has large memory demand and large amount of computation. Cannot run on mobile and embedded devices. Mobilenet focuses on lightweight CNN networks in mobile terminals or embedded devices (the accuracy is reduced by 0.9% compared with VGG16, but the model parameters are only VGG1/32) 1, ...

Posted by dooper3 on Wed, 02 Feb 2022 13:01:26 +0100

Multi angle understanding of sigmoid, relu and tanh activation functions

sigmoid activation function Function expression: Function image: From this figure, we can see the following characteristics of sigmoid activation function: 1. When the input is greater than zero, the output must be greater than 0.5 2. When the input exceeds 6, the output will be infinitely close to 1, and the discrimination function of ...

Posted by robh76 on Wed, 02 Feb 2022 06:46:33 +0100

CVPR LIIF super resolution code reading

paper code abstract The physical world presents visual images in a continuous manner, but computers store and display images in the form of discrete 2D pixel arrays. This paper studies the continuous representation of the image, uses the Local Implicit Image Function (LIIF) to take the image coordinates and the 2D depth features aro ...

Posted by shack on Tue, 01 Feb 2022 20:37:43 +0100

Hands on learning VGG16

VGG paper <Very Deep Convolutional Networks for Large-Scale Image Recognition> Thesis address: https://arxiv.org/abs/1409.1556 Network using duplicate elements (VGG) This paper briefly describes the VGG16 network by learning the harvest of VGG and the reproduction of VGG16. I Gain from learning VGG VGG network clearly points out and ...

Posted by zyntrax on Tue, 01 Feb 2022 11:43:24 +0100

Python note4 variable

Variable Tensor is a perfect component in PyTorch, but building neural network is far from enough. We need tensor that can build calculation graph, which is variable. Variable is the encapsulation of tensor. The operation is the same as that of tensor, but each Variabel has three attributes, and the tensor itself in variable data, correspo ...

Posted by BillyT on Tue, 01 Feb 2022 06:37:45 +0100

Python note12 multilayer neural network

Python note12 multilayer neural network Multilayer neural network In the previous, we learned about the two most common models in the field of machine learning, linear regression model and Logistic regression model. They deal with the two most common problems in machine learning - regression problem and classification problem respectively ...

Posted by andychurchill on Tue, 01 Feb 2022 02:17:19 +0100

Deep learning 4 Differential and automatic derivation

Author: baiyucraft BLog: baiyucraft's Home Original text: Hands on learning and deep learning 1, Differential and derivative    I believe everyone knows the concept. Draw a picture according to the book: import numpy as np from matplotlib import pyplot as plt def set_figsize(figsize=(3.5, 2.5)): """set up matplotlib The ...

Posted by Leppy on Mon, 31 Jan 2022 00:38:44 +0100

[YOLO] YOLOv5 module analysis [first draft, which will be supplemented later...]

Relevant modules of YOLOv5 mainly exist in common. In PY Focus module Function: down sampling The function of Focus module is to slice the picture, which is similar to down sampling. First, change the picture to 320 × three hundred and twenty × 12, and then go through 3 × 3, the output channel 32 finally becomes 320 ...

Posted by gigabyt3r on Sun, 30 Jan 2022 21:12:43 +0100

Run yolov5 on CPU (detailed steps + suitable for getting started)

catalogue 1, Create a new environment 2, Import Python Library 3, New project 4, Testing 5, Prepare dataset 6, Modify profile 7, Training 8, Example test 9, Concluding remarks By default, Anaconda and pycham are installed and everyone knows the basic operation. 1, Create a new environment Open the cmd window, enter conda create -n ...

Posted by jcbones on Sun, 30 Jan 2022 13:33:19 +0100