diff --git a/demo/webapp/public/js/editor.js b/demo/webapp/public/js/editor.js index 41c54e0..97b0e54 100644 --- a/demo/webapp/public/js/editor.js +++ b/demo/webapp/public/js/editor.js @@ -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 diff --git a/demo/webapp/public/js/level0.js b/demo/webapp/public/js/level0.js index 6990832..47a29c0 100644 --- a/demo/webapp/public/js/level0.js +++ b/demo/webapp/public/js/level0.js @@ -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"]); }); diff --git a/demo/webapp/public/js/policy_agent.js b/demo/webapp/public/js/policy_agent.js index b739695..efed207 100644 --- a/demo/webapp/public/js/policy_agent.js +++ b/demo/webapp/public/js/policy_agent.js @@ -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(){ diff --git a/package.json b/package.json index 5e903e8..3bcccf9 100644 --- a/package.json +++ b/package.json @@ -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",