Skip to content

Test.py Input Shape Error  #12

@PeterVennerstrom

Description

@PeterVennerstrom

With either grayscale or color images test.py is giving an error. E.g. feeding a 184 x 274 grayscale image gives: ValueError: Cannot feed value of shape (1, 184, 274, 1, 3) for Tensor 'input_gray:0', which has shape '(?, ?, ?, 1)'

Thanks for your help!

Edit:

In dataset.py changed line 147 to: img = imread(path, mode='L') from img = imread(path). Now the shape is (1, 184, 274, 1).

This results in a second error:

tensorflow.python.framework.errors_impl.InvalidArgumentError: ConcatOp : Dimensions of inputs should match: shape[0] = [1,512,3,5] vs. shape[1] = [1,512,4,6]

Thanks again!

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