MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / mse

Function mse

utils/image_utils.py:14–15  ·  view source on GitHub ↗
(img1, img2)

Source from the content-addressed store, hash-verified

12import torch
13
14def mse(img1, img2):
15 return (((img1 - img2)) ** 2).view(img1.shape[0], -1).mean(1, keepdim=True)
16
17def psnr(img1, img2):
18 mse = (((img1 - img2)) ** 2).view(img1.shape[0], -1).mean(1, keepdim=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected