D4RL icon indicating copy to clipboard operation
D4RL copied to clipboard

[Question] get_dataset failed

Open return-sleep opened this issue 1 year ago • 3 comments

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?

return-sleep avatar Oct 27 '23 06:10 return-sleep

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

SuhanNShetty avatar Oct 27 '23 10:10 SuhanNShetty

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.

return-sleep avatar Nov 17 '23 07:11 return-sleep

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!

staycoolish avatar Apr 12 '24 11:04 staycoolish