-
Notifications
You must be signed in to change notification settings - Fork 146
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: Error when checking input: expected input_12 to have 4 dimensions, but got array with shape (4, 1) #29
Comments
You still facing this issue? |
@deepak112 Hi Deepak, I am facing a similar issue could you please look at this thread here, I think it is a similar issue, except @sandhya9173 is trying to train the model, whereas I am trying to evaluate your pretrained model issue |
@deepak112 Hi Deepak iam facing the same issue while training, using the simplified code, in Colab |
Hi, |
thanks for prompt reply, here are the shapes: |
Are all images are of same shape? |
shall i use the function load_data_from_dirs_resize instead of load_data_from_dirs, to load the data? |
Ya images are not of same size. Either make one custom funtion to have same size images. And then save those images to some directory and then use load_data_from_dirs. |
I mnot able to understand where this problem in this line its showing error(d_loss_real = discriminator.train_on_batch(image_batch_hr, real_data_Y) but my images size(shape (96, 96, 3)), can you please where its problem
The text was updated successfully, but these errors were encountered: