-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add script for generating MuJoCo/Ant-v5
#5
base: main
Are you sure you want to change the base?
Add script for generating MuJoCo/Ant-v5
#5
Conversation
scripts/ant/create_dataset.py
Outdated
from minari import DataCollectorV0, StepDataCallback | ||
from stable_baselines3 import A2C, PPO, SAC, TD3 | ||
import stable_baselines3 | ||
assert stable-baselines3.__version__ == "2.0.0a5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this line for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds good to me; we may want to use a different dataset name maybe
What dataset name should i use |
uhm, maybe |
I have run the script, and it has generated 49 episodes with Is that the desired behavior, or should I set the I am asking since minari has a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry, I missed the last part of the workflow, that may cause your problem. See the review comment
Ok, I have updated it, recheck the script (Note: I will clean it up after you have confirmed the functionality is ok) |
scripts/ant/create_dataset.py
Outdated
author="Kallinteris Andreas", | ||
author_email="[email protected]", | ||
) | ||
collector_env.save_to_disk("test.hdf5") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line, then LGTM
Update:
Note: I get these warnings, are any of them a problem? /home/master-andreas/gym/rl/project/temp_env/lib/python3.11/site-packages/minari/utils.py:394: UserWarning: `minari_version` is set to None. The compatible dataset version specifier for Minari will be set to ~=0.4.
warnings.warn(
/home/master-andreas/gym/rl/project/temp_env/lib/python3.11/site-packages/minari/utils.py:414: UserWarning: `eval_env` is set to None. If another environment is intended to be used for evaluation please specify corresponding Gymnasium environment (gym.Env | gym.envs.registration.EnvSpec). If None the environment used to collect the data (`env=None`) will be used for this purpose.
warnings.warn(
/home/master-andreas/gym/rl/project/temp_env/lib/python3.11/site-packages/minari/utils.py:435: UserWarning: env_spec is None, no environment spec is provided during collection for this dataset
warnings.warn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, thanks!
So you are proposing to upload this dataset to Minari remote, right?
@rodrigodelazcano what are your thoughts on that?
from minari import DataCollector, StepDataCallback | ||
from stable_baselines3 import A2C, PPO, SAC, TD3 | ||
|
||
from envs import ant_v5_release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this env
?
Yes, it is my intention for it to be uploaded to the Minari dataset remote As the policy used is by far the best, It is able to achieve a return of 6.7k While the previous best is below 6k |
@younik is there anything blocking it merge? |
I belline the -v5 environments are available in gymnasium 1.0, isn't it? We should wait for that release |
I have an expert policy (6.7k return) for the
MuJoco/Ant-v5
environment (previous best was 5.8k from what I can tell)I would like a review of the
create_dataset.py
before I run it, any other comments are welcome