-
Notifications
You must be signed in to change notification settings - Fork 373
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
feature(zc): add carracing in box2d #575
Conversation
Codecov Report
@@ Coverage Diff @@
## main #575 +/- ##
==========================================
+ Coverage 83.60% 83.67% +0.06%
==========================================
Files 562 564 +2
Lines 46020 46110 +90
==========================================
+ Hits 38477 38581 +104
+ Misses 7543 7529 -14
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
add the information of this env in env table |
|
||
nstep = 3 | ||
carracing_dqn_config = dict( | ||
exp_name='carracing_dqn_seed0-withouconfig', |
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.
polish exp_name
self._replay_path_gif = cfg.replay_path_gif | ||
self._save_replay_gif = cfg.save_replay_gif | ||
self._save_replay_count = 0 | ||
if 'Continuous' in self._env_id: |
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 Continuous
related codes, which is abandoned in latest gym
self._env = ObsPlusPrevActRewWrapper(self._env) | ||
# self._observation_space = self._env.observation_space | ||
self._observation_space = gym.spaces.Box( | ||
low=np.min(self._env.observation_space.low), |
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.
correct range (after dividing 255)
episode_trigger=lambda episode_id: True, | ||
name_prefix='rl-video-{}'.format(id(self)) | ||
) | ||
if hasattr(self._cfg, 'obs_plus_prev_action_reward') and self._cfg.obs_plus_prev_action_reward: |
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 wrapper, it is only used in some special cases.
Description
Add CarRacing env and config of DQN
result:
Related Issue
TODO