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

Method __init__

visualization/visualize_results.py:60–66  ·  view source on GitHub ↗
(self, direction, amb, diff)

Source from the content-addressed store, hash-verified

58
59class FixedDirectionLight(torch.nn.Module):
60 def __init__(self, direction, amb, diff):
61 super(FixedDirectionLight, self).__init__()
62 self.light_dir = direction
63 self.amb = amb
64 self.diff = diff
65 self.is_hacking = not (isinstance(self.amb, float)
66 or isinstance(self.amb, int))
67
68 def forward(self, feat):
69 batch_size = feat.shape[0]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected