Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install pytorch through an image

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to install pytorch through the image", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install pytorch through the image" this article.

Pytorch is a tensor library (tensor library) optimized for deep learning using GPU and CPU. It was developed by the Torch7 team and is a Python-first deep learning framework that not only achieves powerful GPU acceleration, but also supports dynamic neural networks.

1. Install anacoda

There are many tutorials on the Internet, so I won't repeat them here.

two。 Video card acceleration (install CPU version of pytorch to skip)

Please forgive me for omitting here again, but I found a very good blog. According to this to be foolproof, pay attention to the installation must match the version of your computer. Https://zhuanlan.zhihu.com/p/94220564?utm_source=wechat_session

Install pytorch

Go to the official website of PyTorch to select the version https://pytorch.org/get-started/locally/

Note that package chooses pip for example: the commend after I choose is

Pip install torch===1.4.0 torchvision===0.5.0-f https://download.pytorch.org/whl/torch_stable.html>

This is our installation command, which is followed by the image setting

-I https://pypi.tuna.tsinghua.edu.cn/simple some-package

The above is the mirror source of Tsinghua University, which is no longer available at this stage. Provide the following mirror sources for reference. Douban http://pypi.douban.com/simple/

Https://pypi.tuna.tsinghua.edu.cn/simple/ of Tsinghua University

Aliyun http://mirrors.aliyun.com/pypi/simple/

Https://pypi.mirrors.ustc.edu.cn/simple/ of University of Science and Technology of China

Http://pypi.mirrors.ustc.edu.cn/simple/ of University of Science and Technology of China

The images of Tsinghua University and University of Science and Technology have been hung up, so the subject uses the image of Aliyun here. The final pip command is as follows: pip install torch===1.4.0 torchvision===0.5.0-f https://download.pytorch.org/whl/torch_stable.html-I http://mirrors.aliyun.com/pypi/simple/ some-package or above. Please change the above pip command according to your chosen pytorch model and image address to meet your needs.

The above is all the contents of the article "how to install pytorch through Image". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report