What is this?
It is a useful PyTorch Training Program I found in GitHub.
It can help you become familiar with using PyTorch and quickly build deep learning projects.
https://github.com/mrdbourke/pytorch-deep-learning/tree/main
How to use it?
Here’s a simple step-by-step guide for beginners on how to download and run a project from GitHub.
Step 1: Create a GitHub Account (Optional)
- Why? While you can download projects without an account, having one allows you to contribute to projects and keep track of repositories you’re interested in.
- How?
- Go to GitHub.
- Click on “Sign up” in the top-right corner.
- Follow the instructions to create your account.
Step 2: Install Git (Optional)
- Why? Git is a tool that allows you to manage and track changes in your projects. It’s helpful for downloading (cloning) repositories.
- How?
- Visit the Git downloads page.
- Choose your operating system (Windows, macOS, Linux) and follow the installation instructions.
Note: If you prefer not to install Git, you can download projects directly as ZIP files. This guide will cover both methods.
Step 3: Find the Project You Want to Download
- Go to GitHub and use the search bar at the top to find the project you’re interested in. Here I have provided the tutorial link above.
- Click on the project repository from the search results. A repository is like a folder that contains all the project files.
Step 4: Download the Project
Option 1: Using Git (Cloning)
- On the project’s main page, look for a green button labeled “Code” and click on it.
- A dropdown will appear with a URL. Copy this URL.
- Open your computer’s command prompt (Windows) or terminal (macOS/Linux). (if you have questions, ask ChatGPT)
- Navigate to the folder where you want to save the project using the
cd
command. For example: cd Desktop - Type the following command and press Enter: git clone [URL]. Here is should be: git clone https://github.com/mrdbourke/pytorch-deep-learning.git
- Git will download the project into a new folder on your computer.
Option 2: Downloading as a ZIP File
- On the project’s main page, click the green “Code” button.
- In the dropdown, click “Download ZIP”.
- Once downloaded, locate the ZIP file on your computer (usually in the Downloads folder).
- Right-click the ZIP file and select “Extract All” to unzip it into a folder.
Step 5: Open the Project
- Ensure you have Python installed. You can download it from python.org.
- Open the command prompt or terminal, navigate to the project folder, and run.
- I recommend you use Anaconda3 to help manage the python environment, and use Pycharm or JupyterLab to open the tutorials.
Step 6: Install Dependencies
- Many projects require additional libraries or packages to work correctly. These are called dependencies.
- How? Look for a file like
README.md
or documentation in the project folder. It usually contains instructions on how to install dependencies.- For example, if there’s a
requirements.txt
file (common in Python projects), you can install dependencies by running: pip install -r requirements.txt
- For example, if there’s a