MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / to_img

Function to_img

script/feature/misc.py:327–330  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

325 return pose_loss
326
327def to_img(x):
328 x = (x + 1.) * 0.5
329 x = x.clamp(0, 1)
330 return x
331
332def masked_loss(criterion, f1, f2, valid_mask):
333 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected