plenoptic.loss.mse#
- plenoptic.loss.mse(synth_rep, ref_rep, **kwargs)[source]#
Calculate the MSE between
synth_repandref_rep.For two tensors, \(x\) and \(y\), with \(n\) values each:
\[MSE = \frac{1}{n}\sum_{i=1}^n (x_i - y_i)^2\]The two images must have a float dtype.
- Parameters:
- Return type:
- Returns:
loss – The mean-squared error between
synth_repandref_rep.