hotcouscous1 / dynamic-fpn

Pytorch Implementation of Dynamic FPN, PAN, and Bi-FPN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic FPNs: FPN, PAN, BiFPN

The parameters of fpn must be given independently from the backbone.

Dynamic FPNs are free from

  • the number and channels of pyramid-levels
  • the size of input image, to decide each level's feature map size
  • the strides between feature maps
# example1
fpn = FPN(num_levels=4,
          in_channels=[64, 128, 128, 256],
          out_channels=128,
          sizes=[20, 10, 10, 5])

# example2
bifpn = BiFPN(num_levels=5,
              num_repeat=3,
              in_channels=[64, 128, 256],
              out_channels=128,
              sizes=[40, 20, 10, 4, 1],
              strides=[2, 2, 2, 4])

License

BSD 3-Clause License Copyright (c) 2022, hotcouscous1

About

Pytorch Implementation of Dynamic FPN, PAN, and Bi-FPN

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%