OroChippw / SegmentAnything-OnnxRunner

SegmentAnything-OnnxRunner is an example using Meta AI Research's SAM onnx model in C++.The encoder and decoder of SAM are decoupled in this repository.
MIT License
97 stars 19 forks source link

运行没有结果 #34

Open ransheng11 opened 7 months ago

ransheng11 commented 7 months ago

image 我算是C++小白,我没按照你的步骤来构建的,而是把文件拷贝到我之前的项目中,在cmd中运行新建了output,但是没有结果,能给我一点帮助吗

OroChippw commented 7 months ago

这里可能是两个模型的路径有问题喔 你先试试用绝对路径试试看

ransheng11 commented 7 months ago

用了绝对路径还是不行

OroChippw commented 7 months ago

您之前的项目使用的第三方库分别是什么版本呢 拷贝了哪些文件呢

ransheng11 commented 7 months ago

onnxruntime-win-x64-gpu-1.13.1,opencv4.5.2 image

OroChippw commented 7 months ago

我用的是cpu版本的onnxruntime-win-x64-1.14.1喔 cpu和gpu版本的在模型构造和Ort环境构建的代码都是不一样的 不能直接套过来用的喔

ransheng11 commented 7 months ago

好的,我试一下,谢谢