MCPcopy Create free account
hub / github.com/computational-imaging/bacon / function_mse

Function function_mse

loss_functions.py:5–8  ·  view source on GitHub ↗
(model_output, gt)

Source from the content-addressed store, hash-verified

3
4
5def function_mse(model_output, gt):
6 idx = model_output['model_in']['idx'].long().squeeze()
7 loss = (model_output['model_out']['output'][:, idx] - gt['func'][:, idx]) ** 2
8 return {'func_loss': loss.mean()}
9
10
11def image_mse(model_output, gt):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected