Fixe urls

This commit is contained in:
Thibault Neveu
2018-06-16 17:42:03 +01:00
parent d582567d37
commit 81560062e5
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ if (levelObject){
}
// Create the editor (canvasID, levelUrl)
var editor = new metacar.editor("editor", "http://localhost:3000/public/levels/levelGet.json");
var editor = new metacar.editor("editor", levelToLoad);
editor.load().then(() => {
editor.addEvent("save", (content) => {
// Put the object into storage
+1 -1
View File
@@ -35,7 +35,7 @@ env.load().then(() => {
});
env.addEvent("save", () => agent.save());
env.addEvent("load", (content) => {
loadJSON("https://meta-project/public/models/qtable/qtable.json", (content) => {
loadJSON("https://metacar-project.com/public/models/qtable/qtable.json", (content) => {
agent.restore(content);
displayQTable("q_table", agent.stateList, agent, ["Top", "Left", "Right"]);
});
+4 -4
View File
@@ -175,10 +175,10 @@ class PolicyAgent {
/*
Restore the weights of the network
*/
//this.valueModel = await tf.loadModel('https://metacar-project.com/public/models/policy/value-model-policy-agent.json');
//this.policyModel = await tf.loadModel("https://metacar-project.com/public/models/policy/policy-model-policy-agent.json");
this.valueModel = await tf.loadModel('http://localhost:3000/public/models/policy/value-model-policy-agent.json');
this.policyModel = await tf.loadModel("http://localhost:3000/public/models/policy/policy-model-policy-agent.json");
this.valueModel = await tf.loadModel('https://metacar-project.com/public/models/policy/value-model-policy-agent.json');
this.policyModel = await tf.loadModel("https://metacar-project.com/public/models/policy/policy-model-policy-agent.json");
//this.valueModel = await tf.loadModel('http://localhost:3000/public/models/policy/value-model-policy-agent.json');
//this.policyModel = await tf.loadModel("http://localhost:3000/public/models/policy/policy-model-policy-agent.json");
}
play(){
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "metacar",
"description": "A reinforcement learning environment for self-driving cars in the browser.",
"version": "0.0.3",
"version": "0.0.4",
"main": "dist/metacar.min.js",
"author": "Thibault Neveu",
"license": "MIT",