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

changing the input size of yolov3 #29

Open
jonbakerfish opened this issue Nov 20, 2020 · 3 comments
Open

changing the input size of yolov3 #29

jonbakerfish opened this issue Nov 20, 2020 · 3 comments

Comments

@jonbakerfish
Copy link

Hi, I want to change the input size of yolov3 to 320x224 (h,w). After modified the yolo-v3.yml to:

        input_shapes:
          # - 1,416,416,3
          - 1,320,224,3 
        output_shapes:
          # - 1,13,13,255
          # - 1,26,26,255
          # - 1,52,52,255
          - 1,10, 7,255
          - 1,20,14,255
          - 1,40,28,255

converting the model will raise these errors:

python tools/converter.py convert --config=../mace-models/yolo-v3/yolo-v3.yml

....

Traceback (most recent call last):
  File "/miniconda3/envs/mace/lib/python3.7/site-packages/tensorflow/python/framework/importer.py", line 426, in import_graph_def
    graph._c_graph, serialized, options)  # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.InvalidArgumentError: Dimension 1 in both shapes must be equal, but are 26 and 20. Shapes are [1,26,26] and [1,20,14]. for 'concatenate_1/concat' (op: 'ConcatV2') with input shapes: [1,26,26,256], [1,20,14,512], [] and with computed input tensors: input[2] = <3>.

How to solve these errors? Thank you.

@lu229
Copy link
Collaborator

lu229 commented Nov 23, 2020

@jonbakerfish Does your model support the input shape ([1,320,224,3])? it seems that it doesn't support that input shape.

@jonbakerfish
Copy link
Author

I'm using your provided pb file the yolo-v3.yml

@lu229
Copy link
Collaborator

lu229 commented Nov 23, 2020

@jonbakerfish That model does not support input shape ([1,320,224,3])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants