Comments (5)
same issue
from ext_portrait_segmentation.
@cyf518 Hi, did you solve the problem?
from ext_portrait_segmentation.
@qiutzh
i change net = Dnc_SINet(classes=1, p=2, q=8, chnn=1) to net = Dnc_SINet(classes=2, p=2, q=8, chnn=1)
from ext_portrait_segmentation.
@qiutzh
i change net = Dnc_SINet(classes=1, p=2, q=8, chnn=1) to net = Dnc_SINet(classes=2, p=2, q=8, chnn=1)
RuntimeError: weight tensor should be defined either for all or no classes at /pytorch/aten/src/THCUNN/generic/SpatialClassNLLCriterion.cu:27
when I changed this,another problem accurs. do you know how to solve this ?
from ext_portrait_segmentation.
It looks like at least one of these, maybe both, is incorrect:
- the "chnn" integer in your .json (ex setting/SINet.json or whichever you're using when loading your model)
- or the "resume" checkpoint in your .json (ex result/training_session/checkpoint.pth.tar)
For whatever reason, your code is trying to combine a SINet.pth model with a checkpoint model, but it can't because SINet.pth expects 2 channels and your checkpoint provides configurations for only 1 channel.
Hope this helps! Share a snippet of the code you're running for more help.
from ext_portrait_segmentation.
Related Issues (20)
- the size of input_image HOT 1
- Accuracy issue, implementation difference compared to paper. HOT 4
- visualizing results HOT 4
- The speed about ExtremeC3Net. HOT 1
- Rough edges in mask? HOT 2
- Training new dataset
- main.py HOT 1
- Testing new Image HOT 2
- How to use EG1800
- Why is the label of eg1800 data set inconsistent with the number of images? HOT 3
- about test!!! HOT 4
- Converting .pth model to onnx HOT 7
- about inference time
- why ignore_idx==255? in lovasz loss? HOT 2
- Pretrained model output bad segmentation result HOT 4
- trainning new data and test error, help please HOT 3
- Model does not perform well on real world portrait images/videos HOT 1
- groups config setting
- custom dataset training 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 ext_portrait_segmentation.