Comments (2)
在真机上是这样报错的,是不是这个env需要在哪里进行配置 this.fetch = env().platform.fetch;
"undefined is not an object (evaluating '(0,l.env)().platform.fetch')", line: 1183, column: 144156, sourceURL: "https://usr//pages/train/app-service.js", stack: "e@https://usr//pages/train/app-service.js:1183:144156↵k@https://usr//pages/train/app-service.js:1183:149510↵value@https://usr//pages/train/app-service.js:1183:458213↵@https://usr//pages/train/app-service.js:1183:458556↵@https://usr//app-service.js:3624:515624↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵f@[native code]↵f@https://usr//app-service.js:3624:515892↵@https://usr//app-service.js:3624:521489↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp400@https://usr//app-service.js:3624:521944↵@https://usr//app-service.js:3624:517507↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵@https://usr//app-service.js:3624:517574↵@https://usr//app-service.js:3624:536440↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵a@[native code]↵a@https://usr//app-service.js:3624:536773↵@https://usr//app-service.js:3624:537521↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵o@[native code]↵o@https://usr//app-service.js:3624:537580↵@https://usr//app-service.js:3624:537814↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵@https://usr//app-service.js:3624:537855↵j@https://lib/WASubContext.js:1:70746↵@https://usr//app-service.js:3624:537199↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp409@https://usr//app-service.js:3624:537919↵@https://usr//app-service.js:3624:515624↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵f@[native code]↵f@https://usr//app-service.js:3624:515892↵@https://usr//app-service.js:3624:521489↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp400@https://usr//app-service.js:3624:521944↵@https://usr//app-service.js:3624:517507↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵@https://usr//app-service.js:3624:517574↵@https://usr//app-service.js:3624:536440↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵a@[native code]↵a@https://usr//app-service.js:3624:536773↵@https://usr//app-service.js:3624:537521↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵o@[native code]↵o@https://usr//app-service.js:3624:537580↵@https://usr//app-service.js:3624:537814↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵@https://usr//app-service.js:3624:537855↵j@https://lib/WASubContext.js:1:70746↵@https://usr//app-service.js:3624:537199↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp409@https://usr//app-service.js:3624:537919↵@https://usr//pages/train/app-service.js:1183:20385↵@https://usr//pages/train/app-service.js:1183:6579↵@https://usr//pages/train/app-service.js:1183:5621↵j@https://lib/WASubContext.js:1:70746↵f@https://usr//pages/train/app-service.js:1183:5410↵@https://usr//pages/train/app-service.js:1183:4110↵@https://usr//pages/train/app-service.js:1183:6579↵@https://usr//pages/train/app-service.js:1183:5621↵j@https://lib/WASubContext.js:1:70746↵f@https://usr//pages/train/app-service.js:1183:5410↵@https://usr//app-service.js:3624:515624↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵f@[native code]↵f@https://usr//app-service.js:3624:515892↵@https://usr//app-service.js:3624:521489↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp400@https://usr//app-service.js:3624:521944↵@https://usr//app-service.js:3624:517507↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]"}
from wx-tfjs-demo.
小程序里没有fetch这个方法,需要先引入,然后配置给tfjs,参考这里的代码:https://github.com/HunterXuan/wx-tfjs-demo/blob/master/miniprogram/app.ts#L32
from wx-tfjs-demo.
Related Issues (20)
- Error: module "@tensorflow/tfjs-backend-webgl.js" is not defined HOT 1
- 能否出下 wepy 引用Tensorflow HOT 1
- 关于帧的同步问题,预测的时候对arraybuffer.slice一下就好了,微信小程序的frame的arraybuffer是复用的 HOT 1
- models 报 temp.slice slice is not a function 错误 HOT 3
- 请问如何快速开始你的项目?
- TypeError: temp.slice is not a function HOT 2
- package.json默认应在miniprogram目录下 HOT 1
- temp.slice is not a function HOT 1
- 类型“GLTF”上不存在属性“visible”。 HOT 1
- Facemesh, IOS 体验版成功,但是安卓不可以 HOT 1
- 模型的加载问题 HOT 3
- 有没有兼容新模型movenet的打算 HOT 6
- mind-ar-js现在是集成到这项目里面了么?
- 图像追踪速度 HOT 1
- posenet点击没反应啊 HOT 1
- 模型加载不出来 啥原因 HOT 10
- 引入新的模型 HOT 2
- 训练好的模型导入到小程序用coco-ssd加载报错 HOT 2
- 尝试加载handpose模型报错连接超时,修改地址后检测报错TypeError: tf.image.rotateWithOffset is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wx-tfjs-demo.