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

ValueError: Cannot feed value of shape (2, 227, 227, 1, 4) for Tensor 'annotation:0', which has shape '(?, 227, 227, 1)' #124

Open
Rundong4026 opened this issue Jun 28, 2020 · 2 comments

Comments

@Rundong4026
Copy link

it seems that my own labeled images are not suitable for the feed value. The batch size is 2, 227*227 pixels, single channel labeled pngs, but what is the "4" represent? Hope someone could give me a hint or help me! Will be really appriciate!

BTW, I used Labelme to annotate my own images, and used the Label.png, which are singel channel images directly, is that correct?

@BaoanhTrinh
Copy link

@Rundong4026 Have you fixed it yet? I have the same problem!

@BaoanhTrinh
Copy link

I've solved the problem. When you get the annotations, get 2 dimention: img = misc.imread(filename)[:,:,0]

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