Code Monkey home page Code Monkey logo

Comments (7)

happinesslz avatar happinesslz commented on May 21, 2024

@KevinTang29 Maybe Focal loss is an available method to solve the imbalance between the background class and other classes in training. Please have a try, and use "SigmoidFocalLoss" instead of "CrossEntropy" for multi-classes in the LI_Fusion_with_attention_use_ce_loss.yaml. Good luck to you!

from epnet.

KevinTang29 avatar KevinTang29 commented on May 21, 2024

@happinesslz Thank you very much for your advice. It seems that the original "SigmoidFocalLoss" can only be applied in binary classification, and I tried to change it to focal loss under multiple classification and trained with the focal loss. However, the problem still exists. Maybe the parameter alpha and gamma need to be tuned under multiple classification? In addition, I tried to increase the cross entropy weights of the object classes


to [1.0, 2.0, 2.0, 2.0], and also decrease the roi number in training

to 32 and trained with CE loss again, and the result is better. (though still not right, something like the classfication score changed from [0.9, 0.08, 0.01, 0.01] to [0.7, 0.25, 0.03, 0.02] if the roi is actually of class 1). Is this another possible way to solve the problem?

from epnet.

Benedict0819 avatar Benedict0819 commented on May 21, 2024

Did you make it work for multiclass-Epnet?

from epnet.

KevinTang29 avatar KevinTang29 commented on May 21, 2024

Did you make it work for multiclass-Epnet?

I just trained the model with CE loss with class weights. I set the model to detect four classes ['Car', 'Pedestrian', 'Cyclist', 'Truck'] and set the corresponding weights to be [1.0, 3.0, 6.0, 6.0, 12.0] (the first weight is of background class). The evaluation results seemed acceptable, though not good enough. Maybe the weights and other parameters need to be tuned further.

from epnet.

Benedict0819 avatar Benedict0819 commented on May 21, 2024

from epnet.

KevinTang29 avatar KevinTang29 commented on May 21, 2024

I have finished , can you show your mail to me ?and we can talk deeper ------------------ 原始邮件 ------------------ 发件人: "happinesslz/EPNet" <[email protected]>; 发送时间: 2021年1月28日(星期四) 下午4:03 收件人: "happinesslz/EPNet"<[email protected]>; 抄送: "何必歇斯底里"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [happinesslz/EPNet] Detecting multiple classes (#8) Did you make it work for multiclass-Epnet? I just trained the model with CE loss with class weights. I set the model to detect four classes ['Car', 'Pedestrian', 'Cyclist', 'Truck'] and set the corresponding weights to be [1.0, 3.0, 6.0, 6.0, 12.0] (the first weight is of background class). The evaluation results seemed acceptable, though not good enough. Maybe the weights and other parameters need to be tuned further. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

I would like to know how you did. My Email is [email protected]

from epnet.

TimGor1997 avatar TimGor1997 commented on May 21, 2024

I have finished , can you show your mail to me ?and we can talk deeper ------------------ 原始邮件 ------------------ 发件人: "happinesslz/EPNet" <[email protected]>; 发送时间: 2021年1月28日(星期四) 下午4:03 收件人: "happinesslz/EPNet"<[email protected]>; 抄送: "何必歇斯底里"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [happinesslz/EPNet] Detecting multiple classes (#8) Did you make it work for multiclass-Epnet? I just trained the model with CE loss with class weights. I set the model to detect four classes ['Car', 'Pedestrian', 'Cyclist', 'Truck'] and set the corresponding weights to be [1.0, 3.0, 6.0, 6.0, 12.0] (the first weight is of background class). The evaluation results seemed acceptable, though not good enough. Maybe the weights and other parameters need to be tuned further. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Hello @Benedict0819 , I also want to achevice the multi-clas on EPNet, could you please share your code about multi-class to me?
My email address is [email protected]
Thank you very much!

from epnet.

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.