-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Different state and action data type in Fetch_env #25
Comments
Can you add an environment wrapper (e.g. gym.Wrapper) to change the dict obs to numpy? |
Oh, it's the first time I know there is a wrapper function to do such kind of things. I'll try it. Thank you! |
Btw, the collector supports storing a dictionary. On my side, the network will receive a np.array which includes a list of dict. You can extract your desired data like |
Hi, could you please tell me how to save the dic in collect? |
@ChenyangRan I add this feature yesterday. Please refer to #38 |
Hello, I am using FetchPickAndPlace-v1 env. The 'obs', 'action' and reward_threshold(There seems no reward_threshold in this env) data type are different from normal gym env. For example, the 'obs' of FetchPickAndPlace-v1 is a dict. This leads to some problems when I run the collector in your code, because the collector seems to assume the 'obs' is a list. So it will come out an error.
The text was updated successfully, but these errors were encountered: