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

Error in executing training and predictions #18

Open
dataplusplus-ai opened this issue Oct 4, 2022 · 1 comment
Open

Error in executing training and predictions #18

dataplusplus-ai opened this issue Oct 4, 2022 · 1 comment

Comments

@dataplusplus-ai
Copy link

While executing this notebook https://github.com/mwdhont/SimCLRv1-keras-tensorflow/blob/master/2_model_SimCLR.ipynb in google colab, this code y_predict_test_before = SimCLR.predict(data_test) gives the following error.

ValueError: Failed to find data adapter that can handle input: <class 'DataGeneratorSimCLR.DataGeneratorSimCLR'>, <class 'NoneType'>
Converting data_test, data_train, data_val to numpy arrays does not help.

Similar error while executing this line also.
SimCLR.train(data_train, data_val, epochs = 5)

@aldoazali
Copy link

Try downgrade the Tensorflow and Keras version I think??
I also get the same result when try using the current version Tensorflow (v=2.9.2) and Keras (2.9.0) from google Colab.
But when I downgraded the tensorflow version into 2.1. and keras to 2.3.2. It works fine with me when I run the template code in Google Colab.

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