Closed mertalbaba closed 1 year ago
That is probably because the "Humanoid-v3" environment has a variable horizon. Read more here for why this is an issue You probably want to use the "seals/Humanoid-v0" environment from the seals package instead.
@mertalbaba can you link us to where we provide that code in our docs? If an example is not working we should certainly fix that.
@ernestum Thanks for the solution. It works now. @AdamGleave the example works, since the environment is seals/CartPole-v0. When changing it to Humanoid-v3, I didn’t understand that I need to use seals/Humanoid-v0, therefore it failed.
Bug description
When trying to train GAIL on Humanoid, always get variable horizon error. I am using the code provided on your documentation, which is written below.
Steps to reproduce
Environment
pip freeze --all
:absl-py==1.4.0 cachetools==5.3.0 certifi==2022.12.7 cffi==1.15.1 chai-sacred==0.8.3 charset-normalizer==3.0.1 cloudpickle==2.2.1 colorama==0.4.6 contourpy==1.0.7 cycler==0.11.0 Cython==0.29.33 docopt==0.6.2 fasteners==0.18 filelock==3.9.0 fonttools==4.38.0 gitdb==4.0.10 GitPython==3.1.30 glfw==2.5.5 google-auth==2.16.0 google-auth-oauthlib==0.4.6 grpcio==1.51.1 gym==0.21.0 huggingface-hub==0.12.0 huggingface-sb3==2.2.4 idna==3.4 imageio==2.25.0 imitation==0.3.2 importlib-metadata==4.13.0 joblib==1.2.0 jsonpickle==3.0.1 kiwisolver==1.4.4 Markdown==3.4.1 MarkupSafe==2.1.2 matplotlib==3.6.3 mujoco-py==2.1.2.14 munch==2.5.0 numpy==1.24.1 nvidia-cublas-cu11==11.10.3.66 nvidia-cuda-nvrtc-cu11==11.7.99 nvidia-cuda-runtime-cu11==11.7.99 nvidia-cudnn-cu11==8.5.0.96 oauthlib==3.2.2 packaging==23.0 pandas==1.5.3 Pillow==9.4.0 pip==20.0.2 pkg-resources==0.0.0 protobuf==3.20.3 py-cpuinfo==9.0.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.21 pyglet==1.5.27 pyparsing==3.0.9 python-dateutil==2.8.2 pytz==2022.7.1 PyYAML==6.0 requests==2.28.2 requests-oauthlib==1.3.1 rsa==4.9 scikit-learn==1.2.1 scipy==1.10.0 seals==0.1.5 setuptools==44.0.0 six==1.16.0 smmap==5.0.0 stable-baselines3==1.7.0 tensorboard==2.11.2 tensorboard-data-server==0.6.1 tensorboard-plugin-wit==1.8.1 threadpoolctl==3.1.0 torch==1.13.1+cu116 torch-tb-profiler==0.4.1 torchaudio==0.13.1+cu116 torchvision==0.14.1+cu116 tqdm==4.64.1 typing-extensions==4.4.0 urllib3==1.26.14 wasabi==1.1.1 Werkzeug==2.2.2 wheel==0.34.2 wrapt==1.14.1 zipp==3.11.0