n the above cd function</p></section>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def cd_track_vgg(blob, im_torch, model, model_type=&#39;vgg&#39;):
    &#39;&#39;&#39;This implementation of cd is very long so that we can view CD at intermediate layers
    In reality, one should use the loop contained in the above cd function
    &#39;&#39;&#39;
    # set up model
    model.eval()

    # set up blobs
    blob = torch.cuda.FloatTensor(blob)
    rele