WongKinYiu / yolor

implementation of paper - You Only Learn One Representation: Unified Network for Multiple Tasks (https://arxiv.org/abs/2105.04206)
GNU General Public License v3.0
1.98k stars 524 forks source link

yolor does not work with opencv? #99

Open GenericNolon opened 2 years ago

GenericNolon commented 2 years ago

I encountered this issue when I use dnn library to read yolorp6 cfg and weight file. The weight file was converted using the Yolor function in the file model.py (from pt to weight). net = cv.dnn.readNet('yolorp6.weights','yolorp6.cfg' ) cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-sn_xpupm\opencv\modules\dnn\src\darknet\darknet_io.cpp:250: error: (-212:Parsing error) Unsupported activation: silu in function 'cv::dnn::darknet::setLayersParams::setActivation'

Biblbrox commented 2 years ago

Hello, have you any updates to your question? I have the same. And i want to use yolor model with opencv dnn.