madras-simulator / MADRaS

Multi-Agent DRiving Simulator
GNU Affero General Public License v3.0
90 stars 20 forks source link

How to run baselines experiments? #20

Closed Vaselinus closed 5 years ago

Vaselinus commented 5 years ago

When I start any experiment with baselines, the agent waiting for the random port server: Waiting for server on 38992............ I used: python -m baselines.run --alg=ddpg --env='Madras-v0' With multiple agents it requests different random ports. TORCS doesn't starts automatically with baselines.

How can I specify agent's port when I am using baselines?

buridiaditya commented 5 years ago

TORCS automatically starts from MadrasEnv. If you have set visualise=True then you will need VirtualGL installed in your system. You could try setting visualise=False just for sanity check and run it.

Vaselinus commented 5 years ago

Thank you! Now it works.