MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / RMSELoss

Function RMSELoss

diffusers/examples/community/dps_pipeline.py:431–432  ·  view source on GitHub ↗
(yhat, y)

Source from the content-addressed store, hash-verified

429
430 # assuming the forward process y = f(x) is polluted by Gaussian noise, use l2 norm
431 def RMSELoss(yhat, y):
432 return torch.sqrt(torch.sum((yhat - y) ** 2))
433
434 # set up source image
435 src = Image.open("sample.png")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected