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

InvalidArgumentError: Incompatible shapes: [2,256,256,1] vs. [0,256,256,1] #227

Open
Muskaan06 opened this issue May 1, 2021 · 2 comments

Comments

@Muskaan06
Copy link

Found 20 images belonging to 1 classes.
Found 0 images belonging to 1 classes.

My images folder are being read but the mask folder is not. Please help.

@Mullefar1
Copy link

Mullefar1 commented May 4, 2021

Did you ensure, that mask/label folder is placed correct? For the standard code, you need to have the image folder and mask/label folder under the same folder. My path looks like this:

Generator = train(8, 'My folder with train data', 'image','label', data_gen_args, save_to_dir = None)

@Muskaan06
Copy link
Author

yes the folder name was okay.....my train file contains .png images and this model reads only .tif. It's working when I changed the type but not getting the result.

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