Skip to content

Assertation Error #19

@JacksonTao888

Description

@JacksonTao888

When I try to do the ns-launch --help, the following jumps out:

(nerfstudio) chenxi@chenxi-Z790-Pro-RS:~/nerfiller$ ns-launch --help
/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py:339: UserWarning: The field dataset-names is annotated with type typing.List[str], but the default value {'ficus', 'ship', 'mic', 'chair', 'materials', 'lego', 'hotdog', 'drums'} has type <class 'set'>. We'll try to handle this gracefully, but it may cause unexpected behavior.
warnings.warn(message)
/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py:339: UserWarning: The field dataset-names is annotated with type typing.List[str], but the default value ('village', 'bed') has type <class 'tuple'>. We'll try to handle this gracefully, but it may cause unexpected behavior.
warnings.warn(message)
/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py:339: UserWarning: The field dataset-types is annotated with type typing.List[str], but the default value ('blender', 'matterport') has type <class 'tuple'>. We'll try to handle this gracefully, but it may cause unexpected behavior.
warnings.warn(message)
/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py:339: UserWarning: The field dataset-names is annotated with type typing.List[str], but the default value {'office', 'cat', 'norway', 'bear', 'turtle', 'boot', 'dumptruck', 'drawing', 'backpack', 'billiards'} has type <class 'set'>. We'll try to handle this gracefully, but it may cause unexpected behavior.
warnings.warn(message)
/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py:339: UserWarning: The field inpaint-methods is annotated with type typing.List[str], but the default value ('individual-sd-image', 'individual-lama') has type <class 'tuple'>. We'll try to handle this gracefully, but it may cause unexpected behavior.
warnings.warn(message)
/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py:339: UserWarning: The field dataset-names is annotated with type typing.List[str], but the default value ('norway',) has type <class 'tuple'>. We'll try to handle this gracefully, but it may cause unexpected behavior.
warnings.warn(message)
/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py:339: UserWarning: The field methods is annotated with type typing.List[typing.Tuple[str, str]], but the default value (('grid-prior-du', 'none'),) has type <class 'tuple'>. We'll try to handle this gracefully, but it may cause unexpected behavior.
warnings.warn(message)
Traceback (most recent call last):
File "/home/chenxi/miniconda3/envs/nerfstudio/bin/ns-launch", line 8, in
sys.exit(entrypoint())
File "/home/chenxi/nerfiller/nerfiller/scripts/launch.py", line 80, in entrypoint
main(tyro.cli(Commands))
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_cli.py", line 166, in cli
output = _cli_impl(
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_cli.py", line 380, in _cli_impl
parser_spec = _parsers.ParserSpecification.from_callable_or_type(
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py", line 113, in from_callable_or_type
field_out = handle_field(
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py", line 355, in handle_field
subparsers_attempt = SubparsersSpecification.from_field(
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py", line 579, in from_field
subparser = ParserSpecification.from_callable_or_type(
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py", line 123, in from_callable_or_type
if field_out.lowered.required:
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/functools.py", line 967, in get
val = self.func(instance)
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_arguments.py", line 193, in lowered
_rule_apply_primitive_specs(self, lowered)
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_arguments.py", line 343, in _rule_apply_primitive_specs
lowered.default = spec.str_from_instance(arg.field.default)
File "/home/chenxi/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/constructors/_primitive_spec.py", line 702, in str_from_instance
assert False, (
AssertionError: could not match default value (('grid-prior-du', 'none'),) with any types in union [typing.List[typing.Tuple[str, str]], <class 'tuple'>]

Has anyone met the same problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions