MCPcopy Create free account
hub / github.com/10Ring/LAA-Net / forward

Method forward

models/networks/pose_hrnet.py:236–254  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

234 return self.num_inchannels
235
236 def forward(self, x):
237 if self.num_branches == 1:
238 return [self.branches[0](x[0])]
239
240 for i in range(self.num_branches):
241 x[i] = self.branches[i](x[i])
242
243 x_fuse = []
244
245 for i in range(len(self.fuse_layers)):
246 y = x[0] if i == 0 else self.fuse_layers[i][0](x[0])
247 for j in range(1, self.num_branches):
248 if i == j:
249 y = y + x[j]
250 else:
251 y = y + self.fuse_layers[i][j](x[j])
252 x_fuse.append(self.relu(y))
253
254 return x_fuse
255
256
257blocks_dict = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected