📝 add installation instruction for pip

master
otthorn 3 years ago
parent 27c7ef87f4
commit 42678ac5bb

@ -9,7 +9,7 @@ It is GPU only, there is support for CPU.
It cannot run my lab computer: NVIDIA GeForce RTX 2060 (6GiB of VRAM) It cannot run my lab computer: NVIDIA GeForce RTX 2060 (6GiB of VRAM)
and thus need to be run on the cluster which has more VRAM. and thus need to be run on the cluster which has more VRAM.
## Installation ## Installation (using conda)
Please refer to the original Pytorch3D project, here is a quick summary: Please refer to the original Pytorch3D project, here is a quick summary:
@ -33,3 +33,31 @@ To deactivate the conda env
``` ```
conda deactivate conda deactivate
``` ```
## Installation (using pip and virtualenv)
This requires `Python>=3.8`
First, clone the repo
```
git clone https://gitea.auro.re/otthorn/nerf_tutorial.git
cd nerf_tutorial
```
Then install pytorch3d inside a virtualenv
```
virtualenv -p /usr/bin/python3.8 pytorch3d
source pytorch3d/bin/activate
pip3 install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu102_pyt171/download.html
pip3 install torch torchvision
```
You can then run the code
```
python3 main.py
```
To deactivate the virtualenv
```
deactivate
```

Loading…
Cancel
Save