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

[Question] get_dataset failed #226

Open
return-sleep opened this issue Oct 27, 2023 · 3 comments
Open

[Question] get_dataset failed #226

return-sleep opened this issue Oct 27, 2023 · 3 comments

Comments

@return-sleep
Copy link

Question

when I run

env = gym.make('maze2d-umaze-v1')
env.reset()
env.step(env.action_space.sample())
dataset = env.get_dataset()
print(dataset['observations']) 

something wrong happened:

urllib.error.HTTPError: HTTP Error 404: Not Found

I have tried to download dataset directly from link [link], however I don't have permission to access /datasets/offline_rl/maze2d/maze2d-umaze-sparse-v1.hdf5 on this server.
How can i fix this problem?

@SuhanNShetty
Copy link

SuhanNShetty commented Oct 27, 2023

import gym
import d4rl
env_name = "halfcheetah-medium-v2"
env = gym.make(env_name)
dataset = d4rl.qlearning_dataset(env)

I have the same issue with the above code

@return-sleep
Copy link
Author

import gym import d4rl env_name = "halfcheetah-medium-v2" env = gym.make(env_name) dataset = d4rl.qlearning_dataset(env)

I have the same issue with the above code

The problem may be caused by an internet connection issue. Downloading the data manually and placing it under the corresponding path will solve it.

@staycoolish
Copy link

Hello friends, I had a similar problem and this solved the issue for me:

Install the stable version of D4RL from here: https://github.com/Farama-Foundation/D4RL/tree/master

Alternatively, datasets can be downloaded from these links (in my case the links were different, starting with gs): https://github.com/Farama-Foundation/D4RL/blob/master/d4rl/infos.py

Have a nice day!

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