Skip to content

Commit

Permalink
Merge pull request zzh8829#153 from Kuz-man/add-input-names
Browse files Browse the repository at this point in the history
add Input layer name to YoloV3 and YoloV3Tiny
  • Loading branch information
zzh8829 authored Jan 14, 2020
2 parents a50fe6d + a7ecb96 commit a41e56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yolov3_tf2/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def yolo_nms(outputs, anchors, masks, classes):

def YoloV3(size=None, channels=3, anchors=yolo_anchors,
masks=yolo_anchor_masks, classes=80, training=False):
x = inputs = Input([size, size, channels])
x = inputs = Input([size, size, channels], name='input')

x_36, x_61, x = Darknet(name='yolo_darknet')(x)

Expand Down Expand Up @@ -234,7 +234,7 @@ def YoloV3(size=None, channels=3, anchors=yolo_anchors,

def YoloV3Tiny(size=None, channels=3, anchors=yolo_tiny_anchors,
masks=yolo_tiny_anchor_masks, classes=80, training=False):
x = inputs = Input([size, size, channels])
x = inputs = Input([size, size, channels], name='input')

x_8, x = DarknetTiny(name='yolo_darknet')(x)

Expand Down

0 comments on commit a41e56e

Please sign in to comment.