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'
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'