Skip to content

fix mismatched array sizes during concatenation after gr00t update. - #72

Merged
EverNorif merged 2 commits into
LightwheelAI:mainfrom
gene-su:main
Nov 24, 2025
Merged

EverNorif merged 2 commits into
LightwheelAI:mainfrom
gene-su:main

Conversation

@gene-su

@gene-su gene-su commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

Running policy_inference.py produced the following error:

Traceback (most recent call last):
  File "/home/gene/leisaac/scripts/evaluation/policy_inference.py", line 240, in <module>
    main()
  File "/home/gene/leisaac/scripts/evaluation/policy_inference.py", line 207, in main
    actions = policy.get_action(obs_dict).to(env.device)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gene/leisaac/source/leisaac/leisaac/policy/service_policy_clients.py", line 80, in get_action
    concat_action = np.concatenate(
                    ^^^^^^^^^^^^^^^
ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 2 dimension(s) and the array at index 1 has 3 dimension(s)

@EverNorif

Copy link
Copy Markdown
Collaborator

hi @gene-su, could you describe which commit of GR00T this issue appeared in?
Our code was validated on this commit, and it’s possible that recent updates to GR00T have caused this problem.

@gene-su

gene-su commented Nov 24, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for the quick response. I’m using this commit (currently the latest)

@EverNorif

Copy link
Copy Markdown
Collaborator

@gene-su looks good to me, thanks for your contribution.

@EverNorif EverNorif changed the title fix mismatched array sizes during concatenation fix mismatched array sizes during concatenation after gr00t update. Nov 24, 2025
@EverNorif
EverNorif merged commit 606a9a4 into LightwheelAI:main Nov 24, 2025
1 check passed
harsh-mulodhia pushed a commit to harsh-mulodhia/leisaac that referenced this pull request Jun 24, 2026
…ightwheelAI#72)

* fix mismatched array sizes during concatenation

* add specific version.

---------

Co-authored-by: EverNorif <1320346985@qq.com>
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

Successfully merging this pull request may close these issues.

2 participants