[carla] In carla example, save all images and measurements to local disk (#1350)

* revamp saving

* smaller jpgs

* hide verbose

* Tue Dec 19 22:25:01 PST 2017

* make sure temp dirs sort lexiographically

* save total reward too

* zero pad i

* 160x160 dqn

* ever higher res dqn
This commit is contained in:
Eric Liang
2017-12-21 15:19:55 -08:00
committed by Philipp Moritz
parent 3a301c3d56
commit 0ae660ce4e
4 changed files with 165 additions and 59 deletions
+4 -2
View File
@@ -296,8 +296,10 @@ class Trial(object):
if not os.path.exists(self.local_dir):
os.makedirs(self.local_dir)
self.logdir = tempfile.mkdtemp(
prefix=str(self), dir=self.local_dir,
suffix=datetime.today().strftime("_%Y-%m-%d_%H-%M-%S"))
prefix="{}_{}".format(
self,
datetime.today().strftime("%Y-%m-%d_%H-%M-%S")),
dir=self.local_dir)
self.result_logger = UnifiedLogger(
self.config, self.logdir, self.upload_dir)
remote_logdir = self.logdir