Code Monkey home page Code Monkey logo

Comments (6)

JiachunWang avatar JiachunWang commented on July 20, 2024 1

@panda-2014 I also met the same problem. This is because of the inconsistency of the state_dict.keys(). Strip the prefix of state_dict can solve the problem. I've solved the problem by adding the following codes in mmsegmentation/mmcv_custom/checkpoint.py:line 322
if list(state_dict.keys())[0].startswith('backbone.'): state_dict = {k[9:]: v for k, v in state_dict.items()}

from swin-transformer-semantic-segmentation.

impiga avatar impiga commented on July 20, 2024

Hi, "upernet_swin_base_patch4_window7_512x512.pth" is a model finetuned on ADE20K, not an ImageNet pre-trained model.
You would better use pre-trained models held in this page.

from swin-transformer-semantic-segmentation.

walynlee avatar walynlee commented on July 20, 2024

@panda-2014 Hello, could you tell me the run code when training on one gpu on windows(RTX 3090)? I need it as an example to train the model.

from swin-transformer-semantic-segmentation.

panda-2014 avatar panda-2014 commented on July 20, 2024

@panda-2014 Hello, could you tell me the run code when training on one gpu on windows(RTX 3090)? I need it as an example to train the model.

I run on linux, and the I have change to run on rtx8000x4 GPU, and occur some new issues. I still have no idea about the issue :(

from swin-transformer-semantic-segmentation.

Leesanjin avatar Leesanjin commented on July 20, 2024

Do you have solved this problem?I also met the same problem
the model and pre-trained weight is right,I checked and tried the others

from swin-transformer-semantic-segmentation.

CeciliaPYY avatar CeciliaPYY commented on July 20, 2024

512 pretrained model can be found here: https://github.com/open-mmlab/mmsegmentation/tree/master/configs/swin

from swin-transformer-semantic-segmentation.

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.