Skip to content

Issue with generate_cand.py #8

@OkayJeff5

Description

@OkayJeff5

Observation:
The README says to run:

python convert.py
python generate_cand.py

However, when I run generate_cand.py, I get:

KeyError: 'mvel'

Looking at the .pkl files generated by convert.py, they only contain:

['qpos', 'jpos', 'mpos', 'torque', 'grf']

There is no mvel key.

Proposal:
In generate_cand.py, should:

nf = joblib.load(f'data/imdy_train/{item}')['mvel'].shape[0]

be changed to:

nf = joblib.load(f'data/imdy_train/{item}')['mpos'].shape[0]

Question:
Could you confirm if these changes are correct?

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