Update README.md
- Add instructions for PYTHONPATH check before deps installation - Add a fix for non-GPU config
This commit is contained in:
1 parent
f88ea00930
commit
e43d38e34e
1 file changed
+17
-1
@@ -10,6 +10,16 @@ https://docs.conda.io/projects/conda/en/latest/user-guide/install/download.html
|
|||||||
conda create --name hack_env
|
conda create --name hack_env
|
||||||
conda activate 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
|
### Install pytorch with conda
|
||||||
https://pytorch.org/get-started/locally/
|
https://pytorch.org/get-started/locally/
|
||||||
```
|
```
|
||||||
@@ -25,6 +35,13 @@ https://pytorch.org/get-started/locally/
|
|||||||
pip install -r requirements.txt
|
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 tips
|
||||||
- Useful pl.Trainer() parameters:
|
- Useful pl.Trainer() parameters:
|
||||||
- <b>gpus=-1</b> - use all gpus available on your machine
|
- <b>gpus=-1</b> - use all gpus available on your machine
|
||||||
@@ -53,4 +70,3 @@ https://pytorch.org/get-started/locally/
|
|||||||
- https://pytorch.org/hub/
|
- https://pytorch.org/hub/
|
||||||
- List of all tools in PyTorch ecosystem:
|
- List of all tools in PyTorch ecosystem:
|
||||||
- https://pytorch.org/ecosystem/
|
- https://pytorch.org/ecosystem/
|
||||||
|
|
||||||
Reference in new issue
Block a user