mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 07:18:57 +08:00
Avoid boolean flag auto conversion (#929)
This commit is contained in:
1 parent
c5c980dd4d
commit
ee6b007155
3 files changed
+5
-3
No files matched your search
@@ -185,7 +185,9 @@ method_configs["tensorf"] = Config(
|
|||||||
)
|
)
|
||||||
|
|
||||||
AnnotatedBaseConfigUnion = tyro.conf.SuppressFixed[ # Don't show unparseable (fixed) arguments in helptext.
|
AnnotatedBaseConfigUnion = tyro.conf.SuppressFixed[ # Don't show unparseable (fixed) arguments in helptext.
|
||||||
tyro.extras.subcommand_type_from_defaults(defaults=method_configs, descriptions=descriptions)
|
tyro.conf.FlagConversionOff[
|
||||||
|
tyro.extras.subcommand_type_from_defaults(defaults=method_configs, descriptions=descriptions)
|
||||||
|
]
|
||||||
]
|
]
|
||||||
"""Union[] type over config types, annotated with default instances for use with
|
"""Union[] type over config types, annotated with default instances for use with
|
||||||
tyro.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
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ dependencies = [
|
|||||||
"aiortc==1.3.2",
|
"aiortc==1.3.2",
|
||||||
"appdirs>=1.4",
|
"appdirs>=1.4",
|
||||||
"av==9.2.0",
|
"av==9.2.0",
|
||||||
"tyro>=0.3.23",
|
"tyro>=0.3.31",
|
||||||
"gdown==4.5.1",
|
"gdown==4.5.1",
|
||||||
"ninja==1.10.2.3",
|
"ninja==1.10.2.3",
|
||||||
"functorch==0.2.1",
|
"functorch==0.2.1",
|
||||||
|
|||||||
+1
-1
@@ -120,7 +120,7 @@ Commands = Union[
|
|||||||
def entrypoint():
|
def entrypoint():
|
||||||
"""Entrypoint for use with pyproject scripts."""
|
"""Entrypoint for use with pyproject scripts."""
|
||||||
tyro.extras.set_accent_color("bright_yellow")
|
tyro.extras.set_accent_color("bright_yellow")
|
||||||
tyro.cli(Commands).main()
|
tyro.cli(tyro.conf.FlagConversionOff[Commands]).main()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in new issue
Block a user