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

Roadmap for D4RL #175

Open
pseudo-rnd-thoughts opened this issue Sep 25, 2022 · 4 comments
Open

Roadmap for D4RL #175

pseudo-rnd-thoughts opened this issue Sep 25, 2022 · 4 comments

Comments

@pseudo-rnd-thoughts
Copy link
Member

Recently, the Farama Foundation has recently taken over D4RL and has several plans for maintaining D4RL.

  1. Add a PyPI release
  2. Remove environments of necessary imports and have D4RL as a more modular project that supports a wider range of projects
  3. New core API (this is experimental so major changes might occur)
def load(dataset_name: str) -> OfflineDataset:
    """Load a D4RL dataset.
    This function should return a handle to an offline RL dataset.
    This is the most important entrypoint in the API. We should make
    sure that this method returns everything needed for doing offline RL research
    with D4RL datasets.
    Args:
    dataset_name: Name of the dataset.
    """
    # Download the dataset if necessary.


def make(name_or_config: Union[str, EnvironmentConfig]) -> gym.Env:
    """Create an environment used in generating the dataset.
    This function should produce an environment in which the dataset
    is generated. The spec from the environment should match those
    in the corresponding offline dataset. e.g., if there are frame-stacking
    or action-repeat in the datasets, so should the recreated environments respect
    those.
    Dependencies to third-party libraries should only be lazy-loaded in this function,
    and we should warn and error users if those dependencies are not met.
    We can also put this function as an instance method on OfflineDataset.
    Args:
    name_or_config: the name of the dataset or an EnvironmentConfig
    """

For the OfflineDataset, we plan to make a more framework-agnostic than RLDS that requires the use of Tensorflow Datasets.

In addition, we will be regenerating the dataset for all of the supported environments (e.g. we are dropping pybullet support due to mujoco being open source now) and confirming the performance reported in the paper with the new datasets.

If there are any more changes that would be of interest to users, please comment them below

If developers are interested in helping improve the project, please join the discord (https://discord.gg/nHg2JRN489) and message in the D4RL channel

@pseudo-rnd-thoughts pseudo-rnd-thoughts pinned this issue Sep 25, 2022
@Howuhh
Copy link

Howuhh commented Oct 17, 2022

Would it be possible to also remove the dependency on mujoco_py (like it was done in gym as far as I know)? Since downloading mujoco manually every time is extremely annoying (and compiling mujoco_py on m1 which seems to be unreal for now 😠 ) and makes some works based on d4rl hard to reproduce (different repos may have different mujoco binaries).

@pseudo-rnd-thoughts
Copy link
Member Author

Yes, that is part of our plan. We want the project to be more API than environment repo so we hope to have minimal dependencies for users

@im-Kitsch
Copy link

Hi,

will it be moved to gymnaisum isntead of gym?

Best

@pseudo-rnd-thoughts
Copy link
Member Author

Hi, this roadmap has changed.
We are planning on building a new project specially made for offline RL called minari. This will use gymnasium from the beginning rather than gym.
https://github.com/farama-Foundation/minari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants