![](/img/trans.png)
[英]Why does estimator.export_saved_model complain about missing variables after TF2 migration?
我正在與老師和學生 BERT model 一起進行蒸餾,並使用estimator.export_saved_model導出學生 model 。 這在 TF1 中運行良好,但我轉移到 TF2 以便能夠使用多 GPU 訓練,現在我不斷收到以下錯誤消息: 當我調查檢查點中的節點名稱時,我發現它們都有某種 ...
[英]Why does estimator.export_saved_model complain about missing variables after TF2 migration?
我正在與老師和學生 BERT model 一起進行蒸餾,並使用estimator.export_saved_model導出學生 model 。 這在 TF1 中運行良好,但我轉移到 TF2 以便能夠使用多 GPU 訓練,現在我不斷收到以下錯誤消息: 當我調查檢查點中的節點名稱時,我發現它們都有某種 ...
[英]How to manage model file, when load more than 2 models downloading mannually from Tensorflow Hub?
我嘗試從 url 下載模型 它顯示錯誤: URLError: <urlopen error [Errno 101] Network is unreachable> 並通過How to load TF hub model from local system解決了這個問題但是模型文件太多了 ...
[英]Problems with tensorflow_hub in google Collab
我正在嘗試在 Google Collab 中使用 BERT,並且import tensorflow_hub as hub 但它引發了 ValueError: 我相信這是版本沖突或類似的問題,但無法解決。 我已經嘗試過重啟環境,安裝不同版本的tensorflow和tensorflow_hub等,但是 ...
[英]Why is the validation accuracy low even though I'm using a pretrained model?
我正在嘗試使用來自 tensorflow 集線器的預訓練 model 對 google colab 上的 10 種鳥類進行分類,該集線器已經對 964 種鳥類進行了訓練。 但是當我訓練它時,准確率並沒有我想象的那么高。 損失也相當大。 我不確定我在導入 model 時是否做錯了什么。出於某種原因, ...
[英]ValueError: When input_signature is provided, all inputs to the Python function must be convertible to tensors:
我有這樣的 pyspark df: 現在我想將我的desc列轉換為向量,所以我使用 Google 句子編碼器作為 udf,這是我的代碼: 這是錯誤日志: 有人可以告訴我我做錯了什么 ...
[英]Tensorflow Hub Loaded Model - ValueError: Signature specifies 343 arguments, got: 342
我將 Numpy 數組圖像傳遞給“process_image”。 然后對其進行處理,轉換為具有 Tensorflow 集線器 model 所需尺寸和 dtype 的 TensorSpec object。 img: TensorSpec(shape=(1, 480, 640, 3), dtype= ...
[英]fine-tune the model from TensorFlow Hub
我使用了 TensorFlow 網站上的代碼: 我必須毫無問題地實現整個代碼,但我想知道如何微調它,因為我無法訪問: ...
[英]Issue Using tensorflow hub Universal Sentence Encoder with local runtime and GPU in Google Colab
我正在通過機器學習課程學習 tensorflow。 在其中一個項目中,我使用 tensorflow_hub 預訓練嵌入,即通用句子編碼器 v4 執行文本分類。 嵌入使用谷歌 Colab GPU 工作正常,並且在沒有我的 GPU 的情況下也可以在我的本地運行時工作。 但是,在我設置 colab 以能夠 ...
[英]How to avoid outputting a auto generated directory when downloading tensorflow hub module
代碼: 當我運行它時,它會自動在末尾附加一些 hash 目錄: 我是否可以在不包含 hash 的情況下下載 model? ...
[英]tensorflow hub example throws an error when Float16 is enabled
我正在嘗試使用示例代碼從 Tensorflowhub 加載模型。 它與 FP32 完美搭配。 一旦我添加 tf.keras.mixed_precision.set_global_policy('mixed_float16') 以啟用混合浮點數,它就會引發錯誤。 看起來像尺寸問題,但它適用於 FP32 ...
[英]Running TF Hub Model sfaster by transfer learning?
我有一個項目,我想從圖像中檢測人類。 我已經實現了代碼,以便使用預訓練的 TF Hub 模型,這些模型可在以下網址獲得: https ://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_det ...
[英]Error while working on chatbot-universal-sentence-encoder
我正在嘗試“chatbot.py”,但我遇到了錯誤。 Traceback(最近一次調用最后一次):文件“chatbot.py”,第 11 行,在 embeddings = model(df["MESSAGE"].values)["outputs"] IndexError: only intege ...
[英]How to use tensorflow hub in Azure ML
我正在嘗試在 Azure ML Studio 中使用 TensorFlow Hub 我正在使用 kernel Python 3.8 PT 和 TF 我安裝了幾個模塊: 通過 pip 列表,我可以看到它們已安裝: 但是,當我嘗試按照文檔( https://www.tensorflow.org/hub ...
[英]Error while creating a model for binary classification for text classification
代碼: 錯誤: 有人可以看看這個嗎? 這里構建一個 model 用於文本分類微調 BERT ...
[英]How to load a model using Tensorflow Hub and make a prediction?
這應該是一個簡單的任務:下載一個以tensorflow_hub格式保存的model,使用tensorflow_hub加載,然后使用.. 這是我正在嘗試使用的 model(simCLR 存儲在 Google Cloud 中): https://console.cloud.google.com/sto ...
[英]Yamnet audio classification for feature extraction
我目前正在處理音頻分類任務並使用 Ya.net,它是來自 tfhub 的預訓練 model。我正在使用它從音頻中提取嵌入,然后我使用另一個由兩個密集層組成的簡單分類 model,第二個 model 作為輸入 ya.net 給出的嵌入並進行分類。 問題是 ya.net 給出的嵌入始終以第三個 clas ...
[英]Why some TensorFlow-Hub models are not fine tunable?
我剛剛用 TensorFlow 學習圖像分類,發現有一個 TensorFlow hub,我們可以在其中使用很多模型來完成很多分類任務。 例如,我想建立食品分類並開發model,這樣model將涵蓋我國的食品,並且對某些特定食品具有更高的准確性。 我嘗試使用和調整此 model: https://t ...
[英]tensorflow: doesn't appear to be using GPU for compute
我已經下載並正在使用 tensorflow 集線器 model。 model創建碼為: 我知道我已經正確配置了我的系統,因為其他型號使用 GPU,而我的 tensorflow output 包括以下內容: 但是,當在任務管理器中查看我的資源使用情況時,我的 GPU memory 正在被填充,但我的 ...
[英]Creating appropriate dataset for tensorflow multilabel classification model: "ValueError: setting an array element with a sequence"
我正在嘗試基於此 model 訓練多類圖像分類 model: https://tfhub.dev/google/imag.net/inception_v3/feature_vector/5 並從這里獲取一些代碼: https://colab.research.google.com/github ...
[英]BERT encodings from TensorFlow hub
我正在使用以下代碼為我的文本分類生成嵌入。 上面給出了 array([[0.99355495]], dtype=float32) 是說 happy 和 said 之間的相似度得分是 99% 為什么給出 99%? 我可以將這些嵌入用於我的文本分類嗎? ...