Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to obtain the intermediate features (bottleneck features) in the downsampling stage of U-Net? #8253

Open
Guoxt opened this issue Dec 3, 2024 · 0 comments

Comments

@Guoxt
Copy link

Guoxt commented Dec 3, 2024

intermediate_outputs = {}
def forward_hook(layer_name):
def hook(module, input, output):
intermediate_outputs[layer_name] = output

return hook

input = torch.randn(4,1,64,64,64)
net.model[?].register_forward_hook(forward_hook("XXX"))

How should this be set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant