Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

如何应用在YOLOv3上? #7

Open
qhykwsw opened this issue Feb 20, 2019 · 5 comments
Open

如何应用在YOLOv3上? #7

qhykwsw opened this issue Feb 20, 2019 · 5 comments

Comments

@qhykwsw
Copy link

qhykwsw commented Feb 20, 2019

你好,我在使用你的代码的时候,有点困惑。得到的结果如下:
Accuracy: 87.11%
Boxes:
[[0.0234375 0.06041667]
[0.02109375 0.046875 ]
[0.01875 0.04166667]
[0.028125 0.05104167]
[0.0140625 0.028125 ]
[0.0421875 0.08854167]
[0.009375 0.02083333]
[0.02109375 0.04166667]
[0.0328125 0.06979167]]
Ratios:
[0.39, 0.45, 0.45, 0.45, 0.47, 0.48, 0.5, 0.51, 0.55]

结果是相对比例,但是YOLOv3是使用的绝对值。我的想法是应该对每个值乘上输入进网络的尺寸,比如输入网络尺寸是608x608。那anchor大小尺寸就是上面的每一个值乘以608。请问我的理解没错吧?

@lars76
Copy link
Owner

lars76 commented Feb 20, 2019

Hi, yeah this is how I used the boxes too. However, in the original paper the authors apparently not only multiplied the boxes by 608 but also used different scaling factors. But I don't think that this scaling step is really that necessary. Especially because the authors didn't write what scaling factors they used exactly.

If the objects can't vary a lot between different datasets, I would just use the dimension of the image (e.g 608x608).

@AnkyZhang
Copy link

你好,请问如何确定哪三个是scale1的anchor boxes,哪三个是scale2的,哪三个是scale3的呢?

@sisrfeng
Copy link

你好,请问如何确定哪三个是scale1的anchor boxes,哪三个是scale2的,哪三个是scale3的呢?

请问你解决这个问题了吗?

@Andy-zhujunwen
Copy link

你好,我在使用你的代码的时候,有点困惑。得到的结果如下:
Accuracy: 87.11%
Boxes:
[[0.0234375 0.06041667]
[0.02109375 0.046875 ]
[0.01875 0.04166667]
[0.028125 0.05104167]
[0.0140625 0.028125 ]
[0.0421875 0.08854167]
[0.009375 0.02083333]
[0.02109375 0.04166667]
[0.0328125 0.06979167]]
Ratios:
[0.39, 0.45, 0.45, 0.45, 0.47, 0.48, 0.5, 0.51, 0.55]

结果是相对比例,但是YOLOv3是使用的绝对值。我的想法是应该对每个值乘上输入进网络的尺寸,比如输入网络尺寸是608x608。那anchor大小尺寸就是上面的每一个值乘以608。请问我的理解没错吧?

你好,为什么我运行代码后都没输出啊?输出如下:
(base) E:\datasets\kmeans-anchor-boxes-master\kmeans-anchor-boxes-master>python -m unittest discover -s tests/
..............

Ran 14 tests in 18.978s

OK

没有box什么的。。为什么啊。。。

@sisrfeng
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants