wechat-miniprogram / wechat-miniprogram/miniprogram-demo
AI示例运行失败/云开发等问题 解决方案
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 2.2k
- Avg merge
- 10h 34m
- Merged PRs (30d)
- 2
Description
辛辛苦苦运行起来了 总结一下过程给后人乘凉:
下载代码阶段问题参考 #125
运行AI阶段:
-
云开发问题:用不着云开发修改
classify.js代码
找到wx.cloud.init();注释掉,下文用到了wx.cloud.downloadFile替换为wx.downloadFile({ url: fileID, -
下载模型资源出错:
他提供的 cloudPath 是他云开发环境中的资源,我环境哪tm有这东西,所以请链接到这里onnx/models,换对应的资源,请注意cloudPath和modelPath的文件名保持一致 -
上条中
onnx/models资源跑不起来:
请参考daquexian/onnx-simplifier,他提供了一个转换模型网站convertmodel.com,请从onnx转成onnx。然后下载,本地起一个nginx也好、扔服务器、oss也好替换上条中的cloudPath -
程序运行卡住,一直没结果的:
请在classify.js中搜索async detect(frame)函数,将他的catch方法从alert替换为reject(error),保证index.js中this.classifier.detect的继续执行。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No documentation file is named; start by reading classify.js and index.js, then follow the listed AI example setup and failure points. Done means the repository has clear, reproducible guidance for the cloud-development, model-download, and detection-error issues described here.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nginx
- Domain
- cloud, documentation, machine-learning
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100