mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-15 20:33:59 +08:00
feat: improve type hints (#1515)
* feat(plugins/registry): Improve Type Hints * feat(exporter/texture_utils): Improve Type Hints * feat(exporter/tsdf_utils): Improve Type Hints * feat(cameras/camera_utils): Improve Type Hints * feat(cameras/cameras): Improve Type Hints * feat(cameras/rays): Improve Type Hints * fix: add default value for device * fix: ArrayLike type hint
This commit is contained in:
1 parent
7309273d92
commit
4545dcb6b3
6 files changed
+44
-27
No files matched your search
@@ -21,6 +21,7 @@ import typing as t
|
||||
|
||||
from rich.progress import Console
|
||||
|
||||
from nerfstudio.engine.trainer import TrainerConfig
|
||||
from nerfstudio.plugins.types import MethodSpecification
|
||||
|
||||
if sys.version_info < (3, 10):
|
||||
@@ -30,7 +31,7 @@ else:
|
||||
CONSOLE = Console(width=120)
|
||||
|
||||
|
||||
def discover_methods():
|
||||
def discover_methods() -> t.Tuple[t.Dict[str, TrainerConfig], t.Dict[str, str]]:
|
||||
"""
|
||||
Discovers all methods registered using the `nerfstudio.method_configs` entrypoint.
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user