hub
hub copied to clipboard
A library for transfer learning by reusing parts of TensorFlow models.
When I run [tf2onnx ](https://github.com/onnx/tensorflow-onnx)which is using `tensorflow_hub`, there are some `DeprecationWarning` encoutered. ``` lib/python3.9/site-packages/tensorflow_hub/__init__.py:74: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if (distutils.version.LooseVersion(tf.__version__) < /home/deyu/anaconda3/envs/py39/lib/python3.9/site-packages/tensorflow_hub/__init__.py:75: DeprecationWarning: distutils...
### What happened? I am using Top2Vec to summarize document corpuses. Top2vec can utilize a variety of different document embedding methods. With universal-sentence-encoder_4, is very slow. Is this due to...
### What happened? I was able to train and save a custom model using the make_image_classifier tool provided at https://github.com/tensorflow/hub/tree/master/tensorflow_hub/tools/make_image_classifier. I was then able to successfully load this custom model...
### What happened? The USE DAN model is an efficient embedder for short phrases. And, it trains well on a single GPU. However, it fails to train on a multi-GPU...
### What happened? I am trying to load a model from Tensorflowhub using example code. It works perfect with the FP32. As soon as I add the `tf.keras.mixed_precision.set_global_policy('mixed_float16')` to enable...
I was trying to make a text-classification model using BERT and I wanted to use [this](https://tfhub.dev/tensorflow/bert_en_uncased_preprocess/3) preprocessor model. To do that I followed [this](https://colab.research.google.com/github/tensorflow/text/blob/master/docs/tutorials/bert_glue.ipynb) notebook for creating the preprocessor model....
### What happened? I am trying to use the model from: [hub](https://github.com/tensorflow/hub)/[examples](https://github.com/tensorflow/hub/tree/master/examples)/[colab](https://github.com/tensorflow/hub/tree/master/examples/colab)/cross_lingual_similarity_with_tf_hub_multilingual_universal_encoder.ipynb I intend to use the saved model through REST, but do not know the required Inputs. Is there...
### What happened? I am doing finetuning using TF2.0 and using the keras models where I train the top 10 layers in the base model. I can easily set which...
### What happened? I'm tryining to install Tensorflow hub on my local conda enviroment on my Windows computer. I get the following error: ImportError: cannot import name 'MomentumParameters' from 'tensorflow.python.tpu.tpu_embedding'...
I am trying to build a text classification program with small bert using the following code ```py with tf.device('/cpu:0'): preprocessing_layer = hub.KerasLayer("https://tfhub.dev/tensorflow/bert_en_uncased_preprocess/3") train_data = tf.data.Dataset.from_tensor_slices((preprocessing_layer(data_train.data), tf.keras.utils.to_categorical(data_train.target))) valid_data = tf.data.Dataset.from_tensor_slices((preprocessing_layer(data_test.data), tf.keras.utils.to_categorical(data_test.target)))...