DEL</span>
        <span class="n">train_net</span> <span class="o">=</span> <span class="n">MODEL</span><span class="o">.</span><span class="n">ResNet50</span><span class="p">()</span><span class="o">.</span><span class="n">to</span><span class="p">(</span><span class="n">device</span><span class="p">)</span>

    <span class="k">elif</span> <span class="p">(</span><span class="n">model</span> <span class="o">==</span> <span class="s1">&#39;densenet&#39;</span><span class="p">):</span>
        <span class=