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