duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
51 stars 19 forks source link

Subprocesses with pytorch #43

Closed abdelq closed 6 years ago

abdelq commented 6 years ago

This adresses #38. Switching the multiprocessing method from fork to forkserver seems to do the trick (tested with a crappy NVIDIA GPU). Detail of the methods.

In the same time, I tweaked to code to stop using deprecated methods, eliminating the current warnings.

It seems that the multiprocessing version relies on cloudpickle. Shouldn't that be included in setup.py?

maximecb commented 6 years ago

You're right, cloudpickle should be in setup.py. I will add it.

I'm impressed btw. Did not think this problem would get fixed anytime soon! :+1: