File size: 658 Bytes
4cf5f4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Installation

## 1. Create an environment

Use a Python version supported by the selected PyTorch release.

## 2. Install PyTorch and torchvision

Install a compatible pair of PyTorch and torchvision for your platform.
For GPU use, select the CUDA build supported by your NVIDIA driver.
For CPU use, select the CPU build.

Use the official selector:
https://pytorch.org/get-started/locally/

## 3. Install remaining dependencies

```bash
pip install -r requirements.txt
```

## 4. Verify installation

```bash
python -c "import torch, torchvision, cv2, PIL; print(torch.__version__, torchvision.__version__); print('CUDA:', torch.cuda.is_available())"
```