使用 Detectron2 从已保存的权重和配置文件中进行预测

问题描述

我在 .pth 文件和 YAML 格式的配置文件中有权重,我想对测试图像执行预测(建筑检测)并为此使用以下代码

async function someMethod() {
    for (var i = 0; i < 5; i++) {
        await new Promise(resolve => {
            setTimeout(()=> {
                console.log('This is iteration ' + i); 
                resolve();
            },1500);
        });
    }
    console.log ('print me only after all iterations');
}
someMethod();

但是当我加载自己的配置文件时,出现以下

enter image description here

错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)