Comments (6)
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.
Unintentionally closed issue while responding. Reopening for further comments.
from inspyrenet.
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.
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.
Thank you for the quick turnaround. Can close this issue now.
from inspyrenet.
Glad to be your help. Please feel free to contact me anytime. Have a great day!
from inspyrenet.
Related Issues (20)
- autocast for inference HOT 1
- What the T stands for in TIou? HOT 5
- Model accuracy drops after a few epoch when training with custom dataset ! HOT 1
- Training InSPyReNet_SwinB.yaml on large dataset HOT 7
- Not getting the same quality as the hugging face web demo model HOT 2
- Train with another shape HOT 1
- Unexpected keys in state_dict when trying inference HOT 1
- Model difference between Res2Net50 Backbone and Res2Net50 [DUTS-TR] trained checkpoint HOT 3
- Unable to reproduce models and Increasing validation loss HOT 1
- `base_size` and `stage` parameters are not used for encoder and decoder HOT 6
- Overflow NaN can be happen in training HOT 1
- unable to load jit model HOT 2
- Some confusion about dynamic_resize HOT 2
- Image mask alignment problem HOT 4
- train custom dataset HOT 2
- Multiple masks area HOT 1
- InSPyReNet for mask refinement? HOT 1
- Error/Warning about get_root_logger and load_checkpoint HOT 7
- Fine tuning HOT 9
- InSPyReNet_SwinB_DIS5K_LR Result Download Failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inspyrenet.