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

NameError: name 'OctoInference' is not defined. #29

Open
armstronglzh opened this issue Aug 15, 2024 · 4 comments
Open

NameError: name 'OctoInference' is not defined. #29

armstronglzh opened this issue Aug 15, 2024 · 4 comments

Comments

@armstronglzh
Copy link

I have download the octo files according to Octo Inference Setup,why still no octo model found

@armstronglzh
Copy link
Author

by the way I am running command:
python simpler_env/main_inference.py --policy-model octo-small --ckpt-path None --robot widowx --policy-setup widowx_bridge --control-freq 5 --sim-freq 500 --max-episode-steps 60 --env-name StackGreenCubeOnYellowCubeBakedTexInScene-v0 --scene-name bridge_table_1_v1 --rgb-overlay-path ManiSkill2_real2sim/data/real_inpainting/bridge_real_eval_1.png --robot-init-x 0.147 0.147 1 --robot-init-y 0.028 0.028 1 --obj-variation-mode episode --obj-episode-range 0 24 --robot-init-rot-quat-center 0 0 0 1 --robot-init-rot-rpy-range 0 0 1 0 0 1 0 0 1 --additional-env-save-tags octo_init_rng_0

@armstronglzh
Copy link
Author

armstronglzh commented Aug 15, 2024

And the folder is like:
SimplerEnv-main-octo-docs
SimplerEnv-main-octo-examples
SimplerEnv-main-simpler_env-main_inference.py
SimplerEnv-main-octo-octo-model-octo_model.py,this is the py file quoted by the "octo_model" py file which is quoted by the main_inference.py:
try:
from simpler_env.policies.octo.octo_model import OctoInference
except ImportError as e:
print("Octo is not correctly imported.")
print(e)

@xuanlinli17
Copy link
Collaborator

xuanlinli17 commented Aug 15, 2024

I think you forgot to cd octo/; pip install -e .

Please follow the instruciton in the Octo inference setup in README (it also requires installing jax)

@armstronglzh
Copy link
Author

I think you forgot to cd octo/; pip install -e .

Please follow the instruciton in the Octo inference setup in README (it also requires installing jax)

I am sure I have done this all,the "pip install -e ." result is:
Successfully built octo
Installing collected packages: octo
Successfully installed octo-0.0.0

but still the error

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