Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not instanciate model for certain input shapes #46

Closed
AntoineToubhans opened this issue May 28, 2020 · 0 comments · Fixed by #47
Closed

Can not instanciate model for certain input shapes #46

AntoineToubhans opened this issue May 28, 2020 · 0 comments · Fixed by #47
Labels
bug Something isn't working

Comments

@AntoineToubhans
Copy link
Collaborator

How to reproduce

  • python: 3.6
  • tensorflow: 2.2.0
  • tf2_yolov4: 0.0.1
from tf2_yolov4.anchors import YOLOV4_ANCHORS
from tf2_yolov4.model import YOLOv4

YOLOv4(
    input_shape=(400, 820, 3),
    anchors=YOLOV4_ANCHORS,
    num_classes=80,
    training=False,
    yolo_max_boxes=100,
    yolo_iou_threshold=0.5,
    yolo_score_threshold=0.25,
)

I got an error :

ValueError: A `Concatenate` layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 25, 51, 256), (None, 24, 50, 256)]
@AntoineToubhans AntoineToubhans added the bug Something isn't working label May 28, 2020
@lmontier lmontier linked a pull request May 29, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant