Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion miniprogram/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const config = {

// 云开发环境 ID
envId: 'release-b86096',
// envId: 'test-f0b102',

// 云开发-存储 示例文件的文件 ID
demoImageFileId: 'cloud://release-b86096.7265-release-b86096-1258211818/demo.jpg',
Expand Down
2 changes: 1 addition & 1 deletion miniprogram/packageAPI/pages/ai/mobilenet/classify.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ export class Classifier {
wx.cloud.init();
console.log("begin download model");

const cloudPath = 'cloud://containertest-0gmw3ulnd8d9bc7b.636f-containertest-0gmw3ulnd8d9bc7b-1258211818/mobilenetv2-12.onnx'
const cloudPath = 'cloud://release-b86096.7265-release-b86096-1258211818/amosaic/mobilenetv2-12.onnx'
this.downloadFile(cloudPath, function(r) {
console.log(`下载进度:${r.progress}%,已下载${r.totalBytesWritten}B,共${r.totalBytesExpectedToWrite}B`)
}).then(result => {
Expand Down
2 changes: 1 addition & 1 deletion miniprogram/packageAPI/pages/ai/mobilenet_int8/classify.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ export class Classifier {
wx.cloud.init();
console.log("begin download model");

const cloudPath = 'cloud://containertest-0gmw3ulnd8d9bc7b.636f-containertest-0gmw3ulnd8d9bc7b-1258211818/mobilenetv2_qat.onnx'
const cloudPath = 'cloud://release-b86096.7265-release-b86096-1258211818/amosaic/mobilenetv2_qat.onnx'
this.downloadFile(cloudPath, function(r) {
console.log(`下载进度:${r.progress}%,已下载${r.totalBytesWritten}B,共${r.totalBytesExpectedToWrite}B`)
}).then(result => {
Expand Down
2 changes: 1 addition & 1 deletion miniprogram/packageAPI/pages/ai/style-trans/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Page({
wx.cloud.init()
console.log('begin download model')

const cloudPath = 'cloud://containertest-0gmw3ulnd8d9bc7b.636f-containertest-0gmw3ulnd8d9bc7b-1258211818/mosaic-8.onnx'
const cloudPath = 'cloud://release-b86096.7265-release-b86096-1258211818/amosaic/mosaic-8.onnx'

this.downloadFile(cloudPath, function (r) {
console.log(`下载进度:${r.progress}%,已下载${r.totalBytesWritten}B,共${r.totalBytesExpectedToWrite}B`)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const config = require('../../../../../config')

Component({
behaviors: ['wx://component-export'],
export() {
return { getARModelList: this.getARModelList.bind(this) }
},
data: {
chooseMapFile: null,
envId: 'test-f0b102',
modelName: 'arDemo',
// 模型数据
// @ modelStatus 模型状态
Expand Down Expand Up @@ -144,7 +145,7 @@ Component({
wx.cloud.callFunction({
name: 'ARDemo',
config: {
env: this.data.envId
env: config.envId
},
data: reqData
}).then((resp) => {
Expand Down Expand Up @@ -276,7 +277,7 @@ Component({
wx.cloud.callFunction({
name: 'ARDemo',
config: {
env: this.data.envId
env: config.envId
},
data: {
type: 'GetARModel',
Expand Down Expand Up @@ -354,7 +355,7 @@ Component({
cloudPath: `3dmarker/arVideo${id}.mp4`,
filePath: res.tempFiles[0].tempFilePath, // 文件路径
config: {
env: this.data.envId
env: config.envId
},
timeout: 60000,
success(res) {
Expand Down
Loading