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

issue when using custom dataset #1

Open
vainaixr opened this issue Mar 21, 2019 · 7 comments
Open

issue when using custom dataset #1

vainaixr opened this issue Mar 21, 2019 · 7 comments

Comments

@vainaixr
Copy link

vainaixr commented Mar 21, 2019

I attempted to run this siamese network on a custom dataset of comic character faces, but got the error "all input arrays must have the same shape"

I am using the moeimouto-faces dataset, and ran this jupyter notebook on it.
Dataset - https://www.kaggle.com/mylesoneill/tagged-anime-illustrations/home

how to solve this issue?

@eldarovich99
Copy link

I am interesting in this issue too, I tried to train model on at&t facedatabase and I catch this error. Did you cope with the problem?

@eldarovich99
Copy link

Check your margin in try-catch block, my error was caused by this.

@vainaixr
Copy link
Author

vainaixr commented Apr 6, 2019

@eldarovich99 what did you do? where you able to run on custom dataset?

@Emirismail
Copy link

Emirismail commented Apr 22, 2019

@vainaijr , please check the shape of your dataset images. It must have all the same shape.
Please try this code:
for object_folder in os.listdir(path):
print(object_folder)
image_path = os.path.join(path,object_folder)
for image_name in os.listdir(image_path):
image_path_1 = os.path.join(image_path, image_name)
image = imread(image_path_1)
print(image_name, image.shape)

@manmohansingh01
Copy link

how can i make all images of same shape

@kbmeena
Copy link

kbmeena commented May 20, 2020

how can i make all images of same shape

use imresize

@ShrideviReddy
Copy link

Check size of your dataset images. Change layer dimension accordingly.

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

6 participants