Skip to content

hotcouscous1/dynamic-fpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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