hpc203 / yolact-opencv-dnn-cpp-python

使用opencv部署yolact实例分割,包含C++和Python两种版本的程序
85 stars 31 forks source link

no member named ‘getUnconnectedOutLayersNames’ #2

Open skyline-o opened 3 years ago

skyline-o commented 3 years ago

main.cpp,make时报错: main.cpp:232:36: error: ‘class cv::dnn::experimental_dnn_34_v7::Net’ has no member named ‘getUnconnectedOutLayersNames’; did you mean ‘getUnconnectedOutLayers’? this->net.forward(outs, this->net.getUnconnectedOutLayersNames()); 我用的opencv3.4,请问是opencv版本的问题吗?

hpc203 commented 3 years ago

opencv版本升级到最新的4.5

qingqinghu1026 commented 3 years ago

terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.0.1) /.../workspace/opencv-4/opencv-4.0.1/modules/dnn/src/layers/eltwise_layer.cpp:110: error: (-215:Assertion failed) inputs.size() >= 2 in function 'getMemoryShapes'

已放弃 (核心已转储) 必须使用4.5以上的版本吗?这个core是因为版本不对造成的吗