class="o">.</span><span class="n">numpy</span><span class="p">()[</span><span class="mi">0</span><span class="p">]</span>
        <span class="n">saliency_map</span> <span class="o">=</span> <span class="n">convert_to_grayscale</span><span class="p">(</span><span class="n">saliency_map</span><span class="p">)</span>
        <span class="n">saliency_map</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">from_numpy</span><span class="p">(</span><span class="n">