How to load pretrained weight for backbone in detectron2.modeling.backbone.resnet #3919
Unanswered
Frank-Y-Zheng
asked this question in
Q&A
Replies: 1 comment 2 replies
-
The easiest way is using torchvision's resnet and weights. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can only write
from detectron2.modeling.backbone.resnet import BasicStem, ResNet
import torch
model = ResNet(BasicStem(), ResNet.make_default_stages(101), out_features=None)
but I can not find a way to load pretrained weight for the model. Can anyone help me?
Beta Was this translation helpful? Give feedback.
All reactions