Skip to content

Unet class activation map #1657

Answered by rijobro
JumpLK asked this question in Q&A
Feb 26, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

This is my normal tactic:

net = UNet(
    dimensions=2,
    in_channels=1,
    out_channels=3,
    channels=(4, 8),
    strides=(2,),
)
for name, _ in net.named_modules():
    print(name)

Which gives the output:

model
model.0
model.0.conv
model.0.adn
model.0.adn.N
model.0.adn.D
model.0.adn.A
model.1
model.1.submodule
model.1.submodule.conv
model.1.submodule.adn
model.1.submodule.adn.N
model.1.submodule.adn.D
model.1.submodule.adn.A
model.2
model.2.conv

So perhaps model.2.conv?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@rijobro
Comment options

Answer selected by JumpLK
Comment options

You must be logged in to vote
2 replies
@rijobro
Comment options

@wyli
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants