For normal users use the "Normal Install" option, for people who want to test DirectML use the "DirectML Install"
-
Install Python
-
Clone this repo
-
Install prerequisites
pip install --upgrade numpy tqdm Pillow
-
Install Pytroch
-
Run the scoring system
cd SimpleMLBenchmark
python main.py
Follow the steps below to get set up with PyTorch on DirectML.
-
Download and install Python 3.8.
-
Install conda
-
Clone this repo.
-
Create conda env
conda create --name pydml -y
conda activate pydml
- Install prerequisites
pip install torchvision==0.9.0
pip uninstall torch
pip install pytorch-directml
Note: The torchvision package automatically installs the torch==1.8.0 dependency, but this is not needed and will cause collisions with the pytorch-directml package. We must uninstall the torch package after installing requirements.
- Install other libraries
pip install --upgrade numpy tqdm Pillow
- Run the scoring system
cd SimpleMLBenchmark
python main.py
python main.py
python main.py --cuda
python main.py --dml
python main.py --apple