MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / get_activation

Function get_activation

ldm/modules/midas/midas/vit.py:159–163  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

157
158
159def get_activation(name):
160 def hook(model, input, output):
161 activations[name] = output
162
163 return hook
164
165
166def get_readout_oper(vit_features, features, use_readout, start_index=1):

Callers 2

_make_vit_b16_backboneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected