diff --git a/nerfstudio/configs/method_configs.py b/nerfstudio/configs/method_configs.py index 377c782aa..2423984c7 100644 --- a/nerfstudio/configs/method_configs.py +++ b/nerfstudio/configs/method_configs.py @@ -185,7 +185,9 @@ method_configs["tensorf"] = Config( ) 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 tyro.cli(). Allows the user to pick between one of several base configurations, and diff --git a/pyproject.toml b/pyproject.toml index 58955d64e..a7f601453 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ "aiortc==1.3.2", "appdirs>=1.4", "av==9.2.0", - "tyro>=0.3.23", + "tyro>=0.3.31", "gdown==4.5.1", "ninja==1.10.2.3", "functorch==0.2.1", diff --git a/scripts/exporter.py b/scripts/exporter.py index 55a8a1b28..b251f50ae 100644 --- a/scripts/exporter.py +++ b/scripts/exporter.py @@ -120,7 +120,7 @@ Commands = Union[ def entrypoint(): """Entrypoint for use with pyproject scripts.""" tyro.extras.set_accent_color("bright_yellow") - tyro.cli(Commands).main() + tyro.cli(tyro.conf.FlagConversionOff[Commands]).main() if __name__ == "__main__":