修改第五关的图

This commit is contained in:
RXXXBNUer
2025-11-06 18:43:47 +08:00
parent 780eb10f13
commit 8a7a79cea0
16 changed files with 39555 additions and 32 deletions

View File

@@ -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;

View File

@@ -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:'',

View File

@@ -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:'',