WHT

Installing Pytorch | Pytorch Tutorial 01 – Installation

Python Engineer

Subscribe Here

Likes

741

Views

94,111

Pytorch Tutorial 01 - Installation

Transcript:

Hi, everybody, welcome to a new tutorial series in this series. We are going to learn how to work with. Pi Torch High Torch is one of the most popular machine learning and deep learning frameworks. It’s really fun to work with it and develop cool applications. So I hope you watch the serious and learn all about the necessary basics for this framework, so in this first video. I show you how we install Pi Torch, So let’s start and for this. We go to the official website. Pi Torch Org Then click on get started, then select the newest. Pi touch build right now. This is Version 1.3 then select your operating system. So in my case, it’s a Mac, then select the package manager with which you want to install Pi Torch, so I highly recommend to use Anaconda, and if you haven’t installed anaconda yet and don’t know how to use it, then please watch my other tutorial about Anaconda, So I will put the link in the description below and then select the newest python version. So here I select Python, 3.7 and unfortunately on the Mac, you can only install the CPU version right now, but if you are on Linux or windows and want to have GPU support and then you can also install or have to install the cuda toolkit first, so the CUDA toolkit is a development environment for creating high-performance cheap. You accelerated applications for this. You need an NVIDIA GPU in your machine. And if you have that, then you can go to the website developer dot and video comm slash CUDA – downloads. And then we have to be careful because right now. The newest supported CUDA version by PI Torch is cuda 10.1 So we have to get this version so right now. The newest version is 10.2 so we have to go to legacy releases, then selecting newest. CUDA toolkit 10.1 then select your operating system. So for example, Windows Windows 10 then download the installer and follow the instructions and this will also check if your system is suitable for the CUDA toolkit. So if this is successful, then we can go back to the pie charts site and copy this command, so in my case on the Mac now I need this command, so let’s copy this and now let’s open up a terminal and first of all we want to create a virtual environment with Conda in which we want to install all of our packages and install pie charts, so let’s create a environment. Let’s say Conda. Create – N and now give it a name, so I call this pie torch simply pie touch and then also specify the Python version, so let’s say Python equals 3.7 and then hit enter. Now this will create your virtual environment with Python 3.7 Let’s hit enter again to proceed and this will take a while, and now it’s done so now we can activate this environment with Conda. Activate Pi torch. And now we are inside of this environment and we can see this because here in the beginning we have Pi touch in parentheses, so this is the name of the environment, and now let’s paste our installation command from the website, so this will install Pi Torch and all the necessary packages, so this will also take a couple of seconds now again, let’s hit enter to proceed and now it’s done so now we have installed. Pi Torch and we can very by that by starting Python inside this environment, so let’s say no type Python and enter, and now we have Python the running and now we can import the torch module, So if the installation was not correct and right now you would get a module not found error, but in this case, it is correct, and now we can, for example, create a torch tensor, so let’s say X equals torch dot R and and of size 3 and now we want to print our tensor so this also works and now we can also check if CUDA is available so we can say tour torch dot CUDA dot is underscore available. So in my case, it says false, but if you’ve installed the CUDA toolkit and also the GPU supported PI touch packages. Then this should say true, so yeah, so now we have installed in our PI torch and can get started working with it. So I hope you enjoyed this and see you in the next tutorial bye.

0.3.0 | Wor Build 0.3.0 Installation Guide

Transcript: [MUSIC] Okay, so in this video? I want to take a look at the new windows on Raspberry Pi build 0.3.0 and this is the latest version. It's just been released today and this version you have to build by yourself. You have to get your own whim, and then you...

read more