MCPcopy Create free account
hub / github.com/MotrixLab/ADHMR / __init__

Method __init__

ADHMR/lib/utils/inference.py:140–143  ·  view source on GitHub ↗
(self,bs)

Source from the content-addressed store, hash-verified

138
139class DeltaDepthBeta(nn.Module):
140 def __init__(self,bs):
141 super(DeltaDepthBeta, self).__init__()
142 self.delta_d = nn.Parameter(torch.zeros(bs,1),requires_grad=True)
143 self.delta_b = nn.Parameter(torch.zeros(bs,1,10),requires_grad=True)
144 def forward(self,depth,beta):
145 return depth+self.delta_d,self.delta_b+beta
146

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected