MCPcopy Create free account
hub / github.com/deepbrainai-research/float / __init__

Method __init__

models/float/encoder.py:240–252  ·  view source on GitHub ↗
(self, size, dim=512, dim_motion=20)

Source from the content-addressed store, hash-verified

238
239class Encoder(nn.Module):
240 def __init__(self, size, dim=512, dim_motion=20):
241 super(Encoder, self).__init__()
242
243 # appearance netmork
244 self.net_app = EncoderApp(size, dim)
245
246 # motion network
247 fc = [EqualLinear(dim, dim)]
248 for i in range(3):
249 fc.append(EqualLinear(dim, dim))
250
251 fc.append(EqualLinear(dim, dim_motion))
252 self.fc = nn.Sequential(*fc)
253
254 def enc_app(self, x):
255

Callers

nothing calls this directly

Calls 3

EncoderAppClass · 0.85
EqualLinearClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected