Skip to content

Instantly share code, notes, and snippets.

View cantonioupao's full-sized avatar
💭
Working from university and home

Christos Antoniou cantonioupao

💭
Working from university and home
View GitHub Profile
@PavlosMelissinos
PavlosMelissinos / YoloHead.py
Last active May 2, 2020 20:00
Yolo layers for keras
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.