Skip to content
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

Add gym make support for Meta-World envs #498

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
f1a106b
refactored project and removed v1 files/references/envs
reginald-mclean May 2, 2024
af157ff
fixing tests from refactor
reginald-mclean May 3, 2024
281a124
creating envs via gym.make
reginald-mclean Jul 24, 2024
3b7da2c
pre-commit
reginald-mclean Jul 24, 2024
a923060
fixing pre-commit
reginald-mclean Jul 24, 2024
31fd8e2
update to v3
reginald-mclean Jul 29, 2024
55ead70
updates
reginald-mclean Aug 13, 2024
7b7038a
moving wrappers to own folder, fixing ML10/ML45 env creation to match…
reginald-mclean Aug 29, 2024
54814df
Merge branch 'removeV1_refactor' of github.com:reginald-mclean/Metawo…
reginald-mclean Aug 29, 2024
cfecdaf
Merge branch 'reginald-mclean-removeV1_refactor'
reginald-mclean Aug 29, 2024
16480c0
pre-commit
reginald-mclean Aug 29, 2024
f9190f9
updating to use refactored MW
reginald-mclean Aug 30, 2024
2d953e3
updating gymnasium requirement to install alpha 2 (#482)
reginald-mclean May 24, 2024
4a315be
docs work (#483)
reginald-mclean May 27, 2024
def7959
Pages work (#484)
reginald-mclean May 27, 2024
de0000d
missing goal fixes (#485)
reginald-mclean Jul 3, 2024
8e29dd5
expert actions page
reginald-mclean Jul 29, 2024
3f953b9
updates
reginald-mclean Aug 13, 2024
5703841
pre-commit
reginald-mclean Aug 29, 2024
14df6bc
merging
reginald-mclean Aug 30, 2024
852ea81
pre-commit
reginald-mclean Aug 30, 2024
2b57f0e
pre-commit
reginald-mclean Aug 30, 2024
7d37933
pre-commit
reginald-mclean Aug 30, 2024
3cfbad0
pre-commit & type hinting
reginald-mclean Aug 30, 2024
3a1d74f
update action
reginald-mclean Aug 30, 2024
19f2062
type hinting
reginald-mclean Aug 30, 2024
99ba23a
type hinting again
reginald-mclean Aug 30, 2024
4c96658
type hinting again x 2
reginald-mclean Aug 30, 2024
eda5ba4
env-names in env-dict
reginald-mclean Aug 30, 2024
a63a024
updating paths
reginald-mclean Aug 30, 2024
0f8d38e
updating tests
reginald-mclean Aug 30, 2024
50f9a21
revert mt50 test classes = None
reginald-mclean Aug 30, 2024
3455d97
Refactor gym make env init code
rainx0r Sep 8, 2024
9a96319
Add evaluation code without the buffer
rainx0r Sep 8, 2024
7a3d23c
Finish first draft of evaluation code
rainx0r Sep 8, 2024
fc1dd5b
Test evaluation
rainx0r Sep 16, 2024
9fe624c
Fix refactored gym make
rainx0r Sep 16, 2024
acfc579
Make tests deterministic & finalize eval tests
rainx0r Sep 16, 2024
befba60
Add missing future imports
rainx0r Sep 16, 2024
96c52d7
Update ML evaluation tests to not use partial observability
rainx0r Sep 18, 2024
e3350d1
Add gym make tests
rainx0r Sep 18, 2024
437b893
Merge branch 'addGymMake' into add_evaluation
rainx0r Oct 25, 2024
32d069c
Fix minor issues with gym make and eval
rainx0r Oct 28, 2024
d330e05
Finish ML1
rainx0r Oct 28, 2024
836de39
streamlining gym.make for creating envs
reginald-mclean Nov 5, 2024
b677a18
Merge remote-tracking branch 'farama/master' into addGymMake
reginald-mclean Nov 6, 2024
279136c
pre-commit
reginald-mclean Nov 6, 2024
e1b74d2
pre-commit
reginald-mclean Nov 6, 2024
0b499b7
updating dependencies to not use head of master gymnasium branch
reginald-mclean Nov 6, 2024
b32454e
updating evaluation tests for gym.make changes
reginald-mclean Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Next Next commit
refactored project and removed v1 files/references/envs
  • Loading branch information
reginald-mclean committed May 2, 2024
commit f1a106bf3e43f2c24617b92f5d6f9ea9bf34298e
9 changes: 7 additions & 2 deletions metaworld/__init__.py
Original file line number Diff line number Diff line change
@@ -10,8 +10,13 @@
import numpy as np
import numpy.typing as npt

import metaworld.envs.mujoco.env_dict as _env_dict
import metaworld.env_dict as _env_dict
from metaworld.types import Task
from .sawyer_xyz_env import SawyerXYZEnv
from metaworld.env_dict import (
ALL_V2_ENVIRONMENTS_GOAL_HIDDEN,
ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE,
)


class MetaWorldEnv(abc.ABC):
@@ -285,4 +290,4 @@ def __init__(self, seed=None):
)


__all__ = ["ML1", "MT1", "ML10", "MT10", "ML45", "MT50"]
__all__ = ["ML1", "MT1", "ML10", "MT10", "ML45", "MT50", "ALL_V2_ENVIRONMENTS_GOAL_HIDDEN", "ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE", "SawyerXYZEnv"]
Original file line number Diff line number Diff line change
@@ -6,20 +6,7 @@

_CURRENT_FILE_DIR = Path(__file__).parent.absolute()

ENV_ASSET_DIR_V1 = _CURRENT_FILE_DIR / "assets_v1"
ENV_ASSET_DIR_V2 = _CURRENT_FILE_DIR / "assets_v2"


def full_v1_path_for(file_name: str) -> str:
"""Retrieves the full, absolute path for a given V1 asset

Args:
file_name: Name of the asset file. Can include subdirectories.

Returns:
The full path to the asset file.
"""
return str(ENV_ASSET_DIR_V1 / file_name)
ENV_ASSET_DIR_V2 = _CURRENT_FILE_DIR / "assets"


def full_v2_path_for(file_name: str) -> str:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
Loading