You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Last time I implemented it was with a HuggingFace model as the backbone. From my understanding, you need to instantiate self.backbone with the model weights, and then pass the data through self.backbone and the head separately in forward(). This is what I did with hugginface:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Last time I implemented it was with a HuggingFace model as the backbone. From my understanding, you need to instantiate self.backbone with the model weights, and then pass the data through self.backbone and the head separately in
forward()
. This is what I did with hugginface:So, something similar to the answer to this StackOverflow question. I would instantiate like this (?):
What I'm struggling with is how to do this with the
segmentation_models.pytorch
package since this is how you instantiate a model with that package:Is there any way I can instantiate the backbone separately from the Unet/architecture? And have the data flow through the backbone during
forward()
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions