mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
Release 0.9
Main changes are detailed below: New features - * CARLA 0.7 simulator integration * Human control of the game play * Recording of human game play and storing / loading the replay buffer * Behavioral cloning agent and presets * Golden tests for several presets * Selecting between deep / shallow image embedders * Rendering through pygame (with some boost in performance) API changes - * Improved environment wrapper API * Added an evaluate flag to allow convenient evaluation of existing checkpoints * Improve frameskip definition in Gym Bug fixes - * Fixed loading of checkpoints for agents with more than one network * Fixed the N Step Q learning agent python3 compatibility
This commit is contained in:
@@ -18,6 +18,7 @@ from pandas import *
|
||||
import os
|
||||
from pprint import pprint
|
||||
import threading
|
||||
from subprocess import Popen, PIPE
|
||||
import time
|
||||
import datetime
|
||||
from six.moves import input
|
||||
@@ -61,7 +62,7 @@ class ScreenLogger(object):
|
||||
print("")
|
||||
|
||||
def log(self, data):
|
||||
print(self.name + ": " + data)
|
||||
print(data)
|
||||
|
||||
def log_dict(self, dict, prefix=""):
|
||||
str = "{}{}{} - ".format(Colors.PURPLE, prefix, Colors.END)
|
||||
@@ -78,8 +79,10 @@ class ScreenLogger(object):
|
||||
def warning(self, text):
|
||||
print("{}{}{}".format(Colors.YELLOW, text, Colors.END))
|
||||
|
||||
def error(self, text):
|
||||
def error(self, text, crash=True):
|
||||
print("{}{}{}".format(Colors.RED, text, Colors.END))
|
||||
if crash:
|
||||
exit(1)
|
||||
|
||||
def ask_input(self, title):
|
||||
return input("{}{}{}".format(Colors.BG_CYAN, title, Colors.END))
|
||||
|
||||
Reference in New Issue
Block a user