我无法使用 Roboflow 在 Web 上加载 AI 模型

问题描述 投票:0回答:0

我正在尝试在网络上部署我的模型。但是当加载来自 Roboflow 教程的模型时,它会抛出错误“I.map is not a function”。我尝试使用我在 Roboflow 网站上训练的模型,但我得到了同样的错误。但是 Robolow 上还有一些其他模型可以与我的代码完美配合。我不知道模型有什么问题。有什么办法可以解决吗?

enter image description here 我使用的模型:https://universe.roboflow.com/roboflow-jvuqo/football-players-detection-3zvbc/dataset/1

const video = document.querySelector("#video"); 
let model; 
let cameraMode = "environment";  
const toLoad = {     
    model: "football-players-detection-3zvbc",         
    ersion: 4 
};                 
const loadModelPromise = new Promise(function(resolve, reject) {     
    roboflow.auth({         
        publishable_key: publishable_key     
    }).load(toLoad).then(function(m) {         
        model = m;         
        window.model = model;         
        resolve();     
    }); 
});

最小代码示例:https://codepen.io/meisken/pen/NWOXKZd

使用 roboflow 在网络上加载模型

javascript artificial-intelligence object-detection roboflow
© www.soinside.com 2019 - 2024. All rights reserved.