MCPcopy Create free account
hub / github.com/3DAnimals/3DAnimals / __init__

Method __init__

model/render/light.py:54–58  ·  view source on GitHub ↗
(self, base)

Source from the content-addressed store, hash-verified

52 MAX_ROUGHNESS = 0.5
53
54 def __init__(self, base):
55 super(EnvironmentLight, self).__init__()
56 self.mtx = None
57 self.base = torch.nn.Parameter(base.clone().detach(), requires_grad=True)
58 self.register_parameter('env_base', self.base)
59
60 def xfm(self, mtx):
61 self.mtx = mtx

Callers 1

__init__Method · 0.45

Calls 2

detachMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected