Git Product home page Git Product logo

Comments (7)

argusswift avatar argusswift commented on May 15, 2024 1

"ANCHORS":[[(1.25, 1.625), (2.0, 3.75), (4.125, 2.875)],
[(1.875, 3.8125), (3.875, 2.8125), (3.6875, 7.4375)],
[(3.625, 2.8125), (4.875, 6.1875), (11.65625, 10.1875)]]
这个比例是如何计算的?

原始的聚类框除以stride就可以得到以上的ANCHORS。

from yolov4-pytorch.

xiaxiajiuzhe avatar xiaxiajiuzhe commented on May 15, 2024

"ANCHORS":[[(1.25, 1.625), (2.0, 3.75), (4.125, 2.875)],
[(1.875, 3.8125), (3.875, 2.8125), (3.6875, 7.4375)],
[(3.625, 2.8125), (4.875, 6.1875), (11.65625, 10.1875)]]
这个比例是如何计算的?

原始的聚类框除以stride就可以得到以上的ANCHORS。

ok,谢谢川大小姐姐,求加QQ还想问下你是咋样学着自己该网络结构的,感觉改的贼6

from yolov4-pytorch.

zhanghongsir avatar zhanghongsir commented on May 15, 2024

"ANCHORS":[[(1.25, 1.625), (2.0, 3.75), (4.125, 2.875)],
[(1.875, 3.8125), (3.875, 2.8125), (3.6875, 7.4375)],
[(3.625, 2.8125), (4.875, 6.1875), (11.65625, 10.1875)]]
这个比例是如何计算的?

原始的聚类框除以stride就可以得到以上的ANCHORS。

是聚类得到的框从小到大排序 依次除以8 16 32不?

from yolov4-pytorch.

ronger-git avatar ronger-git commented on May 15, 2024

@argusswift 请问您为什么要这样处理anchors呢,是想达到什么效果的呢?

from yolov4-pytorch.

jingtianyilong avatar jingtianyilong commented on May 15, 2024

pred_wh = (torch.exp(conv_raw_dwdh) * anchors) * stride

stride * anchor = actual anchor size

@argusswift 请问您为什么要这样处理anchors呢,是想达到什么效果的呢?

from yolov4-pytorch.

ronger-git avatar ronger-git commented on May 15, 2024

pred_wh = (torch.exp(conv_raw_dwdh) * anchors) * stride

stride * anchor = actual anchor size

@argusswift 请问您为什么要这样处理anchors呢,是想达到什么效果的呢?

谢谢,懂了!但是原始anchor除以stride并不精确等于现在的anchor,是不是还做了其他处理呢

from yolov4-pytorch.

jingtianyilong avatar jingtianyilong commented on May 15, 2024

pred_wh = (torch.exp(conv_raw_dwdh) * anchors) * stride

stride * anchor = actual anchor size

@argusswift 请问您为什么要这样处理anchors呢,是想达到什么效果的呢?

谢谢,懂了!但是原始anchor除以stride并不精确等于现在的anchor,是不是还做了其他处理呢

I don't know for sure but I tend to calculate the anchor by my self. You can also use darknet anchor size and /8 /16 to get the anchor. K-means script might varies a little, so are the results.
But generally, I don't see anchors size would affect final result much, especially when they don't varies hugely. Anchors are just the starting point of the bbox prediction or say, the reference bbox size. Better anchor just help network converge faster imo.

from yolov4-pytorch.

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.