pan class="p">(</span><span class="n">pipe</span><span class="p">,</span> <span class="n">prompt</span><span class="p">,</span> <span class="n">image_name</span><span class="p">):</span>
    <span class="n">seed</span> <span class="o">=</span> <span class="mi">42</span>
    <span class="k">with</span> <span class="n">torch</span><span class="o">.</span><span class="n">no_grad</span><span class="p">():</span>
        <span class="n">image</span> <span class="o">=</span> <span class="n">pipe</span><span class