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

Test image not working #21

Open
urikobi opened this issue Aug 21, 2019 · 2 comments
Open

Test image not working #21

urikobi opened this issue Aug 21, 2019 · 2 comments

Comments

@urikobi
Copy link

urikobi commented Aug 21, 2019

Are there instruction on how to test using my own pictures? Trying to use a picture and got the error
Cannot feed value of shape (1,240,159,1,3) for tensor 'input_gray:0', which has shape '(?,?,?, 1)'

@xAnatoliDick
Copy link

It expects a 1-color-channel image (-> greyscale), said with shape '(?,?,?, 1)'.
A regular color image has 3 channels, just as your image input as you can see your shape has these 3 channels in the last number. So you have to convert your 3-channel color image to a 1-channel one. Or google for one for testing.

@xAnatoliDick
Copy link

xAnatoliDick commented Sep 15, 2019

As mentioned in Issue #12 you can change one line to convert the color image to 1-channel greyscale directly
'In dataset.py changed line 147 to: img = imread(path, mode='L') from img = imread(path). Now the shape is (1, 184, 274, 1).'

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