GithubHelp home page GithubHelp logo

loading weights issue about softteacher HOT 9 CLOSED

microsoft avatar microsoft commented on July 17, 2024
loading weights issue

from softteacher.

Comments (9)

MendelXu avatar MendelXu commented on July 17, 2024

I can't reproduce this issue. Did you change the code or config file?

from softteacher.

miraclebiu avatar miraclebiu commented on July 17, 2024

I can't reproduce this issue. Did you change the code or config file?
my log is like this, maybe you can saerch this in your log.
Pretrained weights is specified in the configuration file which I download from Internet and put it in the pretrain folder
image

from softteacher.

MendelXu avatar MendelXu commented on July 17, 2024

Could you post the full log and more information here? I can't find this line in my log. Are you using an old version of mmdetection?

from softteacher.

MendelXu avatar MendelXu commented on July 17, 2024

I think a possible reason is that you have downloaded the wrong pre-trained weights. Note that all of our models are using Caffe style backbone. So if you want to download and load the weight manually, maybe you should download it from the following links:

For ResNet50:
https://download.openmmlab.com/pretrain/third_party/resnet50_caffe-788b5fa3.pth
For ResNet101:
https://download.openmmlab.com/pretrain/third_party/resnet101_caffe-3ad79236.pth

from softteacher.

miraclebiu avatar miraclebiu commented on July 17, 2024

I think a possible reason is that you have downloaded the wrong pre-trained weights. Note that all of our models are using Caffe style backbone. So if you want to download and load the weight manually, maybe you should download it from the following links:

For ResNet50:
https://download.openmmlab.com/pretrain/third_party/resnet50_caffe-788b5fa3.pth
For ResNet101:
https://download.openmmlab.com/pretrain/third_party/resnet101_caffe-3ad79236.pth

I use resnet50 for training and the file md5 value is
3238aad43626654ec88021900df0c756, which is the same as file from the download link

from softteacher.

miraclebiu avatar miraclebiu commented on July 17, 2024

Could you post the full log and more information here? I can't find this line in my log. Are you using an old version of mmdetection?

mmdetection is cloned from github
dependency:
image

log:
image

from softteacher.

MendelXu avatar MendelXu commented on July 17, 2024

OK. I can reproduce your case now. I will post the debug result here ASAP.

from softteacher.

MendelXu avatar MendelXu commented on July 17, 2024

Hi, you should download resnet50 model from https://download.openmmlab.com/pretrain/third_party/resnet50_msra-5891d200.pth. The link posted in the official mmdetection repo is wrong.

See https://github.com/open-mmlab/mmcv/blob/master/mmcv/model_zoo/open_mmlab.json.
https://download.openmmlab.com/pretrain/third_party/resnet50_caffe-788b5fa3.pth is the model for "detectron/resnet50_caffe" while we are using "detectron2/resnet50_caffe"

from softteacher.

miraclebiu avatar miraclebiu commented on July 17, 2024

Hi, you should download resnet50 model from https://download.openmmlab.com/pretrain/third_party/resnet50_msra-5891d200.pth. The ;ink posted in the official mmdetection repo is wrong

Great!!

from softteacher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.