Skip to content

bruce1408/Pytorch_learning

Repository files navigation

Pytorch_learning

This repository provides tutorial code for deep learning researchers to learn PyTorch

PyTorch is a Python-based scientific computing package serving two broad purposes:

  • A replacement for NumPy to use the power of GPUs and other accelerators.
  • An automatic differentiation library that is useful to implement neural networks.

PyTorch, like most other deep learning libraries, supports reverse-mode automatic differentiation of scalar functions (or vector-Jacobian products of functions with multiple outputs), the most important form of automatic differentiation for deep learning applications which usually differentiatea single scalar loss. You write code as if you were executing tensor operations directly; however, instead of operating on Tensors (PyTorch’s equivalentof Numpy’s nd-arrays), the user manipulates Variables, which store extra metadata necessary for AD. Variables support a backward() method, which computes the gradient of all input Variables involved in computation of this quantity.

This repository contains:

  1. Computer Vision(CV) Implement complex computer vision algorithms.
  2. Natural language processing(NLP) Examples to show how NLP can tacke real problem.Including the source code, dataset, state-of-the art in NLP.
  3. Dataset All the data you can use in this project are under this directory.
  4. Reference Other reference materials for this project.

代码测试环境

  • Python: 3.8.5
  • PyTorch: 1.8.0
  • Transformers: 4.9.0
  • NLTK: 3.5
  • LTP: 4.0

Table of Contents

Project

Computer Vision

  • Image Classification

    • AlexNet
    • VGGNet
    • ResNet
    • Inception-v1
    • Transfer-learning
  • Generative Adversarial Network

  • Open-Set domain adaption

Natural language processing

pip install en_core_web_sm-2.2.5.tar.gz

pip install de_core_news_sm-2.2.5.tar.gz

  • Basic Knowledge
  • Bi-LSTM
  • Bi-LSTM Attention
  • Seq2Seq
  • Seq2Seq Attention
  • Transformer
  • Bert

Install

This project uses PyTorch. Go check them out if you don't have them locally installed and thirt-party dependencies.

$ pip install -r requirements.txt

Usage

All data for this project can be found in Baidu Cloud Disk 密码: 39nw

Related Efforts

  • Sung Kim

  • graykode - Learn the code quality.

  • yunjey - A tutorial code to encourage open-source contributions.

Contributors

This project exists thanks to all the people who contribute. Everyone is welcome to submit code contributions

Releases

No releases published

Packages

No packages published