Skip to content

Code execution error? #2

@ChouYuWei

Description

@ChouYuWei

hi vibrantabhi19 :

I think your article is great, so I try to execute the code you've provided. But I encountered some errors when I executed the code.

The last error message is as follows:
ValueError: Dimension 0 in both shapes must be equal, but are 1 and 3
From merging shape 0 with other shapes. for 'lambda_1/concat/concat_dim' (op: 'Pack') with input shapes: [1], [3].

So I would like to ask you may cause the wrong reason.You mentioned in the project environmental requirements are as follows:
Requirements:
keras with Tensorflow backend (keras version 1.0.4 or later)
h5py (if you want to save your model)
numpy
pandas (if you want to save the logs of your model)
cv2 (for image resizing)

And my operating environment is as follows:
Python 3.5.2 :: Anaconda 4.2.0 (64-bit)
TensorFlow Version:1.1.0
Keras Version:2.0.3
Using TensorFlow backend.

Is this the cause of the error?
Please help me deal with this error.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions