Farama-Foundation / D4RL

A collection of reference environments for offline reinforcement learning
Apache License 2.0
1.29k stars 278 forks source link

[Question] get_dataset failed #226

Open return-sleep opened 10 months ago

return-sleep commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 5 months ago

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!