mirror of
https://github.com/wassname/metacar.git
synced 2026-09-09 11:26:47 +08:00
Fixe urls
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]);
|
||||
});
|
||||
|
||||
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user