feat: add robosuite support for sac#20
Open
OrangeX4 wants to merge 5 commits into
Open
Conversation
OrangeX4
commented
Mar 22, 2024
typoverflow
reviewed
Mar 22, 2024
| log_interval = 10 | ||
| warmup_epoch = 2 | ||
| random_policy_epoch = 5 | ||
| max_trajectory_length = 1000 |
Member
There was a problem hiding this comment.
这里的max_trajectory_length和环境的horizon都设置成500
Member
There was a problem hiding this comment.
同时环境还要添加controller=OSC_POSE,hard_reset=False这两个kwargs
typoverflow
reviewed
Mar 22, 2024
|
|
||
| if i_epoch % args.save_interval == 0: | ||
| 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/") No newline at end of file | ||
| 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/") |
Member
There was a problem hiding this comment.
这里的train loop的逻辑要变更,改成:训练N1个epoch,其中每个epoch会先收集N2个episode,然后训练N3个gradient step,其中N1=2000, N2=10, N3=1000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.