MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / get_activation

Function get_activation

dmidas/backbones/utils.py:56–60  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

54
55
56def get_activation(name):
57 def hook(model, input, output):
58 activations[name] = output
59
60 return hook
61
62
63def forward_default(pretrained, x, function_name="forward_features"):

Callers 5

_make_levit_backboneFunction · 0.70
_make_swin_backboneFunction · 0.70
make_backbone_defaultFunction · 0.70
_make_next_vit_backboneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected