gail-tf icon indicating copy to clipboard operation
gail-tf copied to clipboard

Question about /dataset/mujoco.py

Open huangjiancong1 opened this issue 7 years ago • 2 comments

What the different between gail-tf/dataset/mujoco.py with openai/baselines/baselines/gail/dataset/mujoco_dset.py

huangjiancong1 avatar Sep 11 '18 00:09 huangjiancong1

When i use baseline/gail to imitation train the model generated by your /gail-tf/ppo1, error ouput :

Traceback (most recent call last):
  File "baselines/gail/run_mujoco.py", line 240, in <module>
    main(args)
  File "baselines/gail/run_mujoco.py", line 89, in main
    dataset = Mujoco_Dset(expert_path=args.expert_path, traj_limitation=args.traj_limitation)
  File "/home/huang/baselines/baselines/gail/dataset/mujoco_dset.py", line 46, in __init__
    traj_limitation = len(traj_data['obs'])
TypeError: list indices must be integers or slices, not str

huangjiancong1 avatar Sep 11 '18 00:09 huangjiancong1

@huangjiancong1 Hi could you provide a sample of your expert data? Thanks.

zyzhang1130 avatar Jul 09 '20 03:07 zyzhang1130