修改第五关的图
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;
|
||||
|
||||
Reference in New Issue
Block a user