Tensorflow Hub in C++

Is it possible to use the TensorFlow Hub in the C++ Api? I would like to transform the following example. ``` Load content and style images (see example in the attached colab). content_image =...

Using tensorflow hub with go

I want to use pre trained models in my go application. Especially the Inception-ResNet-v2 model. This model seems to be only available via tensorflow hub (https://www.tensorflow.org/hub/)....

Tensorflow Hub vs Tensorflow SavedModel?

I was wondering what is currently the recommended way to save models in Tensorflow? SavedModel or Tensorflow Hub? The former is described in the section "save & restore a model" but the latter...

Tensorflow Hub : Stuck while importing a model

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',...

TensorFlow 2.0 & TensorFlow Hub: load_module_spec equivalent?

When using TensorFlow 1.x and TensorFlow hub we can load a module's spec to inspect the expected output shape (and probably other useful specifications too!) like this: spec =...

Using Tensorflow Hub with WebHDFS

I want to place the Tensorflow Hub Model: https://tfhub.dev/google/universal-sentence-encoder/4 on the Hadoop Server, and then use it in my code like so: embed =...

Run tensorflow lite model from tensorflow hub android

I have downloaded the Keras ocr tflite model (https://tfhub.dev/tulasiram58827/lite-model/keras-ocr/dr/2) from the TensorFlow hub and I would like to use it on my android app for scene text...

Tensorflow Hub causes tensorflow logging to duplicate!

My Tensorflow logging messages shows twice. After some investigation I figured out the cause is Tensorflow Hub. > Example: Code: import tensorflow as tf import...

Tensorflow Hub Build from Source Failing

I'm having a problem with Building TF Hub from Source. Can Anyone please help me out? I've been following the steps as given in...

Create new tensorflow image classification module using tensorflow hub

I'm new in tensorflow, i am trying to create new image classification module, I tried below example using tensorflow hub. but its not created. Is any simple example for create image classification...

How to use Tensorflow Hub Model?

GOAL to use a pre trained model from a TensorFlow example project more specifically Tensorflow hub 1. - To do that am trying to install tensorflow_hub with the following command: conda install -c...

Tensorflow Hub: Fine-tune and evaluate

Let's say that I want to fine tune one of the Tensorflow Hub image feature vector modules. The problem arises because in order to fine-tune a module, the following needs to be done: module =...

Tensorflow Hub shape not defined

I am trying to load in a pre-trained embedding model but no matter what shape I give, I cannot find the input shape. It seems like a pretty popular choice, but I cannot find any indicator on the...

Tensorflow API, Tensorflow hub and Keras input shape

I am working with tf=2.0.0, and tensorflow hub. Currently I am using the Tensorflow data API to load my data which is stored in a tfrecords file. I am successfully loading the dataset and...

How to use a custom model with Tensorflow Hub?

My goal is to test out Google's BERT algorithm in Google Colab. I'd like to use a pre-trained custom model for Finnish (https://github.com/TurkuNLP/FinBERT). The model can not be found on TFHub...

How to make the tensorflow hub embeddings servable using tensorflow serving?

I am trying use an embeddings module from tensorflow hub as servable. I am new to tensorflow. Currently, I am using Universal Sentence Encoder embeddings as a lookup to convert sentences to...

How to use tensorflow-hub module with tensorflow-dataset api

I want to use Tensorflow Dataset api to initialize my dataset using tensorflow Hub. I want to use dataset.map function to convert my text data into embedding. My Tensorflow version is 1.14. Since...

How to save tensorflow hub model for serving in tensorflow model serving

I want to use tensorflow object detection model from tensorflow hub for hosting in model serving. I am able to download model but not able to save in model serving format. Any one have idea ?

Customize Input to Tensorflow Hub module

I know how to load a pre-trained image models from Tensorflow Hub. like so: #load model image_module =...

Tensorflow Hub Inception V3 structure compared to Keras Inception V3 structure?

I have been working Keras Inception V3. I believe the Keras model structure looks like the image below. But when I use the Inception V3 model from Tensorflow Hub, I think (but am not sure) ...

Tensorflow hub error "cannot import name 'MomentumParameters' from 'tensorflow.python.tpu.tpu_embedding' "

trying to use tensforflow hub on jupyter notebook, ive got the latest tensorflow installed. However when i try to import tensorflow_hub import tensorflow_hub as hub, i get an error: ImportError:...

Tensorflow-hub Text-Module Preprocessing

I'm playing around with the new Modules which are available on the tensorflow-hub (which I really like - thanks for that). Whats unclear to me, is the preprocessing which should take place when...

Colab Kernel Restarts Whenever Loading a Model From Tensorflow-hub

I wanted to try out the embeddings provided in tensorflow-hub, the 'universal-sentence-encoder' to be specific. I tried the examples provided...

Tensorflow hub fine-tune and evaluate

I want to use tensorflow hub, to retrain one of its modules in my graph and then use that module, but my problem is when I set trainable = True and tags = {"train"} to create the module,...

Add LSTM layers after tensorflow-hub pretrained model

I'm working on text classification using Tensorflow-hub pretrained Word2vec model. And I'm seeking for adding an LSTM layer to the keras model. For that, I used the following code: model =...

Error while using Tensorflow-Hub and Colab TPU

I am trying to use BERT for text classification using Tensorflow hub. The code runs fine on Colab GPU but when I converted it for Colab TPU it shows up the following 'uninitialized layer'...

Module tesnorflow has no attribute "UninitializedVariable" tensorflow hub error

I have tensorflow version "1.14.0" and pip3 is also updated. But when I do:- import tensorflow as tf I get this error: AttributeError: module 'tensorflow.python.ops.resource_variable_ops'...

Error while converting fasttext model to tensorflow-hub

I am trying to convert facebooks' fast-text model to tensorflow-hub format. I have attached two main files for the purpose. def _compute_ngrams(word, min_n=1, max_n=3): BOW, EOW =...

Extracting numpy array from Tensorflow-Hub Module (tensor to numpy conversion)

I'm trying to get started with Tensorflow-Hub to extract feature vectors from images. However, I'm not sure how one is meant to convert Tensorflow-Hub outputs (Tensors) to numpy vectors. Here's a...

Calculating percentile of dataset words and Tensorflow-hub model

I want to calculate the percentile of dataset words that are present in a tensorflow-hub model (such as ELMo or Universal Sentence Encoder). For local models like GloVe, I use a naive method: read...