Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法加载模型 #1

Open
1316540491 opened this issue Dec 29, 2023 · 0 comments
Open

无法加载模型 #1

1316540491 opened this issue Dec 29, 2023 · 0 comments

Comments

@1316540491
Copy link

作者您好,我这边部署了该工程,Opencv和OpenVion环境都配好运行OK,但是加载模型一直失败不知道是什么原因。
下面是我的调用代码:
int main()
{
std::string xml_path = "FastSAM-s.xml";
std::string image_path = "F:\平台\SAMC++\FastSAM_Awsome_Openvino-main\images\cat.jpg";

FastSAM fastsam;
try
{
    if (fastsam.Initialize(xml_path, 0.4, 0.3, true)) {

        auto start = std::chrono::steady_clock::now();
        fastsam.Infer(image_path);
        auto end = std::chrono::steady_clock::now();


        auto tt = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();;
        // slog::info << "infer time:" << tt << " ms. \n";
    }
}
catch (ov::Exception ex)
{

}
return 0;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant