This commit is contained in:
wassname
2018-12-03 18:11:38 +08:00
parent 5c618a405e
commit 3dbccfc316
2 changed files with 6 additions and 7 deletions
+6 -6
View File
@@ -32,12 +32,12 @@
<br />
<div>
<h4>Load brain:</h4>
<button onclick="game.agent.restore('../checkpoints', 'model-ddpg-walker-10m/model')">10 minutes old</button>
<button onclick="game.agent.restore('../checkpoints', 'model-ddpg-walker-1h/model')">1 hour</button>
<button onclick="game.agent.restore('../checkpoints', 'model-ddpg-walker-2h/model')">2 hours old</button>
<button onclick="game.agent.restore('../checkpoints', 'model-ddpg-walker-4h/model')">4 hours</button>
<button onclick="game.agent.restore('../checkpoints', 'model-ddpg-walker-8h/model')">8 hours</button>
<button onclick="game.agent.restore('../checkpoints', 'model-ddpg-walker-22h/model')">22 hours</button>
<button onclick="game.agent.restore('./checkpoints', 'model-ddpg-walker-10m/model')">10 minutes old</button>
<button onclick="game.agent.restore('./checkpoints', 'model-ddpg-walker-1h/model')">1 hour</button>
<button onclick="game.agent.restore('./checkpoints', 'model-ddpg-walker-2h/model')">2 hours old</button>
<button onclick="game.agent.restore('./checkpoints', 'model-ddpg-walker-4h/model')">4 hours</button>
<button onclick="game.agent.restore('./checkpoints', 'model-ddpg-walker-8h/model')">8 hours</button>
<button onclick="game.agent.restore('./checkpoints', 'model-ddpg-walker-22h/model')">22 hours</button>
</div>
<div>
<h4>Be mean:</h4><button onclick="game.agent.env.chuckBalls()">Thow balls</button>
-1
View File
@@ -35,7 +35,6 @@ class Renderer {
this.zoom += 0.1 * (this.target_zoom - this.zoom);
this.translate_x += 0.1 * ((1.5 - minmax.min_x) - this.translate_x);
this.translate_y += 0.3 * ((minmax.max_y + 1.3) * this.zoom - this.translate_y);
console.log(this.translate_y)
this.ctx.translate(this.translate_x * this.zoom, this.translate_y);
this.ctx.scale(this.zoom, -this.zoom);