ass="o">.</span><span class="n">segmentImage</span><span class="p">(</span><span class="s2">&quot;sample1.jpg&quot;</span><span class="p">,</span> <span class="n">show_bboxes</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">output_image_name</span><span class="o">=</span><span class="s2">&quot;sample_out.jpg&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>The custom model is loaded and we called the function to segment the image.</p>
<img alt="_i