-
Notifications
You must be signed in to change notification settings - Fork 3
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
关于运行报错 #10
Comments
根据CMakeList.txt,cppDemo是exe,应该启动这个exe,项目配置成Debug x64 |
好的,谢谢大佬,您回复得太及时了,我这就试一下!
在 2024-06-11 09:15:31,"人工智能大讲堂" ***@***.***> 写道:
根据CMakeList.txt,cppDemo是exe,应该启动这个exe,项目配置成Debug x64
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
https://github.com/AIDajiangtang/Segment-Anything-CPP/blob/main/bpe_simple_vocab_16e6.txt |
感谢大佬的及时反馈,我先试试哈。
在 2024-06-11 15:37:25,"人工智能大讲堂" ***@***.***> 写道:
https://github.com/AIDajiangtang/Segment-Anything-CPP/blob/main/bpe_simple_vocab_16e6.txt
但是我这个项目中CLIP 文本编码部分有问题,貌似是字符编码相关问题,还没有解决,暂时可以用点和框提示
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
大佬您好,根据您的指导,我结合自己的PC配置了OpenCV4.9.0和onnxruntime-win-gpu-x64-1.7.0。
因此我将CMakeList.txt的内容做了如下改动:
Find OpenCV
set(OpenCV_INCLUDE_DIRS "D:/OpenCV490/opencv/build/include")
set(OpenCV_LIBS "D:/OpenCV490/opencv/build/x64/vc16/lib/opencv_world490d.lib") # Debug 版本
Find ONNX Runtime
set(ONNXRUNTIME_INCLUDE_DIRS "D:/onnxruntime-win-gpu-x64-1.7.0/include")
set(ONNXRUNTIME_LIBRARIES "D:/onnxruntime-win-gpu-x64-1.7.0/lib/onnxruntime.lib")
后来我用CMake为该项目生成解决方案:
1、cd到github压缩包解压后程序文件夹下
2、按以下顺序操作:
mkdir build //创建build文件夹
cd build cmake .. //执行build
3、我在build文件夹下找到.sln文件并在VS Studio2019中打开
4、运行sam.cpp,结果报错:
请大佬有时间的话帮忙分析一下我这边存在什么问题,我之前在网上尝试了很多相关问题的解法都没有头绪。
我自己目前倾向于CMake过程出了问题,可能是我下载并运行开源C++项目的经验还不够,求大佬指点,谢谢!
The text was updated successfully, but these errors were encountered: