Git Product home page Git Product logo

Comments (8)

YonghaoHe avatar YonghaoHe commented on August 18, 2024

@QingL0218
The concrete values of loss do not matter. In our implemented version, the computation of metric is combined with loss layer. In our view, if the values can reflect the loss trend, the values are valid for metric.

from lffd-a-light-and-fast-face-detector-for-edge-devices.

Dreamgang avatar Dreamgang commented on August 18, 2024

@YonghaoHe 我在训练的时候,会出现loss为nan的情况,请问这是咋回事,我是用自己的数据集去训练的

from lffd-a-light-and-fast-face-detector-for-edge-devices.

YonghaoHe avatar YonghaoHe commented on August 18, 2024

@Dreamgang 我们在训练的过程中几乎没有出现过nan,印象里就出现过几次nan.
给你几个建议:
1,把学习率调小,比如从0.1->0.05,还有适当增加batchsize(32是我们常用的)
2,查看数据集里面是否有严重噪声数据,一些严重噪声数据会瞬间破坏参数的学习

from lffd-a-light-and-fast-face-detector-for-edge-devices.

Wenstery avatar Wenstery commented on August 18, 2024

@YonghaoHe 我在用V2训练时,batch_size设置32,学习率设0.1-0.05间,并且用release出来的v2 10-320 model做pre-train(其实不做pre_train loss 基本也都是nan),一开始只有clc_loss_score0和clc_loss_score1有value,其他loss均为nan, 没有更改过其他代码,data也是用的release出来的widerface pkl文件,请问这问题该怎么解决呀?

from lffd-a-light-and-fast-face-detector-for-edge-devices.

YonghaoHe avatar YonghaoHe commented on August 18, 2024

@Wenstery 那这个现象很奇怪,你能把config的设置给我看一眼么.

from lffd-a-light-and-fast-face-detector-for-edge-devices.

Wenstery avatar Wenstery commented on August 18, 2024

@YonghaoHe 感谢回复!现在重新核对了一些和原始文件的改动,training loss正常了

from lffd-a-light-and-fast-face-detector-for-edge-devices.

mifan0208 avatar mifan0208 commented on August 18, 2024

@Wenstery 你好,请问我在loss回传的时候也遇到了跟你一样的问题,在cls_loss回传中,会出现Nan的现象而且bbox loss下降的比较快,请问遇到这个问题你是怎么解决的呢?

from lffd-a-light-and-fast-face-detector-for-edge-devices.

YonghaoHe avatar YonghaoHe commented on August 18, 2024

@QingL0218 @Wenstery PyTorch 版本的LFD已经发布了,详情请关注我的主页,谢谢。

from lffd-a-light-and-fast-face-detector-for-edge-devices.

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.