<p dir="auto">I am using Colab where OpenCV version is 4.1.2 and while trying to do inference of a YOLOv7 model I got following error:<br>
<code class="notranslate">error: OpenCV(4.1.2) /io/opencv/modules/dnn/src/darknet/darknet_io.cpp:554: error: (-212:Parsing error) Unsupported activation: logistic in function 'ReadDarknetFromCfgStream'</code></p>
<p dir="auto">And above error came in this line of code <code class="notranslate">net = cv2.dnn.readNet('/content/gdrive/MyDrive/yolov7/yolov7-obj.cfg', '/content/gdrive/MyDrive/yolov7/weights/yolov7-obj_final.weights')</code></p>
<p dir="auto">The weight and cfg file can be used from the following official links: <a href="url">https://raw.githubusercontent.com/AlexeyAB/darknet/master/cfg/yolov7-tiny.cfg</a> and <a href="url">https://github.com/AlexeyAB/darknet/releases/download/yolov4/yolov7-tiny.weights</a></p>
<ul dir="auto">
<li>
<p dir="auto">OpenCV =&gt; 4.6.0</p>
</li>
<li>
<p dir="auto">Operating System / Platform =&gt; Windows 64 Bit</p>
</li>
<li>
<p dir="auto">Compiler =&gt; Visual Studio 2017<br>
--&gt;</p>
</li>
<li>
<p dir="auto">Compiler =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></p>
</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">How support to YOLOv7 by onnx format?</p>
<p dir="auto"><a href="https://github.com/WongKinYiu/yolov7">https://github.com/WongKinYiu/yolov7</a></p>