|
Download docs/installation.md from KirubaLS/parcelguard-reference-defect-detection: direct link, hf CLI and curl.
- Browser
- Download file 658 Bytes
-
https://huggingface.co/KirubaLS/parcelguard-reference-defect-detection/resolve/main/docs/installation.md
- Command line
-
hf download hf://KirubaLS/parcelguard-reference-defect-detection/docs/installation.md
-
curl -L -o installation.md https://huggingface.co/KirubaLS/parcelguard-reference-defect-detection/resolve/main/docs/installation.md
658 Bytes
| # 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())" | |
| ``` | |