span> <span class="n">progress</span><span class="o">=</span><span class="mf">0.0</span><span class="p">):</span>
        <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">        Calculates the self-supervised photometric loss.</span>

<span class="sd">        Parameters</span>
<span class="sd">        ----------</span>
<span class="sd">        image : torch.Tensor [B,3,H,W]</span>
<span class="sd">            Original image</span>
<span class="sd">        ref_images : list of torch.Tensor [B,3,H