es</span><span class="p">,</span> <span class="n">classes</span><span class="p">,</span> <span class="n">confidences</span> <span class="o">=</span> <span class="n">best_results</span><span class="p">[</span><span class="n">image_idx</span><span class="p">]</span>
        <span class="k">for</span> <span class="n">idx</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">bboxes</span><span class="p">)):</span