This project is best run inside a virtual environment so its Python packages stay isolated from your system installation. Inside the project root:
-
Create and activate a virtual environment:
py -3.12 -m venv .venv .\.venv\Scripts\Activate.ps1
-
Upgrade
pipand install the project dependencies:python -m pip install --upgrade pip pip install -r requirements.txt
-
Run the project entry point:
python main.py
- Use a Python version supported by the PyTorch build you install. In practice, Python 3.11 or 3.12 is usually the safest choice for this project.
torchinstallation depends on your Python version and whether you want CPU or GPU support. If the default install fails, follow the official PyTorch installation instructions for your platform.