edbeeching / godot_rl_agents

An Open Source package that allows video game creators, AI researchers and hobbyists the opportunity to learn complex behaviors for their Non Player Characters or agents
MIT License
942 stars 69 forks source link

How can I make the training process last infinitely in sb3? #37

Closed ryash072007 closed 1 year ago

ryash072007 commented 1 year ago

The training process stops after a set amount of steps, so how would you make the training process run infinitely long, suppose overnight?

edbeeching commented 1 year ago

In the sb3 example you can set the number of steps of model.learn(200000), set this to something like 10000000. I also recommend using speedup=8 as an argument when you create the env, as you can then train with accelerated physics so it should train faster. I recommend looking at the sb3 docs if you want to know more.