<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.1 master</li>
<li>Operating System / Platform =&gt; Windows 10 64 Bit</li>
<li>Compiler =&gt; Visual Studio 2019</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I'm try master branch with .NET assembly and testing with xunit.</p>
<p dir="auto">But most of time it crashed at end of xunit running.</p>
<p dir="auto">Detail windbg trace attached:</p>
<p dir="auto"><a href="https://github.com/opencv/opencv/files/3914096/20191203_crash.txt">20191203_crash.txt</a></p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 4.0.1</li>
<li>Operating System / Platform =&gt; Windows 10 64 Bit</li>
<li>Compiler =&gt; Visual Studio 2017</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">The tf_text_graph_faster_rcnn.py stops with error when trying to generate pbtxt file for faster_rcnn_nas model from TF object detection model zoo [1-2] following this guide [3].</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    Traceback (most recent call last):
      File &quot;tf_text_graph_faster_rcnn.py&quot;, line 241, in &lt;module&gt;
        createFasterRCNNGraph(args.input, args.config, args.output)
      File &quot;tf_text_graph_faster_rcnn.py&quot;, line 34, in createFasterRCNNGraph
        features_stride = float(config['feature_extractor'][0]['first_stage_features_stride'][0])
    KeyError: 'first_stage_features_stride'"><pre class="notranslate"><code class="notranslate">    Traceback (most recent call last):
      File "tf_text_graph_faster_rcnn.py", line 241, in &lt;module&gt;
        createFasterRCNNGraph(args.input, args.config, args.output)
      File "tf_text_graph_faster_rcnn.py", line 34, in createFasterRCNNGraph
        features_stride = float(config['feature_extractor'][0]['first_stage_features_stride'][0])
    KeyError: 'first_stage_features_stride'
</code></pre></div>
<p dir="auto">Would appreciate any tips and ideas on how to fix this bug.</p>
<p dir="auto">References.</p>
<p dir="auto">[1] <a href="https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md">https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md</a></p>
<p dir="auto">[2] <a href="https://github.com/tensorflow/models/blob/master/research/object_detection/samples/configs/faster_rcnn_nas_coco.config">https://github.com/tensorflow/models/blob/master/research/object_detection/samples/configs/faster_rcnn_nas_coco.config</a></p>
<p dir="auto">[3] <a href="https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API">https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API</a></p>