MCPcopy Create free account
hub / github.com/baegwangbin/surface_normal_uncertainty / forward

Method forward

models/baseline.py:51–59  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

49 self.original_model = basemodel
50
51 def forward(self, x):
52 features = [x]
53 for k, v in self.original_model._modules.items():
54 if (k == 'blocks'):
55 for ki, vi in v._modules.items():
56 features.append(vi(features[-1]))
57 else:
58 features.append(v(features[-1]))
59 return features
60
61
62# Decoder (no pixel-wise MLP, no uncertainty-guided sampling)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected