MCPcopy Create free account
hub / github.com/DIVE128/DMVSNet / sigmoid

Function sigmoid

loss.py:271–272  ·  view source on GitHub ↗
(x, base=2.71828)

Source from the content-addressed store, hash-verified

269 loss = loss * weight
270 return loss
271def sigmoid(x, base=2.71828):
272 return 1 / (1 + torch.pow(base, -x))
273def entropy_loss(prob_volume, depth_gt, mask, depth_value, return_prob_map=False):
274 # from AA
275 mask_true = mask

Callers 2

unified_step_focal_lossFunction · 0.85
unified_focal_lossFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected