Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: not enough values to unpack (expected 1, got 0) #15

Open
lvmingzhe opened this issue Jan 3, 2025 · 3 comments
Open

ValueError: not enough values to unpack (expected 1, got 0) #15

lvmingzhe opened this issue Jan 3, 2025 · 3 comments

Comments

@lvmingzhe
Copy link

Hi, thanks for your great work!
When I try to run 'ds-run nice-slam --data data/replica/Replica/office0 --data-type replica'
This error occurs:

(xrdslam) hello@hello-PowerEdge-T640:/media/hello/data1/code/xrdslam$ ds-run nice-slam --data data/replica/Replica/office0 --data-type replica
Traceback (most recent call last):
File "/media/hello/data1/miniconda3/envs/xrdslam/bin/ds-run", line 8, in
sys.exit(entrypoint())
File "/media/hello/data1/code/xrdslam/scripts/run.py", line 29, in entrypoint
tyro.cli(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_cli.py", line 166, in cli
output = _cli_impl(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_cli.py", line 380, in _cli_impl
parser_spec = _parsers.ParserSpecification.from_callable_or_type(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
field_out = handle_field(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 348, in handle_field
subparsers_attempt = SubparsersSpecification.from_field(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 562, in from_field
subparser = ParserSpecification.from_callable_or_type(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
field_out = handle_field(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 377, in handle_field
return ParserSpecification.from_callable_or_type(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
field_out = handle_field(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 377, in handle_field
return ParserSpecification.from_callable_or_type(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
field_out = handle_field(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 377, in handle_field
return ParserSpecification.from_callable_or_type(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
field_out = handle_field(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 348, in handle_field
subparsers_attempt = SubparsersSpecification.from_field(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 458, in from_field
[
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_parsers.py", line 460, in
and _fields.is_struct_type(cast(type, o), _singleton.MISSING_NONPROP)
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_unsafe_cache.py", line 43, in wrapped_f
out = f(*args, **kwargs)
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_fields.py", line 197, in is_struct_type
list_or_error = field_list_from_type_or_callable(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/_fields.py", line 234, in field_list_from_type_or_callable
is_primitive = ConstructorRegistry._is_primitive_type(f, set())
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/constructors/_registry.py", line 131, in _is_primitive_type
cls.get_primitive_spec(
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/constructors/_registry.py", line 152, in get_primitive_spec
maybe_spec = spec_factory(type_info)
File "/media/hello/data1/miniconda3/envs/xrdslam/lib/python3.10/site-packages/tyro/constructors/_primitive_spec.py", line 338, in sequence_rule
(contained_type,) = get_args(type_info.type)
ValueError: not enough values to unpack (expected 1, got 0)

@lvmingzhe
Copy link
Author

(xrdslam) hello@hello-PowerEdge-T640:/media/hello/data1/code/xrdslam$ ls data/replica/Replica/office0
results traj.txt

@lvmingzhe
Copy link
Author

(xrd2) hello@hello-PowerEdge-T640:/media/hello/data1/code/xrd2$ ds-download-data -h
usage: ds-download-data [-h] [--save-dir PATH]
                        [--capture-name
{f1_desk,f1_desk2,f1_room,f2_xyz,f3_office,replica,neural_rgbd_data,apartment,mh01,mh02,mh03,mh04,mh05,v101,v102,v103,v201,v20
2,v203,all}]

Download the dataset.

╭─ options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ -h, --help             show this help message and exit                                                                     │
│ --save-dir PATH        The directory to save the dataset to (default: data)                                                │
│ --capture-name                                                                                                             │
│ {f1_desk,f1_desk2,f1_room,f2_xyz,f3_office,replica,neural_rgbd_data,apartment,mh01,mh02,mh03,mh04,mh05,v101,v102,v103,v20… │
│                        (default: f1_desk)                                                                                  │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
(xrd2) hello@hello-PowerEdge-T640:/media/hello/data1/code/xrd2$ ds-run -h
Traceback (most recent call last):
  File "/media/hello/data1/miniconda3/envs/xrd2/bin/ds-run", line 8, in <module>
    sys.exit(entrypoint())
  File "/media/hello/data1/code/xrd2/scripts/run.py", line 29, in entrypoint
    tyro.cli(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_cli.py", line 166, in cli
    output = _cli_impl(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_cli.py", line 380, in _cli_impl
    parser_spec = _parsers.ParserSpecification.from_callable_or_type(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
    field_out = handle_field(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 348, in handle_field
    subparsers_attempt = SubparsersSpecification.from_field(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 562, in from_field
    subparser = ParserSpecification.from_callable_or_type(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
    field_out = handle_field(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 377, in handle_field
    return ParserSpecification.from_callable_or_type(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
    field_out = handle_field(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 377, in handle_field
    return ParserSpecification.from_callable_or_type(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
    field_out = handle_field(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 377, in handle_field
    return ParserSpecification.from_callable_or_type(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 112, in from_callable_or_type
    field_out = handle_field(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 348, in handle_field
    subparsers_attempt = SubparsersSpecification.from_field(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 458, in from_field
    [
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_parsers.py", line 460, in <listcomp>
    and _fields.is_struct_type(cast(type, o), _singleton.MISSING_NONPROP)
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_unsafe_cache.py", line 43, in wrapped_f
    out = f(*args, **kwargs)
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_fields.py", line 197, in is_struct_type
    list_or_error = field_list_from_type_or_callable(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/_fields.py", line 234, in field_list_from_type_or_callable
    is_primitive = ConstructorRegistry._is_primitive_type(f, set())
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/constructors/_registry.py", line 131, in _is_primitive_type
    cls.get_primitive_spec(
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/constructors/_registry.py", line 152, in get_primitive_spec
    maybe_spec = spec_factory(type_info)
  File "/media/hello/data1/miniconda3/envs/xrd2/lib/python3.10/site-packages/tyro/constructors/_primitive_spec.py", line 338, in sequence_rule
    (contained_type,) = get_args(type_info.type)
ValueError: not enough values to unpack (expected 1, got 0)
(xrd2) hello@hello-PowerEdge-T640:/media/hello/data1/code/xrd2$ ds-eval -h
usage: ds-eval [-h] [OPTIONS]

Evaluate trajectory accuracy and 3D reconstruction quality.

╭─ options ──────────────────────────────────────────────────────────────╮
│ -h, --help              show this help message and exit                │
│ --output-dir PATH       Path to xrdslam running result. (required)     │
│ --gt-mesh {None}|STR    Path to groundtruth mesh file. (default: None) │
│ --eval-traj, --no-eval-traj                                            │
│                         (default: True)                                │
│ --eval-recon, --no-eval-recon                                          │
│                         (default: True)                                │
│ --correct-scale, --no-correct-scale                                    │
│                         (default: False)                               │
│ --distance-thresh FLOAT                                                │
│                         (default: 0.01)                                │
│ --eval-2d-metric, --no-eval-2d-metric                                  │
│                         (default: True)                                │
╰────────────────────────────────────────────────────────────────────────╯
(xrd2) hello@hello-PowerEdge-T640:/media/hello/data1/code/xrd2$ ds-viewer -h
usage: ds-viewer [-h] [--config.vis-dir PATH] [--config.save-rendering {True,False}] [--config.algorithm-name {None}|STR]

Start the offline viewer.

╭─ options ──────────────────────────────────────────────────────────────────╮
│ -h, --help              show this help message and exit                    │
╰────────────────────────────────────────────────────────────────────────────╯
╭─ config options ───────────────────────────────────────────────────────────╮
│ --config.vis-dir PATH   Offline data path from xrdslam. (default: outputs) │
│ --config.save-rendering {True,False}                                       │
│                         Save the rendering result or not. (default: True)  │
│ --config.algorithm-name {None}|STR                                         │
│                         (default: None)                                    │
╰────────────────────────────────────────────────────────────────────────────╯

@1999XIAOZHANG
Copy link

Did you solve it? I'm also encountering the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants