Comments (6)
@pvthuy What's your loss functions? I suggest using Focal Loss as mask prediction loss. And did you mean the class scores are low or mask prediction after sigmoid?
from solo.
@WXinlong Thanks for your reply.
I used similar settings as in this. It seemed that the loss function is FocalLoss
?
My dataset has only two classes (foreground & background) so I set num_classes=2
.
I attached the log and a sample prediction here:
from solo.
@pvthuy If you didn't change the loss part of that config file, then you were using dice loss for mask prediction. However, for your case, Focal Loss might be better. We extended SOLO to instance contour detection. You can refer to Section 7 of our paper.
BTW, for the current model, you can set a smaller mask threshold (e.g. 0.2 instead of 0.5 in default).
from solo.
@WXinlong Thank you very much!
I changed dice loss to focal loss, and mask threshold 0.5 to 0.2.
The predictions are slightly better, although not good as I expected. The prediction masks are very large compared to actual objects.
Anw, thanks for your help.
from solo.
I tried it for the text,i keep the origin para,and it looks good!
from solo.
hello ,
Can you please shed some light on how to change the loss function to focal-lossas suggested previously.
in the config files I've noticed the following :
loss_ins=dict(
type='DiceLoss',
use_sigmoid=True,
loss_weight=3.0),
loss_cate=dict(
type='FocalLoss',
use_sigmoid=True,
gamma=2.0,
alpha=0.25,
loss_weight=1.0)),
can you please explain exeactly what needs to be changed?
- my case has both thin objects and "normal" objects, if changing the loss function should help for thin objects, won't it hurt the results for the normal objects? ( and if so , can you suggest an alternative ? )
thanks,
Omer
from solo.
Related Issues (20)
- How to run video on inference_demo.py ??
- How to test the calculation amount (Flops) of solov2? Thank you~
- Win10 Installation Tutorial HOT 1
- Change Maximum allowed Pytorch Version to 10.1
- About training configuration of SOLOv2 on LVIS dataset
- TypeError: SOLOv2: __init__() got an unexpected keyword argument 'mask_feat_head' HOT 2
- dynamic conv
- SOLOv2 get segmentation mask and classes
- ImportError: cannot import name 'coco_eval' from 'mmdet.core'
- Relu inplace ops making issues HOT 1
- About dataset's picture size problem
- 如何看评价结果
- Welcome update to OpenMMLab 2.0
- How can I improve AP accuracy on my dataset
- I have a bug when I launch train.py
- I don't succeeds to install solov2 with anaconda on windows 10
- Unable to evaluate bbox HOT 1
- TypeError: impad() takes 1 positional argument but 2 positional arguments (and 1 keyword-only argument) were given HOT 1
- installation made easy
- What does this code snippet in solo_head.py mean? I'm so confused.
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 solo.