Giter Club home page Giter Club logo

Comments (7)

warmspringwinds avatar warmspringwinds commented on July 1, 2024

Hi,

I might have messed up the model -- I will have a look at it.
Could you try the resnet 34 8s instead ? -- that should work

Thank you.

from pytorch-segmentation-detection.

sagar1garg avatar sagar1garg commented on July 1, 2024

@warmspringwinds Tried that as well. Getting the below error.

RuntimeError: Error(s) in loading state_dict for Resnet34_8s:
Missing key(s) in state_dict: "resnet34_8s.conv1.weight", "resnet34_8s.bn1.running_var", "resnet34_8s.bn1.bias", "resnet34_8s.bn1.weight", "resnet34_8s.bn1.running_mean", "resnet34_8s.layer1.0.conv1.weight", "resnet34_8s.layer1.0.bn1.running_var", "resnet34_8s.layer1.0.bn1.bias", "resnet34_8s.layer1.0.bn1.weight", "resnet34_8s.layer1.0.bn1.running_mean", "resnet34_8s.layer1.0.conv2.weight", "resnet34_8s.layer1.0.bn2.running_var", "resnet34_8s.layer1.0.bn2.bias", "resnet34_8s.layer1.0.bn2.weight", "resnet34_8s.layer1.0.bn2.running_mean", "resnet34_8s.layer1.1.conv1.weight", "resnet34_8s.layer1.1.bn1.running_var", "resnet34_8s.layer1.1.bn1.bias", "resnet34_8s.layer1.1.bn1.weight", "resnet34_8s.layer1.1.bn1.running_mean", "resnet34_8s.layer1.1.conv2.weight", "resnet34_8s.layer1.1.bn2.running_var", "resnet34_8s.layer1.1.bn2.bias", "resnet34_8s.layer1.1.bn2.weight", "resnet34_8s.layer1.1.bn2.running_mean", "resnet34_8s.layer1.2.conv1.weight", "resnet34_8s.layer1.2.bn1.running_var", "resnet34_8s.layer1.2.bn1.bias", "resnet34_8s.layer1.2.bn1.weight", "resnet34_8s.layer1.2.bn1.running_mean", "resnet34_8s.layer1.2.conv2.weight", "resnet34_8s.layer1.2.bn2.running_var", "resnet34_8s.layer1.2.bn2.bias", "resnet34_8s.layer1.2.bn2.weight", "resnet34_8s.layer1.2.bn2.running_mean", "resnet34_8s.layer2.0.conv1.weight", "resnet34_8s.layer2.0.bn1.running_var", "resnet34_8s.layer2.0.bn1.bias", "resnet34_8s.layer2.0.bn1.weight", "resnet34_8s.layer2.0.bn1.running_mean", "resnet34_8s.layer2.0.c...
Unexpected key(s) in state_dict: "resnet18_8s.conv1.weight", "resnet18_8s.bn1.weight", "resnet18_8s.bn1.bias", "resnet18_8s.bn1.running_mean", "resnet18_8s.bn1.running_var", "resnet18_8s.bn1.num_batches_tracked", "resnet18_8s.layer1.0.conv1.weight", "resnet18_8s.layer1.0.bn1.weight", "resnet18_8s.layer1.0.bn1.bias", "resnet18_8s.layer1.0.bn1.running_mean", "resnet18_8s.layer1.0.bn1.running_var", "resnet18_8s.layer1.0.bn1.num_batches_tracked", "resnet18_8s.layer1.0.conv2.weight", "resnet18_8s.layer1.0.bn2.weight", "resnet18_8s.layer1.0.bn2.bias", "resnet18_8s.layer1.0.bn2.running_mean", "resnet18_8s.layer1.0.bn2.running_var", "resnet18_8s.layer1.0.bn2.num_batches_tracked", "resnet18_8s.layer1.1.conv1.weight", "resnet18_8s.layer1.1.bn1.weight", "resnet18_8s.layer1.1.bn1.bias", "resnet18_8s.layer1.1.bn1.running_mean", "resnet18_8s.layer1.1.bn1.running_var", "resnet18_8s.layer1.1.bn1.num_batches_tracked", "resnet18_8s.layer1.1.conv2.weight", "resnet18_8s.layer1.1.bn2.weight", "resnet18_8s.layer1.1.bn2.bias", "resnet18_8s.layer1.1.bn2.running_mean", "resnet18_8s.layer1.1.bn2.running_var", "resnet18_8s.layer1.1.bn2.num_batches_tracked", "resnet18_8s.layer2.0.conv1.weight", "resnet18_8s.layer2.0.bn1.weight", "resnet18_8s.layer2.0.bn1.bias", "resnet18_8s.layer2.0.bn1.running_mean", "resnet18_8s.layer2.0.bn1.running_var", "resnet18_8s.layer2.0.bn1.num_batches_tracked", "resnet18_8s.layer2.0.conv2.weight", "resnet18_8s.layer2.0.bn2.weight", "resnet18_8s.layer2.0.bn2.bias", "resnet1...

from pytorch-segmentation-detection.

warmspringwinds avatar warmspringwinds commented on July 1, 2024

Seems like you are trying to init 34 model and load weights of 18 model.

Try loading the weights of 34 model -- I took it from the table:
https://www.dropbox.com/s/91wcu6bpqezu4br/resnet_34_8s_68.pth?dl=0

from pytorch-segmentation-detection.

sagar1garg avatar sagar1garg commented on July 1, 2024

@warmspringwinds Using 34 model worked but the result is very poor. Any specific reason?
download

from pytorch-segmentation-detection.

warmspringwinds avatar warmspringwinds commented on July 1, 2024

Make sure you changed your model into eval mode

Also this is not the best model -- try psp

from pytorch-segmentation-detection.

sagar1garg avatar sagar1garg commented on July 1, 2024

can't find a demo file or model link for psp

from pytorch-segmentation-detection.

warmspringwinds avatar warmspringwinds commented on July 1, 2024

from pytorch-segmentation-detection.

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.