Comments (3)
Hi,在使用demo时 , 发现 在
https://github.com/HunterXuan/wx-tfjs-demo/blob/master/miniprogram/models/coco-ssd/classifier.js
文件里有下面的代码,但是temp 这个对象上并没有slice这个方法,导致无法成功执行。但是我看你的小程序上是很正常的,这个是什么原因呢?感谢回复。const tensor = tf.tidy(() => { const temp = tf.browser.fromPixels({ data: new Uint8Array(frame.data), width: frame.width, height: frame.height, }, 4) const sliceOptions = getFrameSliceOptions(this.cameraPosition, frame.width, frame.height, this.displaySize.width, this.displaySize.height) return temp.slice(sliceOptions.start, sliceOptions.size).resizeBilinear([this.displaySize.height, this.displaySize.width]).asType('int32') })
你好, 有解决吗?
from wx-tfjs-demo.
真机调试下应该是不行的
from wx-tfjs-demo.
找到原因了吗
from wx-tfjs-demo.
Related Issues (20)
- 能否出下 wepy 引用Tensorflow HOT 1
- 关于帧的同步问题,预测的时候对arraybuffer.slice一下就好了,微信小程序的frame的arraybuffer是复用的 HOT 1
- 请问如何快速开始你的项目?
- 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
- posenet迁移到uniapp上时候报错,求解 HOT 2
- Could not initialize any backends
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.