错误图片
Android捆绑失败5334ms
无法解析module ../model/weights.bin fromD: 回购 BANANAFILE 助手 tensor-helper.js:
这些文件都不存在:
-
模型 weights.bin (.native | .android.ts | .native.ts | .ts | .android.tsx | .native.tsx | .tsx | .android.js | .native.js | . js | .android.jsx | .native.jsx | .jsx | .android.json | .native.json | . json)
-
weights.bin 指数模型(.native | .android.ts | .native.ts | .ts | .android.tsx | .native.tsx | .tsx | .android.js | .native.js | . js | .android.jsx | .native.jsx | .jsx | .android.json | .native.json | . json)
10 |
11 | const modelJson = require('./model/model.json');
12 | const modelWeights = require('../model/weights.bin');
React-native使用的是es6导入,所以请使用
import modelJson from "../model/model.json"
import modelWeights from "../model/weights.bin"