Datawhale September Group Learning--Emotional Analysis--Task01

Tip 1: Learning Address Point Here Tip 1: Word embeddings: how to transform text into numbers Preface _Task01 mainly uses RNN framework (note: this paper does not give a detailed explanation of RNN principles), IMDB dataset to build a Baseline model of text affective analysis tasks. 1. Model building process 1.1 Data Preprocessing ...

Posted by semtex on Wed, 15 Sep 2021 09:34:10 -0700

[pytorch] freeze part of the network

Preface The best, most efficient and most concise is Plan One. Scheme One Step 1: Fixed basic network Code template: # Get the state_dict for the fixed part: pre_state_dict = torch.load(model_path, map_location=torch.device('cpu') # Imported (remember strict=False): model.load_state_dict(pre_state_dict, strict=False) print('Load mode ...

Posted by tauchai83 on Tue, 14 Sep 2021 09:46:30 -0700

Pytoch learning notes -- transforms

Why transforms? Generally, the collected image samples are different in size and brightness. In deep learning, we want the sample distribution to be independent and identically distributed, so we need to normalize the samples.Sometimes only a small amount of sample data can be obtained, and it is not easy to obtain a large number of samples. H ...

Posted by The Chancer on Sun, 12 Sep 2021 00:49:40 -0700

Recognition of fashion MNIST data set by convolutional neural network (DenseNet) (pytoch version)

1. Preface 1.1 case introduction In this case, pytoch is used to build a DenseNet network structure for image classification of fashion MNIST dataset. The analysis of this problem can be divided into data preparation, model establishment, training with training set and testing the effect of model with test set. 1.2 environment configurat ...

Posted by OhLordy on Fri, 10 Sep 2021 01:45:07 -0700

Image classification for deep learning -- a detailed explanation of Vision Transformer(ViT) network

Deep learning image classification (XVIII) detailed explanation of Vision Transformer(ViT) network In the previous section, we talked about the self attention structure in Transformer. In this section, learn the detailed explanation of Vision Transformer(vit). Learning video from Bilibili , refer to blog Detailed explanation of Vision Tran ...

Posted by seaweed on Thu, 09 Sep 2021 21:09:01 -0700

Computer vision | interview question: 04. Detailed working mechanism and code implementation of NMS

problem See a sentence: NMS doesn't understand, what else to do Detection! Tiger's body is shocked... Understand is probably understand, but can the code be written??? In the target detection network, after the proposal is generated, the classification branch is used to give the confidence of each type of each box, and the regression branch i ...

Posted by Shroder on Wed, 08 Sep 2021 11:48:03 -0700

Pytorch Note53 TensorBoard Visualization

Pytorch Note53 TensorBoard Visualization A summary of all notes: Pytorch Note Happy Planet TensorBoard is a visualization tool for Tensorflow that visualizes the running state of Tensorflow programs through the log files that are output during the running of the Tensorflow program.TensorBoards and TensorFlow programs run in different proc ...

Posted by ossi69 on Tue, 07 Sep 2021 22:00:49 -0700

K-nearest neighbor algorithm for Python machine learning

KNN(K-Nearest Neighbors) generally refers to K-nearest neighbor algorithm, which is a common classification algorithm in machine learning The purpose of this paper is to quickly teach you an intuitive understanding of KNN algorithm. At the same time, in order to facilitate you to implement the algorithm, the model involved in this paper is deve ...

Posted by bob1660 on Tue, 07 Sep 2021 11:46:09 -0700

NLP learning -- code implementation of 22.Transformer

introduction   Transformer is the basic structure of almost all pre training models today. Maybe we usually pay more attention to how to make better use of the trained GPT, BERT and other models for fine tune, but equally important, we need to know how to build these powerful models. Therefore, in this paper, we mainly study how to im ...

Posted by MBrody on Thu, 02 Sep 2021 10:33:37 -0700