323 questions
Score of 0
1 answer
74 views
Issue when loading model with hub.KerasLayer layer... NameError: Exception encountered when calling Lambda.call()
I am doing some NLP exercises. I am unable to use a saved model with a hub.KerasLayer layer :(
Here are the steps I done:
Create the model - OK
Compile the model - OK
Fit/Train the model - OK
...
Score of 3
1 answer
192 views
How to fix ValueError: Only instances of keras.Layer can be added to a Sequential model when adding tensorflow_hub.KerasLayer?
I am learning TensorFlow and transfer learning, and I am trying to add a TensorFlow Hub feature extractor to a Keras Sequential model. But I get this error:
ValueError: Only instances of keras.Layer ...
Score of 1
1 answer
106 views
How can I save a model with input shape (1, None, None, 3) with None fixed to 256?
I have questions about a model obtained from TensorFlow Hub.
I am trying to use "movenet" with the following source code.
https://www.kaggle.com/models/google/movenet/tensorFlow2
(1) The ...
Score of 1
0 answers
77 views
I cannot transfer learning YAMNET for multi-label problem
I'm using this tutorial to apply transfer learning to my dataset which has 32 classes of audio.
https://www.tensorflow.org/tutorials/audio/transfer_learning_audio?hl=en
But this does not seem to work ...
Score of -2
1 answer
38 views
About tensorflow_hub
hi guys i'm successfully import tensorflow_hub.
but when I trey to run this code part
"
**IMAGE_SHAPE = (224, 224)
classifier = tf.keras.Sequential([
hub.KerasLayer(classifier_model, input_shape=...
Score of 1
4 answers
2206 views
Only instances of `keras.Layer` can be added to a Sequential model
I encountered an error related to Sequential while working with TensorFlow Hub. Can anyone help me with this?"
enter image description here
"ValueError: Only instances of keras.Layer can be ...
Score of 6
9 answers
10083 views
error : Only instances of `keras.Layer` can be added to a Sequential model
I simply want to wrap the model as a keras layer but it simply is not happening ans keeps showing this error to me, i don't know if it's the keras or tensorflow version but i don't want to change them ...
Score of 0
0 answers
233 views
Tensorflow Hub: AttributeError: module 'tensorflow_hub' has no attribute 'load'
Got this error message. Used Pycharm IDE for Python.
This is the code I had used:
import tensorflow_hub as hub
embed = hub.load("https://tfhub.dev/google/universal-sentence-encoder-large/5")...
Score of 4
2 answers
1608 views
Issue with BERT Preprocessor model in TF2 and python
I am trying to use BERT to do a text classification project. However I keep running into this error
`
ValueError Traceback (most recent call last)
Cell In[37], line 4
...
Score of 0
2 answers
3250 views
Module 'tensorflow_hub' has no attribute 'Module'
I used Jupyter Notebook to do ELMo to extract features.
However, when I am trying to run the code
!pip install tensorflow
!pip install tensorflow-hub
import tensorflow_hub as hub
import tensorflow as ...
Score of 1
0 answers
73 views
TensorFlow_Hub saved model online accessibility?
I've followed the TensorFlow_Hub documentation to retrain one of their models to identify one of 20 cat breeds from an image. I'm doing this for school, and part of it requires me making it available ...
Score of 0
1 answer
512 views
TensorFlow saved_model.pb cannot be loaded correctly
I have downloaded a model from Hub. The archive contains TensorFlow 2 saved model and if decompressed shows a file named saved_model.pb and a variables folder that inside has 2 files variables.data-...
Score of 0
1 answer
633 views
Why is Tensorflow Hub giving 403 Error suddenly?
Created a project almost a year ago that uses TensorFlow models. All has been working fine up until this morning. Suddenly our application has started getting errors to fetch models at the following ...
Score of 0
1 answer
97 views
tensorflow hub in flutter_android
I want to use the model food_V1, https://tfhub.dev/google/aiy/vision/classifier/food_V1/1 in Flutter, but when I download the model, there is no labels.txt file. There is only one tflite file and I ...
Score of 0
1 answer
1100 views
Tensorflow-Hub Modules not loading
I am trying to use the universal sentence encoder 4, It works on my desktop at home but I am not home so I am having to re-set everything up. I am using this all in a virtual environment. I have ...