fpn.pytorch icon indicating copy to clipboard operation
fpn.pytorch copied to clipboard

torch.log(torch.sqrt(h * w) / 224.0) in fpn.py

Open fafancier opened this issue 6 years ago • 1 comments

Hi, Thanks for sharing. I found a line in fpn.py. "roi_level = torch.log(torch.sqrt(h * w) / 224.0)" https://github.com/jwyang/fpn.pytorch/blob/23bd1d2fa09fbb9453f11625d758a61b9d600942/lib/model/fpn/fpn.py#L110 It seems torch.log is based on the e rather than 2 in the paper. Is that true?

fafancier avatar Nov 13 '19 08:11 fafancier

I think you could set torch.log2 instead

CharlesPikachu avatar Dec 16 '19 12:12 CharlesPikachu