</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>
<img alt="_images/squirrel_seg.jpg" src="_images/squirrel_seg.jpg" />
<p><em>WOW! We have successfully trained a custom model for performing instance segmentation and object detection on butterflies and squirrels.</em></p>
<p><strong>Extraction of Segmented Objects</strong></p>
<p>PixelLib now makes it possible to extra