-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add robosuite support for sac #20
base: master
Are you sure you want to change the base?
Conversation
OrangeX4
commented
Mar 22, 2024
log_interval = 10 | ||
warmup_epoch = 2 | ||
random_policy_epoch = 5 | ||
max_trajectory_length = 1000 |
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.
这里的max_trajectory_length和环境的horizon都设置成500
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.
同时环境还要添加controller=OSC_POSE,hard_reset=False这两个kwargs
logger.log_object(name=f"policy_{i_epoch}.pt", object=policy.state_dict(), path=f"./out/sac/{args.name}/{args.env}/seed{args.seed}/policy/") |
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.
这里的train loop的逻辑要变更,改成:训练N1个epoch,其中每个epoch会先收集N2个episode,然后训练N3个gradient step,其中N1=2000, N2=10, N3=1000