-
Notifications
You must be signed in to change notification settings - Fork 378
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(zjow): envpoool env example in new pipeline #746
Conversation
) | ||
|
||
def __init__(self, cfg: EasyDict) -> None: | ||
self._cfg = cfg | ||
self._cfg = self.default_config() | ||
self._cfg.update(cfg) |
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.
why merge config here, we have already merged the config of env manager in compile_config
function
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.
There are two env manager config, one for evaluator and one for collector. It's too complicated to use compile_config with auto=True.
I suggest use compile_config with auto=False.
) | ||
) | ||
#task.use(CkptSaver(policy, cfg.exp_name, train_freq=1000)) | ||
task.use(termination_checker(max_env_step=10000000)) |
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.
use int(1e7)
) | ||
task.use(data_pusher(cfg, buffer_)) | ||
task.use(EnvpoolOffPolicyLearner(cfg, policy, buffer_)) | ||
task.use(online_logger(train_show_freq=10)) |
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.
why use two logger
|
||
def main(cfg): | ||
logging.getLogger().setLevel(logging.INFO) | ||
cfg.exp_name = 'Pong-v5-DQN-envpool-' + datetime.datetime.now().strftime("%Y%m%d-%H%M%S") |
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.
why modify this
'episodic_life': True, # collector: True | ||
'reward_clip': False, # collector: True | ||
'gray_scale': cfg.env.get('gray_scale', True), | ||
'stack_num': cfg.env.get('stack_num', 4), |
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.
move some keys to default config and user config
This PR will be continually updated in #753. |
No description provided.