clvrai / skill-chaining

Adversarial Skill Chaining for Long-Horizon Robot Manipulation via Terminal State Regularization (CoRL 2021)
https://clvrai.com/skill-chaining
28 stars 4 forks source link

Running error: demo path, unparsed argument is detected #5

Closed TPEmist closed 2 years ago

TPEmist commented 2 years ago

error log:

user@user:~/skill-chaining$ mpirun -np 4 python3 -m run --algo ppo --furniture_name table_lack_0825 --demo_path demos/table_lack/ --num_connects 4 --max_episode_steps 800 --max_global_step 200000000 --run_prefix ppo
Invalid MIT-MAGIC-COOKIE-1 keypybullet build time: Feb 28 2022 22:32:49
/usr/local/lib/python3.8/dist-packages/ale_py/roms/__init__.py:94: DeprecationWarning: Automatic importing of atari-py roms won't be supported in future releases of ale-py. Please migrate over to using `ale-import-roms` OR an ALE-supported ROM package. To make this warning disappear you can run `ale-import-roms --import-from-pkg atari_py.atari_roms`.For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-management
  _RESOLVED_ROMS = _resolve_roms()
[2022-05-01 22:22:52,277] Unparsed argument is detected:
['--demo_path', 'demos/table_lack/']
pybullet build time: Feb 28 2022 22:32:49
/usr/local/lib/python3.8/dist-packages/ale_py/roms/__init__.py:94: DeprecationWarning: Automatic importing of atari-py roms won't be supported in future releases of ale-py. Please migrate over to using `ale-import-roms` OR an ALE-supported ROM package. To make this warning disappear you can run `ale-import-roms --import-from-pkg atari_py.atari_roms`.For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-management
  _RESOLVED_ROMS = _resolve_roms()
[2022-05-01 22:22:52,545] Unparsed argument is detected:
['--demo_path', 'demos/table_lack/']
pybullet build time: Feb 28 2022 22:32:49
/usr/local/lib/python3.8/dist-packages/ale_py/roms/__init__.py:94: DeprecationWarning: Automatic importing of atari-py roms won't be supported in future releases of ale-py. Please migrate over to using `ale-import-roms` OR an ALE-supported ROM package. To make this warning disappear you can run `ale-import-roms --import-from-pkg atari_py.atari_roms`.For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-management
  _RESOLVED_ROMS = _resolve_roms()
[2022-05-01 22:22:52,705] Unparsed argument is detected:
['--demo_path', 'demos/table_lack/']
pybullet build time: Feb 28 2022 22:32:49
/usr/local/lib/python3.8/dist-packages/ale_py/roms/__init__.py:94: DeprecationWarning: Automatic importing of atari-py roms won't be supported in future releases of ale-py. Please migrate over to using `ale-import-roms` OR an ALE-supported ROM package. To make this warning disappear you can run `ale-import-roms --import-from-pkg atari_py.atari_roms`.For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-management
  _RESOLVED_ROMS = _resolve_roms()
[2022-05-01 22:22:52,995] Unparsed argument is detected:
['--demo_path', 'demos/table_lack/']

I first ran the command: # Sub-task demo generation

$ python -m furniture.env.furniture_sawyer_gen --furniture_name table_lack_0825 --demo_dir demos/table_lack/ --reset_robot_after_attach True --max_episode_steps 200 --num_connects 1 --n_demos 200 --start_count 0 --phase_ob True

and got the folder demos/table_lack with lots of Sawyer_table_lack_0825_xxx.pkl files

then run the command:

$ mpirun -np 4 python3 -m run --algo ppo --furniture_name table_lack_0825 --demo_path demos/table_lack/ --num_connects 4 --max_episode_steps 800 --max_global_step 200000000 --run_prefix ppo

and I ran into the error metioned above, what's the demo_path trying to get? did I miss anything? or I'm running to other problem? Thanks

youngwoon commented 2 years ago

Sorry for the confusing use of --demo_path. The --demo_path should contain a prefix of file names, e.g. --demo_path demos/table_lack/Sawyer. This is designed for the use a partition of demos, e.g. Sawyer_table_lack_0825_0 for part 0 and Sawyer_table_lack_0825_1 for part 1.

TPEmist commented 2 years ago

with my folder like skill_chaining / demos / table_lack / Sawyer_table_lack_0825_xxx.pkl files In skill_chaining folder I ran:

mpirun -np 4 python3 -m run --algo ppo --furniture_name table_lack_0825 --demo_path demos/table_lack/Sawyer --num_connects 4 --max_episode_steps 800 --max_global_step 200000000 --run_prefix ppo

Still getting error:

Invalid MIT-MAGIC-COOKIE-1 keypybullet build time: Feb 28 2022 22:32:49
pybullet build time: Feb 28 2022 22:32:49
/usr/local/lib/python3.8/dist-packages/ale_py/roms/__init__.py:94: DeprecationWarning: Automatic importing of atari-py roms won't be supported in future releases of ale-py. Please migrate over to using `ale-import-roms` OR an ALE-supported ROM package. To make this warning disappear you can run `ale-import-roms --import-from-pkg atari_py.atari_roms`.For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-management
  _RESOLVED_ROMS = _resolve_roms()
[2022-05-03 16:10:40,853] Unparsed argument is detected:
['--demo_path', 'demos/table_lack/Sawyer']
/usr/local/lib/python3.8/dist-packages/ale_py/roms/__init__.py:94: DeprecationWarning: Automatic importing of atari-py roms won't be supported in future releases of ale-py. Please migrate over to using `ale-import-roms` OR an ALE-supported ROM package. To make this warning disappear you can run `ale-import-roms --import-from-pkg atari_py.atari_roms`.For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-management
  _RESOLVED_ROMS = _resolve_roms()
[2022-05-03 16:10:40,858] Unparsed argument is detected:
['--demo_path', 'demos/table_lack/Sawyer']
pybullet build time: Feb 28 2022 22:32:49
/usr/local/lib/python3.8/dist-packages/ale_py/roms/__init__.py:94: DeprecationWarning: Automatic importing of atari-py roms won't be supported in future releases of ale-py. Please migrate over to using `ale-import-roms` OR an ALE-supported ROM package. To make this warning disappear you can run `ale-import-roms --import-from-pkg atari_py.atari_roms`.For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-management
  _RESOLVED_ROMS = _resolve_roms()
[2022-05-03 16:10:41,159] Unparsed argument is detected:
['--demo_path', 'demos/table_lack/Sawyer']
pybullet build time: Feb 28 2022 22:32:49
/usr/local/lib/python3.8/dist-packages/ale_py/roms/__init__.py:94: DeprecationWarning: Automatic importing of atari-py roms won't be supported in future releases of ale-py. Please migrate over to using `ale-import-roms` OR an ALE-supported ROM package. To make this warning disappear you can run `ale-import-roms --import-from-pkg atari_py.atari_roms`.For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-management
  _RESOLVED_ROMS = _resolve_roms()
[2022-05-03 16:10:41,383] Unparsed argument is detected:
['--demo_path', 'demos/table_lack/Sawyer']

did i do something wrong?

youngwoon commented 2 years ago

I think you are running PPO and it does not require demonstrations. Thus, you need to remove --demo_path. Sorry for the confusion. I updated README accordingly.

TPEmist commented 2 years ago