Skip to content

Update for pypi #2

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
5 changes: 5 additions & 0 deletions examples/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
opencv-python
imageio
numpy
tqdm
18 changes: 12 additions & 6 deletions nerfacc/cuda/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import glob
import os
from subprocess import DEVNULL, call
from rich.console import Console

console = Console()

from torch.utils.cpp_extension import load

Expand All @@ -25,11 +28,14 @@ def cuda_toolkit_available():

extra_cflags = ["-O3"]
extra_cuda_cflags = ["-O3"]
_C = load(
name="nerfacc_cuda",
sources=sources,
extra_cflags=extra_cflags,
extra_cuda_cflags=extra_cuda_cflags,
)
with console.status(
"[bold yellow]Setting up CUDA (This may take a few minutes the first time)", spinner="bouncingBall"
):
_C = load(
name="nerfacc_cuda",
sources=sources,
extra_cflags=extra_cflags,
extra_cuda_cflags=extra_cuda_cflags,
)

__all__ = ["_C"]
12 changes: 2 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,10 @@ requires-python = ">=3.8"
dependencies = [
"ninja>=1.10.2.3",
"pybind11>=2.10.0",
"torch>=1.12.1"
"torch>=1.12.1",
"rich>=12"
]

[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 = []