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

你好,有些问题想咨询一下您~ #1

Open
MYmengyun opened this issue May 28, 2018 · 2 comments
Open

你好,有些问题想咨询一下您~ #1

MYmengyun opened this issue May 28, 2018 · 2 comments

Comments

@MYmengyun
Copy link

MYmengyun commented May 28, 2018

i download this code and change de dataset ,but my dataset is gray picture,so i know that maybe my picture is not RGB, but when i change the input channel to 1, it is not still run through this code so can you give me some advice to help me?
this is my question:
ValueError: Cannot feed value of shape (150, 32, 32) for Tensor 'Placeholder:0', which has shape '(?, 32, 32, 3)'

@NabsTao
Copy link

NabsTao commented Sep 12, 2018

i download this code and change de dataset ,but my dataset is gray picture,so i know that maybe my picture is not RGB, but when i change the input channel to 1, it is not still run through this code so can you give me some advice to help me?
this is my question:
ValueError: Cannot feed value of shape (150, 32, 32) for Tensor 'Placeholder:0', which has shape '(?, 32, 32, 3)'

You can try to add something to your data set’ pictures, such as a red point.
And then your pictures will have 3 channels.

@hujunxianligong
Copy link
Owner

hujunxianligong commented Sep 12, 2018

You should expand a dimension by np.expand or tf.expand after the last dimension as the channel.
The input should have 4 dimensions.

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

3 participants