MCPcopy Create free account
hub / github.com/OpenImagingLab/4DSloMo / msssim

Function msssim

utils/loss_utils.py:68–71  ·  view source on GitHub ↗
(rgb, gts)

Source from the content-addressed store, hash-verified

66ms_ssim = MultiScaleStructuralSimilarityIndexMeasure(data_range=1.0)
67
68def msssim(rgb, gts):
69 # assert (rgb.max() <= 1.05 and rgb.min() >= -0.05)
70 # assert (gts.max() <= 1.05 and gts.min() >= -0.05)
71 return ms_ssim(rgb, gts).item()

Callers 1

training_reportFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected