Giter Site home page Giter Site logo

使用预训练权重训练voc模型,损失减到8,但是测试时检测不到物体,请问对预测图片的处理是否跟训练是一致? about yolov4-keras HOT 5 OPEN

diegolitianfu avatar diegolitianfu commented on June 30, 2024
使用预训练权重训练voc模型,损失减到8,但是测试时检测不到物体,请问对预测图片的处理是否跟训练是一致?

from yolov4-keras.

Comments (5)

bubbliiiing avatar bubbliiiing commented on June 30, 2024

都是/255哪里不一致啊

from yolov4-keras.

bubbliiiing avatar bubbliiiing commented on June 30, 2024

你具体的位置标志一下,现在这个库应该是没有不一样的

from yolov4-keras.

diegolitianfu avatar diegolitianfu commented on June 30, 2024

您好,首先非常感谢你的回答。我主要有以下几点疑惑。
1、我指的不是/255,我看dataloader里面,会对训练图像做一些色域扭曲或者翻转图像之类的,但是检测时并不会做这些处理,不知道这对检测结果是否有影响?之前一直有这样的疑问,望解答。
2、我使用您给的权重作为预训练权重,训练集使用voc07+12,一共进行了两次训练,第一次训练训练到第二阶段时我看损失降到8以下,我以为已经很好了,就暂停了训练,但是实际测试结果很差,confidence为0.5时,您给的那张street.jpg一个都检测不出来;第二次训练我让他一直训练,但是发现最终损失没有降下来,最后结束时还是在20. 测试效果也是很差。比较迷惑。
3、未使用预训练权重,从头训练voc模型,使用了mosaic数据增强,训练模型损失可以降到5左右,在voc07test上的map值为58.82%,感觉也不是很好?如果可以的话,想请问一下您训练时都使用了哪些技巧?非常感谢~
祝 好!

from yolov4-keras.

bubbliiiing avatar bubbliiiing commented on June 30, 2024

1、这个叫数据增强呀……预测增强啥
2、你用了预训练权重效果理论上基本上都是比不用好很多的,我觉得你可能得重下库然后什么都不改来一遍,默认参数就是训练voc的。
3、没用预训练权重的话确实如此,我昨天更新了一下,加了一些注释,你看看吧

from yolov4-keras.

diegolitianfu avatar diegolitianfu commented on June 30, 2024

好的,非常感谢~

from yolov4-keras.

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.