You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use ResNet18's weights in Google Colab, but the imports never match, every time it complains about a different module. I've been trying all version combinations of Keras, Tensorflow and related that I can find on the discussions, but none have worked so far. So I'll ask here directly for ways people have made this work on Colab.
The text was updated successfully, but these errors were encountered:
Ah I finally got it working by installing by !pip install git+https://github.com/qubvel/classification_models.git
Then importing as from classification_models.tfkeras import Classifiers
And only using Tensorflow's modules, ex:
Using from tensorflow.keras.models import Model, load_model, Sequential instead of from keras.models import Model, load_model, Sequential
I'm trying to use ResNet18's weights in Google Colab, but the imports never match, every time it complains about a different module. I've been trying all version combinations of Keras, Tensorflow and related that I can find on the discussions, but none have worked so far. So I'll ask here directly for ways people have made this work on Colab.
The text was updated successfully, but these errors were encountered: