Skip to content

Update project settings #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
version: 2

sphinx:
fail_on_warning: true

python:
version: 3.8
install:
- requirements: requirements.txt
- requirements: docs/requirements.txt
# Equivalent to 'pip install .'
- method: pip
path: .

sphinx:
fail_on_warning: true
# Equivalent to 'pip install .[docs]'
- method: pip
path: .
extra_requirements:
- docs
1 change: 0 additions & 1 deletion banchmarks/instant-ngp
Submodule instant-ngp deleted from 25dec3
Empty file removed docs/requirements.txt
Empty file.
22 changes: 22 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Examples using nerfacc

## Installation

Extra dependencies are needed.
You should make sure that you are using version of pytorch that support CUDA 11.

```
pip install torch --extra-index-url https://download.pytorch.org/whl/cu113
```

Then install via pip

```
pip install nerfacc[examples]
```

To install locally

```
pip install -e .[examples]
```
5 changes: 0 additions & 5 deletions examples/requirements.txt

This file was deleted.

26 changes: 25 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "nerfacc"
version = "0.0.3"
authors = [{name = "Ruilong", email = "[email protected]"}]
dynamic = ["version", "description"]
license = { text="MIT" }
requires-python = ">=3.8"
dependencies = [
"ninja>=1.10.2.3",
"pybind11>=2.10.0",
"torch>=1.12.1"
]

[project.optional-dependencies]
# for example scripts
examples = [
"tinycudann @ git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch",
"opencv-python",
"imageio",
"numpy",
"tqdm",
]

# for documentation
docs = []
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

8 changes: 0 additions & 8 deletions setup.py

This file was deleted.

3 changes: 2 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
conda create -n nerfacc python=3.9 -y
conda activate nerfacc
pip install -r requirements.txt
conda install pytorch cudatoolkit=11.3 -c pytorch -y
pip install -e .