Extracting GraphNode Layers from Pretrained Network and converting them to nn.Module format. #154
-
I selected my backbone as: i get error:
is there a method that convers 'GraphNode' to the default nn.Module() torch type objects so i can connect these layers to my custom Torch nn.Module classes? or is it that i should rewrite my Torch classes to inherit only methods from |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I'm glad you are interested in trying this. :)
|
Beta Was this translation helpful? Give feedback.
-
@leondgarse Thanks. Also, this can also be done by registering forward hooks to the desired layers and detaching the activations since the loaded backbone is nn.Module so native torch methods also works for this but i get other issues with shape mismatch with |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
kecam==1.3.17
.1.3.24
, comment off those lines incaformer.py
in the above check-in if need 4D outputs. Just someReshape
layers.