hpc203 / chinese-clip-opencv-onnxrun Goto Github PK
View Code? Open in Web Editor NEW使用OpenCV+onnxruntime部署中文clip做以文搜图,给出一句话来描述想要的图片,就能从图库中搜出来符合要求的图片。包含C++和Python两个版本的程序
使用OpenCV+onnxruntime部署中文clip做以文搜图,给出一句话来描述想要的图片,就能从图库中搜出来符合要求的图片。包含C++和Python两个版本的程序
如题。是 ViT-L/14 还是 ViT-B/16 还是 ViT-H/14, 谢谢
您好,我在尝试使用C++版本的程序时,遇到了以下错误
[ERROR:0] global /home/wangweinan/prj/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp (1786) handleNode DNN/ONNX: ERROR during processing node with 1 inputs and 1 outputs: [ReduceMean]:(/visual/ln_pre/ReduceMean_output_0)
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.0) /home/wangweinan/prj/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp:1797: error: (-2:Unspecified error) in function 'handleNode'
> Node [ReduceMean]:(/visual/ln_pre/ReduceMean_output_0) parse error: OpenCV(4.5.0) /home/wangweinan/prj/opencv-4.5.0/modules/dnn/include/opencv2/dnn/dnn.inl.hpp:349: error: (-204:Requested object was not found) Required argument "keepdims" not found into dictionary in function 'get'
>
已放弃 (核心已转储)
我使用自己转换的cn_clip模型也是有类似的错误
[ERROR:0] global /home/wangweinan/prj/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp (1786) handleNode DNN/ONNX: ERROR during processing node with 2 inputs and 1 outputs: [Unsqueeze]:(/visual/Unsqueeze_output_0)
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.0) /home/wangweinan/prj/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp:1797: error: (-2:Unspecified error) in function 'handleNode'
> Node [Unsqueeze]:(/visual/Unsqueeze_output_0) parse error: OpenCV(4.5.0) /home/wangweinan/prj/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp:1309: error: (-215:Assertion failed) node_proto.input_size() == 1 in function 'handleNode'
>
请问这个问题有什么思路吗,如果不使用OpenCV有其他的C++ onnxruntime部署 cn_clip 的思路嘛
image_features.bin找不到
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.