MCPcopy Create free account
hub / github.com/OpenGVLab/DragGAN / hook

Function hook

draggan/draggan.py:48–49  ·  view source on GitHub ↗
(module, input, output)

Source from the content-addressed store, hash-verified

46
47 # Forward hook to collect features
48 def hook(module, input, output):
49 G.activations = output
50
51 # Apply the hook to the 7th layer (256x256)
52 for i, (name, module) in enumerate(G.synthesis.named_children()):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected