To use the Pytorch Experiment Template, one needs to set up a conda environment with the right dependencies. This can be achieved as follows:
-
Point your web-browser to miniforge
-
Find and download a suitable mini forge installer for your OS. The next few steps assume Linux and MacOS
-
Go to the directory in which you have downloaded the minforge installer and run:
bash <mini-forge installer>
-
Follow the setup to install the environment.
-
Once done, activate conda using
conda activate
, note that you might need to resource your .bashrc usingsource ~/.bashrc
to get access to conda if you are using the same terminal as the one used to install conda. -
Create a new conda environment using
conda create -n pytorch-experiments python=3.7
-
Once done, run
conda install git tqdm rich matplotlib regex ftfy requests seaborn GPUtil scipy;
Follow through the process to finish installing these packages.
8.Then go to the Pytorch installation page and run the appropriate commands to install pytorch on your machine. The command is not given here as it depends on your OS, CPU/GPU type and CUDA version (if any). This one will take a while.
- You should now be able to run the default resnet18, cifar10 experiment using
python train.py
.
If you have any problems or further questions please post on the slack channel "#pytorch-debug"