This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YoloHead(Layer): | |
def __init__(self, anchors, num_classes, **kwargs): | |
self.anchors = anchors | |
self.num_classes = num_classes | |
super(YoloHead, self).__init__(**kwargs) | |
def call(self, inputs, **kwargs): | |
"""Convert final layer features to bounding box parameters. |