bo-zhang-cs / CACNet-Pytorch

Unofficial PyTorch implementation of "Composing Photos Like a Photographer"
MIT License
52 stars 15 forks source link

anchor生成方法似乎有问题 #4

Closed think-ya closed 2 years ago

think-ya commented 2 years ago

https://github.com/bo-zhang-cs/CACNet-Pytorch/blob/440ccd18c670e0c14e1d3676ef7bb561ede5d311/CACNet.py#L173 按照这种实现生成的anchor之间的间距与设置的间距不同,并且使不均匀的。

bo-zhang-cs commented 2 years ago

你好,因为CACNet的anchor预测基本沿用了Anchor-2-Joint中的方法,anchor分布不均匀的原因请参考论文。关于anchor间距,这里参考了A2J代码的实现。个人理解是anchor stride主要控制的是anchor数量,在数量相等的情况下间距是否与anchor stride一致可能影响很小。