t;Modifications copyright (C) 2019, Argo AI, LLC&gt;</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd">This tool is loosely based off of Facebook&#39;s Mask R-CNN visualization tool.</span>
<span class="sd">https://github.com/facebookresearch/Detectron/blob/master/detectron/utils/vis.py</span>
<span class="sd">&quot;&quot;&quot;</span>

<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="k">import</span> <span cl