-
Notifications
You must be signed in to change notification settings - Fork 650
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
Gymnasium support for DDPG continuous (+Jax) #371
Merged
vwxyzjn
merged 16 commits into
vwxyzjn:master
from
arjun-kg:ddpg_continuous_action_gymnasium
May 3, 2023
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
54439c8
ddpg continuous + jax
arjun-kg 6f4f072
fix video recording
arjun-kg 91aae1d
Merge branch 'master' of https://github.com/arjun-kg/cleanrl into ddp…
arjun-kg 4171609
remove pybullet
arjun-kg f2608a3
move to usage docs
arjun-kg 6e6a5b5
isort
arjun-kg d8dd801
update lock files
vwxyzjn 06f41ce
Merge branch 'master' into ddpg_continuous_action_gymnasium
vwxyzjn d9825b4
try trigger CI
vwxyzjn 91f770f
Merge branch 'master' into ddpg_continuous_action_gymnasium
vwxyzjn a05e618
Merge branch 'master' into ddpg_continuous_action_gymnasium
vwxyzjn 03b3c7e
update ddpg default v4 environments
vwxyzjn b6d8598
trigger CI
vwxyzjn 8f0029d
install jax dependency
vwxyzjn d630603
fix CI
vwxyzjn 65000a8
remove windows CI
vwxyzjn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,13 +174,13 @@ jobs: | |
continue-on-error: true # MUJOCO_GL=osmesa results in `free(): invalid pointer` | ||
run: poetry run pytest tests/test_mujoco.py | ||
|
||
test-mujoco-envs-windows-mac: | ||
test-mujoco-gymnasium-envs: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8] | ||
poetry-version: [1.3] | ||
os: [macos-latest, windows-latest] | ||
os: [ubuntu-22.04] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -197,9 +197,68 @@ jobs: | |
run: poetry install -E "pytest mujoco dm_control" | ||
- name: Downgrade setuptools | ||
run: poetry run pip install setuptools==59.5.0 | ||
- name: Run gymnasium migration dependencies | ||
run: poetry run pip install "stable_baselines3==2.0.0a1" | ||
- name: install mujoco dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get -y install libgl1-mesa-glx libosmesa6 libglfw3 | ||
- name: Run mujoco tests | ||
continue-on-error: true # MUJOCO_GL=osmesa results in `free(): invalid pointer` | ||
run: poetry run pytest tests/test_mujoco_gymnasium.py | ||
|
||
test-mujoco-envs-mac: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8] | ||
poetry-version: [1.3] | ||
os: [macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
|
||
# mujoco tests | ||
- name: Install dependencies | ||
run: poetry install -E "pytest mujoco dm_control jax" | ||
- name: Downgrade setuptools | ||
run: poetry run pip install setuptools==59.5.0 | ||
- name: Run mujoco tests | ||
run: poetry run pytest tests/test_mujoco.py | ||
|
||
test-mujoco-gymnasium-mac: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8] | ||
poetry-version: [1.3] | ||
os: [macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
|
||
# mujoco tests | ||
- name: Install dependencies | ||
run: poetry install -E "pytest mujoco dm_control jax" | ||
- name: Downgrade setuptools | ||
run: poetry run pip install setuptools==59.5.0 | ||
- name: Run gymnasium migration dependencies | ||
run: poetry run pip install "stable_baselines3==2.0.0a1" | ||
- name: Run mujoco tests | ||
run: poetry run pytest tests/test_mujoco_gymnasium.py | ||
|
||
test-mujoco_py-envs: | ||
strategy: | ||
|
@@ -234,6 +293,41 @@ jobs: | |
- name: Run mujoco_py tests | ||
run: poetry run pytest tests/test_mujoco_py.py | ||
|
||
test-mujoco_py-envs-gymnasium: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8] | ||
poetry-version: [1.3] | ||
os: [ubuntu-22.04] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
|
||
# mujoco_py tests | ||
- name: Install dependencies | ||
run: poetry install -E "pytest pybullet mujoco_py mujoco jax" | ||
- name: Run gymnasium migration dependencies | ||
run: poetry run pip install "stable_baselines3==2.0.0a1" | ||
- name: Downgrade setuptools | ||
run: poetry run pip install setuptools==59.5.0 | ||
- name: install mujoco_py dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get -y install wget unzip software-properties-common \ | ||
libgl1-mesa-dev \ | ||
libgl1-mesa-glx \ | ||
libglew-dev \ | ||
libosmesa6-dev patchelf | ||
- name: Run mujoco_py tests | ||
run: poetry run pytest tests/test_mujoco_py_gymnasium.py | ||
|
||
test-envpool-envs: | ||
strategy: | ||
fail-fast: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
poetry run pip install stable_baselines3==2.0.0a1