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

Corrections Needed in README and Type Hinting in Code #1

Open
cmj2002 opened this issue Oct 19, 2023 · 1 comment
Open

Corrections Needed in README and Type Hinting in Code #1

cmj2002 opened this issue Oct 19, 2023 · 1 comment

Comments

@cmj2002
Copy link

cmj2002 commented Oct 19, 2023

Thank you for your work on CEC. I'm very interested in your research because I'm currently doing similar work. I installed the environment according to your README and tried to run your code, and I found some issues in it.

First, The command to run the program in the README needs to be updated. The parameters passed in hydra should not include --. For example, python3 main/dmlab/train.py --method={METHOD} --task={TASK} --gpus={GPU} --data_path={DATA_PATH} should be changed to python3 main/dmlab/train.py method={METHOD} task={TASK} gpus={GPU} data_path={DATA_PATH}.

Secondly, it seems that you have used the wrong type hint, for example, you wrote list[float] instead of List[float], which will result in TypeError: 'type' object is not subscriptable. The same thing happens to Dict and Tuple.

I believe these issues might be bugs in the codebase. As such, I kindly request your assistance in addressing and rectifying these problems. After making these changes, please ensure to test the code thoroughly to prevent any further problems. Thank you.

@milong26
Copy link

I

Thank you for your work on CEC. I'm very interested in your research because I'm currently doing similar work. I installed the environment according to your README and tried to run your code, and I found some issues in it.

First, The command to run the program in the README needs to be updated. The parameters passed in hydra should not include --. For example, python3 main/dmlab/train.py --method={METHOD} --task={TASK} --gpus={GPU} --data_path={DATA_PATH} should be changed to python3 main/dmlab/train.py method={METHOD} task={TASK} gpus={GPU} data_path={DATA_PATH}.

Secondly, it seems that you have used the wrong type hint, for example, you wrote list[float] instead of List[float], which will result in TypeError: 'type' object is not subscriptable. The same thing happens to Dict and Tuple.

I believe these issues might be bugs in the codebase. As such, I kindly request your assistance in addressing and rectifying these problems. After making these changes, please ensure to test the code thoroughly to prevent any further problems. Thank you.

I followed you use command like python main/robomimic/train.py method=cec task=lift data_path="/mimicgen/datasets/core/" gpus=cpu, but it said

  @hydra.main(config_name="common", config_path="train_config")
Could not override 'method'.
To append to your config use +method=cec
Key 'method' is not in struct
    full_key: method
    object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Should I use '+' to override? And it told me again and agin cpu is not right,but i only have cpu now

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