Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

OrangeX4
Copy link

python reproduce/sac/run_sac_online.py --config reproduce/sac/config/robosuite/Door-Panda.py

log_interval = 10
warmup_epoch = 2
random_policy_epoch = 5
max_trajectory_length = 1000
Copy link
Member

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

Copy link
Member

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/")
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants