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

Keras Tuner crashing #1011

Open
Iphykay opened this issue Jun 15, 2024 · 3 comments
Open

Keras Tuner crashing #1011

Iphykay opened this issue Jun 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Iphykay
Copy link

Iphykay commented Jun 15, 2024

Describe the bug
I don't know why this happens but it does the first trial and then shows the error on the 2nd and 3rd trials. I don't know why it says the shape is changing. The input shape is not changing.
This happens when it does the tuner.search()
image_2024-06-15_124746007

To Reproduce
When you run the colab file, it runs well and sometimes it produces that error even when the input same is not changing. Unfortunately, I can't share my data, but i reproduced something close to it
https://colab.research.google.com/drive/1RkpAoA-bunT0muFLYAtkKdM6F3WPp1YS?usp=sharing

Expected behavior
No crash!

Additional context
Tensorflow version: version 2.16.1
Keras version: 3.1.1
Keras-Tuner version: 1.4.7

Would you like to help us fix it?
I don't know to be honest.

@Iphykay Iphykay added the bug Something isn't working label Jun 15, 2024
@Iphykay
Copy link
Author

Iphykay commented Jun 18, 2024

I found out what the issue was. I was down-sampling the data to the point the kernel can't do the convolution on the data. 3 layers is enough to prevent that error. Number of layers will depend on the grid size of the image.

@ghsanti
Copy link

ghsanti commented Sep 23, 2024

You are correct! I think it can be closed @Iphykay.

@Iphykay
Copy link
Author

Iphykay commented Sep 23, 2024

Yeah sure thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants