Pytorch Tutorial - Setting up a Deep Learning Environment (Anaconda & PyCharm)

Aladdin Persson · Beginner ·🧬 Deep Learning ·6y ago
Skills: ML Pipelines70%

Key Takeaways

This video tutorial demonstrates how to set up a deep learning environment using Anaconda and PyCharm, covering installation, environment creation, and configuration for PyTorch and Python.

Full Transcript

in this video I'm gonna show you all the steps to set up a deep learning environment using anaconda and PyCharm [Music] the first thing we're gonna do is we're gonna download anaconda so we're going to search anaconda download I'm gonna go to that first page and we're gonna click on this download it's gonna take us to the bottom of the page and we're just gonna take the installation that for our our PC so I have windows 64-bit while that is downloading we can open another tab and we're gonna Google pycharm and let's see we're gonna click download and we're just gonna take the community the free version it's good enough so we're gonna first download now that we have both of those installed we're gonna first install anaconda so run as administrator then we're just gonna press continue or I guess next I agree and I don't think this mess matters too much I'm just gonna pick all users and then we're gonna do that looks fine those are good as default and we're just gonna install that then you're just gonna press next and just finish so what we're gonna do next is what we can do we can Google kinda cheat sheet or something like that and those are gonna tell us pretty much all of the necessary commands so we're gonna search anaconda and you can open this anaconda navigator but I always use the prompt so we can do everything from there to make the font a little bit bigger all right so in the anaconda here we can see that we have for example Conda update Conda so we can do that Conda update Conda yes now what we could do for example is a Conda info and get some information about the Conda that you've downloaded really the only thing that we're gonna do here is we're gonna create an environment so how we do that is we do conduct create and then - - on name and then we're just gonna call it deep learning and then just create that environment we're gonna do Conda activate deep learning and then we're just gonna go - hi torch website and on Tyler's website if we scroll down we're gonna use so we're gonna set up the build so you can choose the stable one or Dupree view nightly I'm just gonna pick the preview nightly I think it's pretty stable anyways and then windows Conda Python and then the latest CUDA version so just a little note on this if you don't have a CUDA enabled a GPU then you I'm not sure if you can actually pick this one but either way you wouldn't need it so you could just press none for that one and just undone load the CPU only version although if you don't have a GPU what are you doing we're just gonna copy that we're gonna copy that in into the prompt we're gonna press ENTER and it's gonna download a bunch of stuff python everything we need to use by George I'm just gonna press Y and then enter one thing here is that pi torch says zero percent I think there's something wrong with the loading bar so so it's been running for a while for me so I'm gonna do is I'm just gonna press ENTER and then it continues downloading now that that is done we have our environment we have pi torch we have Python where everything we need and so the strength of anaconda is really that you can have these different environments and you could have I don't know Python 2.7 on 1 and Python 3.7 on another so that can be useful sometimes so then we'll just go back to that folder and we're gonna install pycharm and then we're gonna press next the default is fine for me so we're just gonna press next and I'm gonna use a desktop shortcut the about it I'm gonna press next I'm gonna install that and then we're just gonna run pycharm do not improve settings because I don't have any then I'm just gonna pick the dark yellow we're gonna change the color scheme or if you want we're gonna change the color scheme and then we're gonna press Next and you probably shouldn't do anything here but I'm gonna use vim because I like that so I'm just gonna press here but you probably shouldn't and then I'm gonna just press start using Python and then the first thing we're gonna do before we create any project we're gonna configure and we're gonna do settings and in the settings we're gonna go to the project interpreter and at the top right we're gonna press on that wheel and we're gonna press add then we're gonna go down to condo environment we're gonna do existing environment then on the existing environment you should have the deep the deep learning that you just created or whatever name you took then we're gonna press make available to all project and we're just gonna press okay and that should make that default one I'm gonna press apply and okay then we're gonna do create new project we're gonna call it something like test one two three and then we're gonna use the existing interpreter and we're gonna use the Python 3.8 the deep learning one I'm going to create this might take a while to run we're just gonna wait for it all right and then we can press on this folder right here or I guess we can do it up here as well file new and we're just gonna press the piping file and we're gonna do test and then what we can do so this text is kind of small I'm just gonna go to settings editor font I'm just gonna change this to 20 and then you could just hide that one so you have more space and then you can start you know import torch print torch dot version and then you can run that up here or the alt shift f10 and then you get the version that you have now what I like to do is I'd like to use another color scheme so I'm just gonna show you how to get that one as well and for that we're just gonna Google groov box and we're gonna go bucs PyCharm and then we're gonna go to that link and and so what it should recognize if you just wait for like 10 seconds it's gonna install to ID because it's gonna recognize that you have PyCharm installed you're gonna press that one and then you're going to go back to PyCharm and you're going to press ok and except then that looks awful but we're gonna go to settings we're gonna go to font again and we're gonna do current editor font we're gonna press that one and then we're gonna change this group box from light to dark medium and we're just gonna press apply now it looks like from the beginning of the video what I like to do as well I like to do view appearance and then enter Zen mode so that it looks pretty clean and then you know you can do everything that that you want from from the from using PI torch so now you have all the basic packages really to start doing some some deep learning if you run into any issues setting up your deep learning environment using anaconda then let me know and I will try my best to help you out so that you can really just start to focus on learning this stuff which is the goal with that said thank you so much for watching the video I hope you find it useful and hope to see you in the next video you [Music]

Original Description

In this video we will set up a Pytorch deep learning environment by installing Anaconda and PyCharm so that you have everything that you need so you can focus on the important stuff: coding and learning about machine learning! If you are just starting out then do not focus on the irrelevant parts, which is the IDE that you use etc. Just a small tip that I feel have benefited me :) ❤️ Support the channel ❤️ https://www.youtube.com/channel/UCkzW5JSFwvKRjXABI-UTAkQ/join Paid Courses I recommend for learning (affiliate links, no extra cost for you): ⭐ Machine Learning Specialization https://bit.ly/3hjTBBt ⭐ Deep Learning Specialization https://bit.ly/3YcUkoI 📘 MLOps Specialization http://bit.ly/3wibaWy 📘 GAN Specialization https://bit.ly/3FmnZDl 📘 NLP Specialization http://bit.ly/3GXoQuP ✨ Free Resources that are great: NLP: https://web.stanford.edu/class/cs224n/ CV: http://cs231n.stanford.edu/ Deployment: https://fullstackdeeplearning.com/ FastAI: https://www.fast.ai/ 💻 My Deep Learning Setup and Recording Setup: https://www.amazon.com/shop/aladdinpersson GitHub Repository: https://github.com/aladdinpersson/Machine-Learning-Collection ✅ One-Time Donations: Paypal: https://bit.ly/3buoRYH ▶️ You Can Connect with me on: Twitter - https://twitter.com/aladdinpersson LinkedIn - https://www.linkedin.com/in/aladdin-persson-a95384153/ Github - https://github.com/aladdinpersson
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Aladdin Persson · Aladdin Persson · 0 of 60

← Previous Next →
1 computeCost.m Linear Regression Cost Function - Machine Learning
computeCost.m Linear Regression Cost Function - Machine Learning
Aladdin Persson
2 gradientDescent.m Gradient Descent Implementation -  Machine Learning
gradientDescent.m Gradient Descent Implementation - Machine Learning
Aladdin Persson
3 Neural Network from scratch - Part 1 (Standard Notation)
Neural Network from scratch - Part 1 (Standard Notation)
Aladdin Persson
4 Neural Network from scratch - Part 2 (Forward Propagation)
Neural Network from scratch - Part 2 (Forward Propagation)
Aladdin Persson
5 Neural Network from scratch - Part 3 (Backward Propagation)
Neural Network from scratch - Part 3 (Backward Propagation)
Aladdin Persson
6 Neural Network from scratch - Part 4 (With Python)
Neural Network from scratch - Part 4 (With Python)
Aladdin Persson
7 sigmoid.m - Programming Assignment 2 Machine Learning
sigmoid.m - Programming Assignment 2 Machine Learning
Aladdin Persson
8 costFunction.m - Programming Assignment 2 Machine Learning
costFunction.m - Programming Assignment 2 Machine Learning
Aladdin Persson
9 predict.m - Programming Assignment 2 Machine Learning
predict.m - Programming Assignment 2 Machine Learning
Aladdin Persson
10 costFunctionReg.m - Programming Assignment 2 Machine Learning
costFunctionReg.m - Programming Assignment 2 Machine Learning
Aladdin Persson
11 lrCostFunction.m - Programming Assignment 3 Machine Learning
lrCostFunction.m - Programming Assignment 3 Machine Learning
Aladdin Persson
12 oneVsAll.m - Programming Assignment 3 Machine Learning
oneVsAll.m - Programming Assignment 3 Machine Learning
Aladdin Persson
13 predictOneVsAll.m - Programming Assignment 3 Machine Learning
predictOneVsAll.m - Programming Assignment 3 Machine Learning
Aladdin Persson
14 predict.m - Programming Assignment 3 Machine Learning
predict.m - Programming Assignment 3 Machine Learning
Aladdin Persson
15 Caesar Cipher Encryption and Decryption with example
Caesar Cipher Encryption and Decryption with example
Aladdin Persson
16 Cryptography: Caesar Cipher Python
Cryptography: Caesar Cipher Python
Aladdin Persson
17 Vigenere Cipher Explained (with Example)
Vigenere Cipher Explained (with Example)
Aladdin Persson
18 Cryptography: Vigenere Cipher Python
Cryptography: Vigenere Cipher Python
Aladdin Persson
19 Hill Cipher Explained (with Example)
Hill Cipher Explained (with Example)
Aladdin Persson
20 Cryptography: Hill Cipher Python
Cryptography: Hill Cipher Python
Aladdin Persson
21 Interval Scheduling Greedy Algorithm: Python
Interval Scheduling Greedy Algorithm: Python
Aladdin Persson
22 Weighted Interval Scheduling Algorithm Explained
Weighted Interval Scheduling Algorithm Explained
Aladdin Persson
23 Weighted Interval Scheduling Python Code
Weighted Interval Scheduling Python Code
Aladdin Persson
24 Sequence Alignment | Needleman Wunsch Algorithm
Sequence Alignment | Needleman Wunsch Algorithm
Aladdin Persson
25 Sequence Alignment | Needleman Wunsch in Python
Sequence Alignment | Needleman Wunsch in Python
Aladdin Persson
26 Codility BinaryGap Python
Codility BinaryGap Python
Aladdin Persson
27 Codility CyclicRotation Python
Codility CyclicRotation Python
Aladdin Persson
28 Derivation Linear Regression with Gradient Descent
Derivation Linear Regression with Gradient Descent
Aladdin Persson
29 Linear Regression Gradient Descent From Scratch in Python
Linear Regression Gradient Descent From Scratch in Python
Aladdin Persson
30 Pytorch Neural Network example
Pytorch Neural Network example
Aladdin Persson
31 Pytorch CNN example (Convolutional Neural Network)
Pytorch CNN example (Convolutional Neural Network)
Aladdin Persson
32 Pytorch LeNet implementation from scratch
Pytorch LeNet implementation from scratch
Aladdin Persson
33 Pytorch VGG implementation from scratch
Pytorch VGG implementation from scratch
Aladdin Persson
34 Pytorch GoogLeNet / InceptionNet implementation from scratch
Pytorch GoogLeNet / InceptionNet implementation from scratch
Aladdin Persson
35 How to save and load models in Pytorch
How to save and load models in Pytorch
Aladdin Persson
36 How to build custom Datasets for Images in Pytorch
How to build custom Datasets for Images in Pytorch
Aladdin Persson
37 Pytorch Transfer Learning and Fine Tuning Tutorial
Pytorch Transfer Learning and Fine Tuning Tutorial
Aladdin Persson
38 Pytorch Data Augmentation using Torchvision
Pytorch Data Augmentation using Torchvision
Aladdin Persson
39 Pytorch Quick Tip: Weight Initialization
Pytorch Quick Tip: Weight Initialization
Aladdin Persson
40 Pytorch Quick Tip: Using a Learning Rate Scheduler
Pytorch Quick Tip: Using a Learning Rate Scheduler
Aladdin Persson
41 Pytorch ResNet implementation from Scratch
Pytorch ResNet implementation from Scratch
Aladdin Persson
42 Pytorch TensorBoard Tutorial
Pytorch TensorBoard Tutorial
Aladdin Persson
43 Pytorch DCGAN Tutorial (See description for updated video)
Pytorch DCGAN Tutorial (See description for updated video)
Aladdin Persson
44 Naive Bayes from Scratch - Machine Learning Python
Naive Bayes from Scratch - Machine Learning Python
Aladdin Persson
45 Spam Classifier using Naive Bayes in Python
Spam Classifier using Naive Bayes in Python
Aladdin Persson
46 K-Nearest Neighbor from scratch - Machine Learning Python
K-Nearest Neighbor from scratch - Machine Learning Python
Aladdin Persson
47 Linear Regression Normal Equation Python
Linear Regression Normal Equation Python
Aladdin Persson
48 SVM from Scratch - Machine Learning Python (Support Vector Machine)
SVM from Scratch - Machine Learning Python (Support Vector Machine)
Aladdin Persson
49 Neural Network from Scratch - Machine Learning Python
Neural Network from Scratch - Machine Learning Python
Aladdin Persson
50 Pytorch RNN example (Recurrent Neural Network)
Pytorch RNN example (Recurrent Neural Network)
Aladdin Persson
51 Pytorch Bidirectional LSTM example
Pytorch Bidirectional LSTM example
Aladdin Persson
52 Pytorch Text Generator with character level LSTM
Pytorch Text Generator with character level LSTM
Aladdin Persson
53 Logistic Regression from Scratch - Machine Learning Python
Logistic Regression from Scratch - Machine Learning Python
Aladdin Persson
54 K-Means Clustering from Scratch - Machine Learning Python
K-Means Clustering from Scratch - Machine Learning Python
Aladdin Persson
55 Pytorch Torchtext Tutorial 1: Custom Datasets and loading JSON/CSV/TSV files
Pytorch Torchtext Tutorial 1: Custom Datasets and loading JSON/CSV/TSV files
Aladdin Persson
56 Pytorch Torchtext Tutorial 2: Built in Datasets with Example
Pytorch Torchtext Tutorial 2: Built in Datasets with Example
Aladdin Persson
57 Pytorch Torchtext Tutorial 3: From Textfiles to Dataset
Pytorch Torchtext Tutorial 3: From Textfiles to Dataset
Aladdin Persson
58 Paper Review: Sequence to Sequence Learning with Neural Networks
Paper Review: Sequence to Sequence Learning with Neural Networks
Aladdin Persson
59 Pytorch Seq2Seq Tutorial for Machine Translation
Pytorch Seq2Seq Tutorial for Machine Translation
Aladdin Persson
60 Pytorch Seq2Seq with Attention for Machine Translation
Pytorch Seq2Seq with Attention for Machine Translation
Aladdin Persson

This video teaches how to set up a deep learning environment using Anaconda and PyCharm, allowing users to focus on coding and learning machine learning. It covers installation, environment creation, and configuration for PyTorch and Python.

Key Takeaways
  1. Download and install Anaconda
  2. Download and install PyCharm
  3. Create a new environment using Conda
  4. Install PyTorch and Python in the environment
  5. Configure PyCharm to use the environment
  6. Create a new project in PyCharm
  7. Test PyTorch installation
💡 Using Anaconda and PyCharm simplifies the process of setting up a deep learning environment and allows for easy management of different environments and packages.

Related Reads

Up next
RNNs Explained in 60 Seconds #ai #coding #machinelearning
Ascent
Watch →