Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from mgrankin/conda
Browse files Browse the repository at this point in the history
Add conda environment spec
  • Loading branch information
krrish94 authored Apr 16, 2020
2 parents 34b6044 + 5478816 commit 73beb0d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,23 @@ Optimizing a NeRF takes between a few hours and a day or two (depending on resol

## How to train your NeRF super-quickly!

To train a "full" NeRF model (i.e., using 3D coordinates as well as ray directions, and the hierarchical sampling procedure), first setup dependencies. In a new `conda` or `virtualenv` environment, run
To train a "full" NeRF model (i.e., using 3D coordinates as well as ray directions, and the hierarchical sampling procedure), first setup dependencies.

### Using pip
In a new `conda` or `virtualenv` environment, run
using pip
```bash
pip install -r requirements.txt
```

**Importantly**, install [torchsearchsorted](https://github.com/aliutkus/torchsearchsorted) by following instructions from their `README`.

### Alternatively, using conda
```bash
cd nerf-pytorch
conda env create
conda activate nerf
```

Once everything is setup, to run experiments, first edit `config/lego.yml` to specify your own parameters.

The training script can be invoked by running
Expand Down
21 changes: 21 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: nerf
channels:
- pytorch
- conda-forge
- defaults
dependencies:
- python>=3.7
- pip
- pytorch>=1.3
- cuda100
- cudatoolkit>=10.1
- cudatoolkit-dev
- imageio
- numpy
- pyyaml
- tensorboard
- torchvision
- tqdm
- pip:
- opencv-python-headless
- "git+https://github.com/aliutkus/torchsearchsorted#egg=torchsearchsorted"

0 comments on commit 73beb0d

Please sign in to comment.