Giter Site home page Giter Site logo

Comments (6)

plemeri avatar plemeri commented on June 12, 2024

Hello again, glad to see you back.

Unfortunately, we only have one option for Res2Net backbone model, so if you need any specific dataset for training, you need to change the yaml config file of res2net backbone network (InSPyReNet_Res2Net50.yaml). You can find how to change training dataset is in Getting Started / preparation section.

Moreover, for SwinB backbone, there are various options of pre-trained checkpoints, but we don't have a checkpoint for trained with ECSSD dataset only since it usually used for benchmark only.

If you need a specific checkpoint and cannot access to any GPU machine, then please let me know that I can train on my machine as you need.

Thank you

from inspyrenet.

plemeri avatar plemeri commented on June 12, 2024

Unintentionally closed issue while responding. Reopening for further comments.

from inspyrenet.

rakesh-reddy95 avatar rakesh-reddy95 commented on June 12, 2024

Thanks, I figured it out and made a comment. I have reverted to the code to the commit 76767a9 to make it work. I see the lines:
self.avgpool = nn.AdaptiveAvgPool2d(1)
self.fc = nn.Linear(512 * block.expansion, num_classes)

has been removed while the existing model's graph fetches for it as the model is trained using this. Hence the error is being occured:
[RuntimeError: Error(s) in loading state_dict for ResNet: Missing key(s) in state_dict: "fc.weight", "fc.bias". in loading state_dict of a resnet model]

And was able to fix upon reverting.

from inspyrenet.

plemeri avatar plemeri commented on June 12, 2024

We actually removed find_unused_parameters=True from loading pre-trained checkpoint and changed ImageNet pre-trained checkpoint for res2net to resolve the runtime error that you mentioned. You can download again from Getting Started / backbone checkpoints section. Please replace the old checkpoint with new one.

Therefore, reverting the commit 76767a9 is unnecessary so far. Sorry for the inconvenience.

from inspyrenet.

rakesh-reddy95 avatar rakesh-reddy95 commented on June 12, 2024

Thank you for the quick turnaround. Can close this issue now.

from inspyrenet.

plemeri avatar plemeri commented on June 12, 2024

Glad to be your help. Please feel free to contact me anytime. Have a great day!

from inspyrenet.

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.