tensorflow-hub Questions
2
I followed instructions given in the TensorFlow website to install tensorflow_hub and installed it within a conda environment.
$ pip install "tensorflow>=2.0.0"
$ pip install --upgrade...
Downandout asked 14/9, 2020 at 12:28
2
The following line of code I am trying to run in PyCharm and I have tensorflow_hub installed and imported.
use = hub.load("https://tfhub.dev/google/universal-sentence-encoder-multilingual-larg...
Sharleensharlene asked 29/6, 2020 at 21:43
4
Solved
I am trying to use a pre-trained model from tensorflow hub into my object detection model. I wrapped a model from hub as a KerasLayer object following the official instruction. Then I realized that...
Marjie asked 25/5, 2020 at 5:56
4
after writing import tensorflow_hub, the following error emerges:
class LatestModuleExporter(tf.estimator.Exporter):
AttributeError: module 'tensorflow.python.estimator.estimator_lib' has no att...
Furnary asked 11/4, 2018 at 11:4
3
I ran this code:
import tensorflow_hub as hub
I got this error:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipytho...
Stumpage asked 28/11, 2020 at 17:16
4
Solved
When trying to use the hub.load function from tensorflow_hub, I get an OSError: SavedModel file does not exist at: error.
The weird thing is that it worked a few days ago, so I don't quite understa...
Thresathresh asked 24/7, 2020 at 17:33
1
I would like to fine tune a pre-trained GAN available online using my own images. For example, BigGAN, which was trained on ImageNet, can generate realistic images. However, I do not want to genera...
Clannish asked 27/9, 2021 at 11:6
2
I have some sentences for which I am creating an embedding and it works great for similarity searching unless there are some truly unusual words in the sentence.
In that case, the truly unusual wo...
Ammunition asked 13/3, 2019 at 18:13
3
Solved
I'm trying to fit a text classification model. Therefore i wanted to use the text_embedding_column function provided by tensorflow-hub. Unfortunately i get a runtime error
import tensorflow_hub as...
Adriene asked 3/1, 2019 at 20:46
2
Solved
I am using Colab to run a text analysis code. I am want to get universal-sentence-encoder-large from tensorflow_hub.
But anytime running the block containing the code below:
module = hub.Module("h...
Conroy asked 1/9, 2019 at 0:21
1
Solved
I am using the latest version of tensorflow hub, and wondering how one gets information on a model's expected input shape, as well as on what type of collection the model belongs to.
For example, i...
Antheridium asked 5/11, 2020 at 14:43
3
Solved
I tried running this code in TensorFlow 2.0 (alpha):
import tensorflow_hub as hub
@tf.function
def elmo(texts):
elmo_module = hub.Module("https://tfhub.dev/google/elmo/2", trainable=True)
retur...
Reitz asked 9/4, 2019 at 4:22
2
I have a tfrecord with 23 classes with 35 images in each class (805 in total). My current tfrecord read function is:
def read_tfrecord(serialized_example):
feature_description = {
'image': tf.io...
No asked 25/11, 2019 at 20:42
6
Solved
The tensorflow_hub library maintainers has made it every easy for users to download and use the pre-trained tensorflow modules, e.g.:
import tensorflow_hub as hub
embed = hub.Module("https://tfhu...
Macur asked 14/5, 2018 at 1:7
1
Solved
I attempting to deploy the universal-sentence-encoder model to a aws Sagemaker endpoint and am getting the error raise ValueError('no SavedModel bundles found!')
I have shown my code below, I have...
Emmy asked 23/7, 2019 at 21:1
2
Solved
The script retrain.py described in How to Retrain an Image Classifier for New Categories was run as
python retrain.py --tfhub_module https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/feature...
Croix asked 24/4, 2019 at 12:0
1
I'm working on this colab notebook:
https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/tf2_text_classification.ipynb
I'd like to replace the gnews swivel embedding...
Osteoma asked 30/4, 2019 at 6:33
2
Solved
I am new to Tensorflow Hub. I want to use I3D module and finetune this network to another dataset and I need to get the last hidden layer as well as some other layers' outputs. I was wondering if t...
Hizar asked 12/9, 2018 at 22:36
1
Solved
Trying to import some models with Tensorflow Hub with this code :
import tensorflow as tf
import tensorflow_hub as hub
elmo_model = hub.Module('https://tfhub.dev/google/elmo/2', trainable=True)
...
Breeder asked 23/10, 2018 at 2:14
1
Solved
I have spent several hours trying to set up Tensorflow serving of the Tensorflow-hub module, "Universal Sentence Encoder." There is a similar question here:
How to make the tensorflow hub embeddin...
Diopside asked 9/10, 2018 at 7:27
1
© 2022 - 2024 — McMap. All rights reserved.