mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 23:38:42 +08:00
Setting near and far with scene bounds collider. Also LR schedules. (#74)
* some initial cuda code as I learn. using git to save progress. * first cuda kernel for ray sampling that mostly works * cleaning up code. working on lr. structs for scene bounds aabb * added scene bounds collider code * updated setup * setup * setup * black * including some files * exporting env variable * new file * git workflows * github actions * github actions * github actions * removing env var
This commit is contained in:
1 parent
752df417ce
commit
676beebb14
45 files changed
+803
-8354
No files matched your search
@@ -51,6 +51,15 @@ def get_git_root(path, dirs=(".git",), default=None):
|
||||
return default
|
||||
|
||||
|
||||
def get_project_root():
|
||||
"""Return the project root directory from an environment variable.
|
||||
# TODO: handle this better and report user error
|
||||
"""
|
||||
project_root = os.getenv("PROJECT_ROOT")
|
||||
assert project_root is not None, "Please set PROJECT_ROOT to the root directory of this repo."
|
||||
return project_root
|
||||
|
||||
|
||||
def get_absolute_path(path, proj_root_func=get_git_root):
|
||||
"""
|
||||
Returns the full, absolute path.
|
||||
|
||||
Reference in new issue
Block a user