mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-17 21:33:56 +08:00
1 parent
ea591246cb
commit
edbfccccfe
19 files changed
+68
-68
No files matched your search
@@ -20,7 +20,7 @@ from __future__ import annotations
|
||||
|
||||
from typing import Dict
|
||||
|
||||
import dcargs
|
||||
import tyro
|
||||
|
||||
from nerfstudio.configs.base_config import Config, TrainerConfig, ViewerConfig
|
||||
from nerfstudio.configs.config_utils import convert_markup_to_ansi
|
||||
@@ -150,9 +150,9 @@ method_configs["vanilla-nerf"] = Config(
|
||||
)
|
||||
|
||||
|
||||
AnnotatedBaseConfigUnion = dcargs.conf.SuppressFixed[ # Don't show unparseable (fixed) arguments in helptext.
|
||||
dcargs.extras.subcommand_type_from_defaults(defaults=method_configs, descriptions=descriptions)
|
||||
AnnotatedBaseConfigUnion = tyro.conf.SuppressFixed[ # Don't show unparseable (fixed) arguments in helptext.
|
||||
tyro.extras.subcommand_type_from_defaults(defaults=method_configs, descriptions=descriptions)
|
||||
]
|
||||
"""Union[] type over config types, annotated with default instances for use with
|
||||
dcargs.cli(). Allows the user to pick between one of several base configurations, and
|
||||
tyro.cli(). Allows the user to pick between one of several base configurations, and
|
||||
then override values in it."""
|
||||
@@ -21,8 +21,8 @@ from abc import abstractmethod
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Dict, List, Optional, Tuple, Type, Union
|
||||
|
||||
import dcargs
|
||||
import torch
|
||||
import tyro
|
||||
from torch import nn
|
||||
from torch.nn import Parameter
|
||||
from torch.utils.data import Dataset
|
||||
@@ -49,8 +49,8 @@ from nerfstudio.engine.callbacks import TrainingCallback, TrainingCallbackAttrib
|
||||
from nerfstudio.model_components.ray_generators import RayGenerator
|
||||
from nerfstudio.utils.misc import IterableWrapper
|
||||
|
||||
AnnotatedDataParserUnion = dcargs.conf.OmitSubcommandPrefixes[ # Omit prefixes of flags in subcommands.
|
||||
dcargs.extras.subcommand_type_from_defaults(
|
||||
AnnotatedDataParserUnion = tyro.conf.OmitSubcommandPrefixes[ # Omit prefixes of flags in subcommands.
|
||||
tyro.extras.subcommand_type_from_defaults(
|
||||
{
|
||||
"nerfstudio-data": NerfstudioDataParserConfig(),
|
||||
"blender-data": BlenderDataParserConfig(),
|
||||
@@ -61,7 +61,7 @@ AnnotatedDataParserUnion = dcargs.conf.OmitSubcommandPrefixes[ # Omit prefixes
|
||||
prefix_names=False, # Omit prefixes in subcommands themselves.
|
||||
)
|
||||
]
|
||||
"""Union over possible dataparser types, annotated with metadata for dcargs. This is the
|
||||
"""Union over possible dataparser types, annotated with metadata for tyro. This is the
|
||||
same as the vanilla union, but results in shorter subcommand names."""
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
dcargs>=0.2.6
|
||||
sshconf==0.2.5
|
||||
tyro>=0.3.22
|
||||
sshconf==0.2.5
|
||||
@@ -23,7 +23,7 @@ from os.path import expanduser
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
import dcargs
|
||||
import tyro
|
||||
from sshconf import empty_ssh_config_file, read_ssh_config
|
||||
|
||||
|
||||
@@ -135,5 +135,5 @@ def main(
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
dcargs.extras.set_accent_color("bright_yellow")
|
||||
dcargs.cli(main)
|
||||
tyro.extras.set_accent_color("bright_yellow")
|
||||
tyro.cli(main)
|
||||
@@ -17,13 +17,13 @@
|
||||
import sys
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
import dcargs
|
||||
import msgpack
|
||||
import msgpack_numpy
|
||||
import tornado.gen
|
||||
import tornado.ioloop
|
||||
import tornado.web
|
||||
import tornado.websocket
|
||||
import tyro
|
||||
import umsgpack
|
||||
import zmq
|
||||
import zmq.eventloop.ioloop
|
||||
@@ -266,8 +266,8 @@ def run_viewer_bridge_server(zmq_port: int = 6000, websocket_port: int = 7007):
|
||||
|
||||
def main():
|
||||
"""The main entrypoint."""
|
||||
dcargs.extras.set_accent_color("bright_yellow")
|
||||
dcargs.cli(run_viewer_bridge_server)
|
||||
tyro.extras.set_accent_color("bright_yellow")
|
||||
tyro.cli(run_viewer_bridge_server)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user