修改第五关的图
This commit is contained in:
@@ -6,7 +6,7 @@ import * as Blockly from 'blockly/core';
|
||||
NavExt.init();
|
||||
window.tf = tf;
|
||||
|
||||
let featureExtractor;
|
||||
// let featureExtractor;
|
||||
// featureExtractor = await tf.loadGraphModel("../common/media/tfmodel/model.json");
|
||||
// window.featureExtractor = featureExtractor;
|
||||
|
||||
@@ -321,7 +321,7 @@ async function prepare_qmyixtxi(imgTensor) {
|
||||
.sub(tf.scalar(1))
|
||||
.expandDims(0);
|
||||
|
||||
const features = featureExtractor.predict(preprocessedImg);
|
||||
const features = window.featureExtractor.predict(preprocessedImg);
|
||||
|
||||
let activation = features;
|
||||
return activation;
|
||||
|
||||
@@ -252,7 +252,7 @@ var $builtinmodule = function (name) {
|
||||
map:[
|
||||
[0, 1, 1, 1, 1, 1, 1, 0],
|
||||
[0, 1, 0, 0, 0, 0, 1, 0],
|
||||
[0, 1, 1, 2, 21, 0, 1, 0],
|
||||
[0, 1, 1, 2, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
@@ -260,7 +260,7 @@ var $builtinmodule = function (name) {
|
||||
[0, 0, 0, 0, 0, 0, 0, 0]],
|
||||
tiles: '../common/js/skulpt_mixcar/pic/tiles_road.png',//地图路径图片
|
||||
marker: '../common/js/skulpt_mixcar/pic/Start_final.png',//终点图标图片
|
||||
background: '../common/js/skulpt_mixcar/pic/bg4.jpg',//地图背景图片
|
||||
background: '../common/js/skulpt_mixcar/pic/bg1.jpg',//地图背景图片
|
||||
wall:'',
|
||||
award:'',
|
||||
barrier:'',
|
||||
|
||||
@@ -252,7 +252,7 @@ var $builtinmodule = function (name) {
|
||||
map:[
|
||||
[0, 1, 1, 1, 1, 1, 1, 0],
|
||||
[0, 1, 0, 0, 0, 0, 1, 0],
|
||||
[0, 1, 1, 2, 21, 0, 1, 0],
|
||||
[0, 1, 1, 2, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
@@ -260,7 +260,7 @@ var $builtinmodule = function (name) {
|
||||
[0, 0, 0, 0, 0, 0, 0, 0]],
|
||||
tiles: '../common/js/skulpt_mixcar/pic/tiles_road.png',//地图路径图片
|
||||
marker: '../common/js/skulpt_mixcar/pic/Start_final.png',//终点图标图片
|
||||
background: '../common/js/skulpt_mixcar/pic/bg4.jpg',//地图背景图片
|
||||
background: '../common/js/skulpt_mixcar/pic/bg1.jpg',//地图背景图片
|
||||
wall:'',
|
||||
award:'',
|
||||
barrier:'',
|
||||
|
||||
Reference in New Issue
Block a user