Comments (5)
document.getElementById('photo') 返回的 dom 类型是什么?
from paddle.js.
按照这里的demo来实现的
https://github.com/PaddlePaddle/Paddle.js/blob/bde871f1064d2f5559be6a0cac23c0c17332f6cd/packages/paddlejs-core/README_cn.md
// Import @paddlejs/paddlejs-core
import { Runner } from '@paddlejs/paddlejs-core';
// Import the registered WebGL backend.
import '@paddlejs/paddlejs-backend-webgl';
const runner = new Runner({
modelPath: '/model/mobilenetv2', // model path, e.g. http://xx.cc/path, http://xx.cc/path/model.json, /localModelDir/model.json, /localModelDir
feedShape: { // input shape
fw: 256,
fh: 256
},
fill?: '#fff' // fill color when resize image, default value is #fff
});
// init runner
await runner.init();
// predict and get result
const res = await runner.predict(mediadata, callback?);
这里 没写 mediadata 到底是一个dom还是其它的什么类型,dom 是 canvas还是img,如果是数据的话是不是需要转到0-1的区间内。
from paddle.js.
media data 可以 HTMLImageElement | HTMLVideoElement | HTMLCanvasElement
from paddle.js.
按照上面这样,给的是 HTMLImageElement ,但结果好像没对。
from paddle.js.
你的模型可以上传一下吗?
from paddle.js.
Related Issues (20)
- 初始化模型时浏览器控制台报错
- configuration.node has an unknown property 'fs'. 在windwos的32位node上运行humanseg的demo报错。
- TS2307: Cannot find module '@paddlejs/paddlejs-core' or its corresponding type declarations.
- 是不是特别吃内存?
- 在线demo运行失败
- import * as humanseg from '@paddlejs-models/humanseg/lib/index_gpu';
- 服务挂了,啥时候修好?
- 转换模型出现这种bug是为什么
- 支持在react native中运行吗?
- Cannot install paddlejsconverter HOT 1
- 小程序引入paddlejs转换后的模型报错 HOT 1
- Cannot read property 'naturalHeight' of undefined HOT 1
- 项目跟本跑步起来啊 HOT 3
- [OCR] 识别视频截图导致帧率急剧降低 HOT 5
- 怎么转换成 tf 模型
- 使用paddlejsconverter转换paddleorc的中文文字识别模型后,模型不能正常加载。 HOT 4
- 在webWorker使用paddlecore:找不到document HOT 1
- ocr 识别失败
- safari:SyntaxError: Unexpected EOF HOT 2
- ios手机无法加载paddle.js物体检测模型 HOT 3
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 paddle.js.