Code Monkey home page Code Monkey logo

pytorch_notes's Introduction

简介

0.历史

FAIR( Facebook AI Research,Facebook人工智能研究院 )于2017年初发布 PyTorch,早期的 Torch 使用 Lua 语言作为接口,门槛较高。后期使用 python 语言对接口进行重构,推出了 Pythorch。

简单来说,Pytorch 就是一个 Python 工具包,通过 import torch 导入使用

1.安装

1.1 CPU 版本

推荐方法

PyTorch 是一个加速算法模型研究到产品部署的开源机器学习框架

推荐使用 :官方下载地址,此处以 CPU 版本为例:

# 安装 3 个包,分别是torch, torchvision,torchaudio
pip3 install torch torchvision torchaudio

其他方法

若下载速度过慢,可离线下载对应的包,手动进行安装:whl 下载地址 | CSDN 教程

将下载好的文件移动到对应的目录中即可:

#先安装torch
pip install "torch-1.8.0+cpu-cp38-cp38-win_amd64.whl"
#安装torch成功后再安装torchvision
pip install "torchvision-0.9.0+cpu-cp38-cp38-win_amd64.whl"

手动下载的还需注意 pytorch 与 torchvision 版本对应关系,给出最近版本说明,具体可查找:torchvision

安装完成后检测:

import  torch

print(torch.__version__)
print('gpu:', torch.cuda.is_available())

2.文档说明

PyTorch_intro.md:以龙良曲讲解视频为主。

参考对应的课程代码和资源resources\Deep-Learning-with-PyTorch-Tutorials

如果前期有 TF 学习基础,可直接结合 YOLO 模型的方式进行学习

其他参照书籍:

pytorch_notes's People

Contributors

wanggs2418 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.