DLR-RM / DLR-RM/stable-baselines3
Stuck when training with DDPG
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.8k
- Forks
- 2.2k
- Avg merge
- 1h 35m
- Merged PRs (30d)
- 2
Description
❓ Question
Hello,
When I use DDPG to train the gym third party environment torcs (a racing environment), after a period of time when the program starts to run, it stalls for a while and then the car keeps turning to the left, no problem when using stable_baselines, this happens when using stable_baselines3
TIMESTEPS = int(1e7) + 1
if __name__ == "__main__":
env = gym.make('Torcs-v0')
n_actions = env.action_space.shape[-1]
action_noise = NormalActionNoise(mean=np.zeros(n_actions),sigma=0.1 * np.ones(n_actions))
model = DDPG(policy="MlpPolicy",
env=env,
action_noise=action_noise,
verbose=1,
tensorboard_log="./ddpg_tensorboard/"
)
model.learn(
total_timesteps=TIMESTEPS,
)
Checklist
- I have checked that there is no similar issue in the repo
- I have read the documentation
- If code there is, it is minimal and working
- If code there is, it is formatted using the markdown code blocks for both code and stack traces.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided DDPG example with the Gym Torcs-v0 environment and compare its behavior with stable_baselines. Investigate whether the stall and persistent left turn can be reproduced in stable-baselines3, then document a confirmed cause or workaround; the issue does not name a failing test or source file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100