Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
def
get_activation(name):
57
def
hook(model, input, output):
58
activations[name] = output
59
60
return
hook
61
62
63
def
forward_default(pretrained, x, function_name=
"forward_features"
):
Callers
5
_make_levit_backbone
Function · 0.70
_make_vit_b_rn50_backbone
Function · 0.70
_make_swin_backbone
Function · 0.70
make_backbone_default
Function · 0.70
_make_next_vit_backbone
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected