Skip to content

Latest commit

 

History

History
 
 

067

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

How To Install and Use PyTorch

YouTube Tutorial

Create a virtual environment (Optionally)

$ python3 -m venv .venv

Activate virtual environment

$ source .venv/bin/activate

Install PyTorch pip package (macOS)

$ pip install torch torchvision

On Linux and Windows, use the following commands for a CPU-only build

$ pip install torch==1.7.1+cpu torchvision==0.8.2+cpu -f https://download.pytorch.org/whl/torch_stable.html

Create a JSON file to convert neural network output to a human-readable class name

Create Python script to classify an image

Run classifier

# python classify.py dog.jpg