clvrai / furniture

IKEA Furniture Assembly Environment for Long-Horizon Complex Manipulation Tasks
https://clvrai.com/furniture
MIT License
496 stars 56 forks source link

running command line #24

Closed haoyu-x closed 4 years ago

haoyu-x commented 4 years ago

Hi, Thanks for the great work.

I'm trying to run the dev-branch code. I check the env/init.py
Is it a environment registry issue?

But can't figure it out:

b>haoyux@haoyux-ThinkPad</b:~/furniture-dev$ python3 run.py --run_prefix test --algo ppo --env "furniture-sawyer-v0" --unity False --wandb False
pybullet build time: Jul 11 2020 19:26:20
[2020-07-23 15:14:40,043] Run a base worker.
[2020-07-23 15:14:40,043] Create log directory: log/furniture-sawyer-v0.ppo.test.123
[2020-07-23 15:14:40,045] Create video directory: log/furniture-sawyer-v0.ppo.test.123/video
[2020-07-23 15:14:40,045] Create demo directory: log/furniture-sawyer-v0.ppo.test.123/demo
[2020-07-23 15:14:40,060] Store parameters in log/furniture-sawyer-v0.ppo.test.123/params.json
[2020-07-23 15:14:40,062] Unknown environment name: furniture-sawyer-v0
Available environments: 
[2020-07-23 15:14:40,062] Instead, query gym environments
Traceback (most recent call last):
File "run.py", line 18, in <module>
run(parser)
File "/home/haoyux/furniture-dev/method/main.py", line 75, in run
trainer = Trainer(config)
File "/home/haoyux/furniture-dev/method/trainer.py", line 44, in init
self._env = make_env(config.env, config)
File "/home/haoyux/furniture-dev/method/environments/init.py", line 48, in make_env
return get_gym_env(name, config)
File "/home/haoyux/furniture-dev/method/environments/init.py", line 84, in get_gym_env
frame_skip=config.action_repeat,
File "/home/haoyux/furniture-dev/method/utils/gym_env.py", line 68, in init
self.max_episode_steps = self.env._max_episode_steps // frame_skip
AttributeError: 'FurnitureGym' object has no attribute '_max_episode_steps'

Thanks!

edwhu commented 4 years ago

Try pulling from dev again. There was a bug that we fixed.

haoyu-x commented 4 years ago

Thanks Edward.

Edward Hu notifications@github.com于2020年7月24日 周五02:47写道:

Try pulling from dev again. There was a bug that we fixed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/clvrai/furniture/issues/24#issuecomment-663171757, or unsubscribe https://github.com/notifications/unsubscribe-auth/APACPZSSOUTM2B4B6EDDVZDR5CATPANCNFSM4PFOCFBQ .