Closed YYmmx21 closed 8 months ago
Hello, The model you are referencing is a JIT scripted backbone. To load it, use the following in your configuration file:
model:
architecture: "jit"
path: "resnet50-imdb-em-cnn.pt"
nr_features: 2048
backbone_trainable: True
input_size: [256, 256]
For more information, please see doc/backbone_support.md.
Hello, I got this error when I loaded the weights, can you help me fix it?
It is hard to say from this error alone. Have you made any modifications to the codebase? Are you using our benchmark? -> If so, we only define 5 cross-validation splits, so specifying 6 on the command line as in your screenshot would be incorrect. Are you able to run the code without the JIT model? Does the error only manifest once you use the JIT backbone?
Hello.
To use the JIT backbone, you do not need to modify the training code, e.g., by adding torch.load(...)
.
You should modify the experiment configuration file as shown above. The JIT backbone is then loaded as torch.jit.load(...)
. For more information, please see the initialize_model
function in lib/model.py.
Hello, how to load 'resnet50-imdb-em-cnn.pt' into the model?