From e43d38e34e5ef499e571343c6541ee8aa14bab87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Zjawi=C5=84ski?= Date: Fri, 13 Nov 2020 00:05:41 +0100 Subject: [PATCH] Update README.md - Add instructions for PYTHONPATH check before deps installation - Add a fix for non-GPU config --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b3703b0..e9368e3 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,16 @@ https://docs.conda.io/projects/conda/en/latest/user-guide/install/download.html conda create --name hack_env conda activate hack_env ``` +### Make sure proper python PATH is loaded +Unix +``` + which python +``` +Windows +``` +for %i in (python.exe) do @echo. %~$PATH:i +``` +Expected result: `PATH_TO_CONDA/envs/ENV_NAME/bin/python` ### Install pytorch with conda https://pytorch.org/get-started/locally/ ``` @@ -25,6 +35,13 @@ https://pytorch.org/get-started/locally/ pip install -r requirements.txt ``` +### Important notes! +- If you are not using GPU (CUDA incompatible GPU) you may need to specify the number of GPUs manually instead of leaving the default `-1`: += in config.yaml +``` +num_of_gpus: 0 +``` + ### Useful tips - Useful pl.Trainer() parameters: - gpus=-1 - use all gpus available on your machine @@ -53,4 +70,3 @@ https://pytorch.org/get-started/locally/ - https://pytorch.org/hub/ - List of all tools in PyTorch ecosystem: - https://pytorch.org/ecosystem/ -