/span>
            <span class="n">results</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
        <span class="k">return</span> <span class="n">results</span>
</pre></div>
</div>
<p>可以看到，模型定义包含下面几个要点：</p>
<ul class="simple">
<li><p>使用 <code class="docutils literal notranslate"><span class="pre">&#64;MODEL_REGISTRY.register('layout_detection_yolo')</span></code> 语法直接将yol