cost 69 ms
C++ Tensorflow 精簡版,某些功能未定義參考

[英]C++ Tensorflow lite, undefined reference on some functions

我正在嘗試在我的 debian 11 intel x86_64 架構上使用 tensorflow lite 構建和運行一個項目。 到目前為止,我已經按照官方文檔和官方github 示例進行操作。 以下是我遵循的步驟: 在 ~/Desktop/ 我跑了git clone https://github. ...

如何保存有狀態的 TFLite model,其中 state 的形狀取決於輸入?

[英]How do I to save a stateful TFLite model where shape of state depends on input?

我正在嘗試在 tensorflow-lite 中做一些相當簡單的事情,但我不確定這是否可能。 我想定義一個狀態圖,其中 state 變量的形狀是在加載 model 時定義的,而不是在保存時定義的。 作為一個簡單的例子 - 假設我只想計算時間差異 - 即。 返回兩個連續調用中輸入之間差異的圖形。 以 ...

pip3 無法下載最新的 tflite-runtime

[英]pip3 can't download the latest tflite-runtime

tflite-runtime的當前版本是2.11.0 : https://pypi.org/project/tflite-runtime/ 這是將tflite-runtime下載到tmp文件夾的測試: 這是錯誤: 這是 pip3 版本: 上面的pip3 download有什么問題? 為什么找不 ...

如何在 tensorflow 中用填充掩蓋元素?

[英]How to mask elements with padding in tensorflow?

給定兩個示例張量input和mask : 我需要根據值為 0 的mask屏蔽input 。但是,由於批處理input中每個示例的屏蔽元素數量可能不同,為了使 output 保持有效張量,output 應該是: 即在 output 中,掩碼輸入僅保留mask為 1 的元素,並且在末尾填充零以確保 o ...

如何將 cnn 網絡的 tflite 文件拆分為每一層的 tflite 文件?

[英]How to split a tflite file for cnn network into tflite files for each layer?

我目前正在嘗試找到一種方法來在 Android Stuio (java) 上運行時為 CNN 網絡的每一層獲取中間特性。 實際上,我在下面的鏈接中找到了一些相關的問題和答案。 如何從特定層獲取輸出張量? 從上面的鏈接,我認為按層划分模型將是解決我的任務的唯一方法。 但是,目前還沒有將.tffil ...

tflite defendance 不適用於 flutter

[英]tflite defendance is not working with flutter

我是新手。 我正在制作一個識別移動應用程序的動作。 但是tflite防御不適用於flutter。 有誰知道解決方案? 插件tflite使用已棄用的 Android 嵌入版本。 為避免意外的運行時失敗或未來構建失敗,請嘗試查看此插件是否支持 Android V2 嵌入。 否則,請考慮將其刪除,因為 ...

如何將 decode_batch_predictions() 方法添加到 Keras 手寫識別 OCR model?

[英]How can I add the decode_batch_predictions() method into the Keras Handwriting Recognition OCR model?

我需要將decode_batch_predictions()方法添加到Keras 手寫識別 OCR model的 output 中。 這樣做的原因是我想將 model 轉換為 TF Lite,並且我希望對 output 進行解碼,因為我沒有找到任何方法來解碼 Android 中 TF Lite 上 ...

如何在 TF Lite Android 中讀取 Keras 手寫識別模型的輸出?

[英]How to read output of Keras Handwriting Recongition Model in TF Lite Android?

我正在嘗試在我的 Android 應用程序中實現手寫文本識別。 我發現 TensorFlow 是一個可行的解決方案,所以我嘗試從 Keras 的手寫識別模型創建一個 .tflite 模型教程指出它與 TF Lite 完全兼容我設法創建了 .tflite 模型然后在 Android 中使用模型初始化 ...

致命錯誤:找不到“include/tf-lite-api/tensorflow_src/tensorflow/lite/allocation.h”文件

[英]fatal error: 'include/tf-lite-api/tensorflow_src/tensorflow/lite/allocation.h' file not found

我正在使用 tensorflow 精簡版庫並嘗試將其導入 Android Studio 盡管我在 Native-lib.cpp 和所有 header 文件中遇到問題。 這是我的 interpreter.h 文件頭 雖然 allocation.h 在 include/tf-lite-api/tenso ...

將 Tensorflow-lite model 轉換為 F16 和 INT8

[英]Conversion of Tensorflow-lite model to F16 and INT8

我需要評估 CNN(卷積神經網絡)在邊緣設備上的性能。 我開始了解什么是量化以及如何使用解釋器(模擬器)在 colab 中運行它。 完整代碼在這里 -> https://github.com/aravindchakravarti/OptimizeNetworks/blob/main/Quan ...

TensorFlowLite 嘗試導入圖像獲取錯誤:java.lang.IllegalArgumentException:字節緩沖區的大小和形狀不匹配

[英]TensorFlowLite Trying to import a Image Getting erorr: java.lang.IllegalArgumentException: The size of byte buffer and the shape do not match

我正在使用 Android 中的 TensorFlow lite Model 進行 Object 檢測,過程是我們需要將所選圖像轉換為預期的特定緩沖區大小 TensorFlow Lite Model, 圖像的打印字節緩沖區大小為 [pos=1728 lim=1728 cap=1728] 預期為 [p ...

需要幫助在 Google Colab 中實施示例

[英]Need help implementing an example in Google Colab

我試圖在 Colab https://github.com/tensorflow/examples/tree/master/lite/examples/image_segmentation/raspberry_pi中運行此示例,但我無法成功,因為該示例使用網絡攝像頭。 任何人都有使用圖像、視頻或 g ...

TensorFlow 解釋器的 Lite 文檔發生了什么 class

[英]What happened with TensorFlow Lite documentation for the Interpreter class

我開始在C++中使用TensorFlow Lite做一個項目。我經常在官方參考中查找有關API的信息。 幾乎所有使用的方法都列在Interpreter class 中。但是,幾天前我注意到, Interpreter class 已從文檔中完全刪除。 其他課程仍列在那里。 當搜索僅存在於 C++ A ...

無法從 Tensorflow 的教程“簡單音頻識別”轉換 ASR model

[英]Can't convert a ASR model from Tensorflow's tutorial "Simple audio recognition"

我設法成功運行了本教程中的代碼。 現在我想在 Google 開發板上運行 model。 據我所知,Google Dev Board 僅支持 Tensorflow Lite。 所以model必須轉換才能在開發板上使用。 我嘗試將保存的 model 轉換為 但是,它不起作用: 問題似乎是 model ...

從 tflite model 文件中提取標簽

[英]Extract labels from tflite model file

我有一個訓練有素的 TF-Lite model (model.tflite),用於帶有多個標簽的圖像分類。 model 的 output 提供了一組概率,但我不知道標簽的順序。 我可以從 TF model 中提取標簽嗎? ...

AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object 沒有屬性 'assign'

[英]AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'assign'

我正在嘗試通過使用權重修剪來優化我的機器學習 model。 但無論我做什么,我都無法擺脫錯誤 AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object 沒有屬性 'assign' 這是我的修剪代碼 這是錯誤的完整堆棧 ...

如何為 Tensorflow Lite 訓練自定義 model 並讓 output 成為一個.TFLITE 文件

[英]How to train custom model for Tensorflow Lite and have the output be a .TFLITE file

我是 tensorflow 和 object 檢測的新手,非常感謝任何幫助,我有一個包含 50 張照片的數據庫,使用這個視頻讓我開始,它確實適用於谷歌的樣本Model (我使用的是 RPi4B 8 GB RAM),然后我想創建自己的 model。我嘗試了幾個選項,但最終失敗了,因為我需要的文件類型是 ...

add_subdirectory for cmake tensorflow lite 在后續運行中失敗

[英]add_subdirectory for cmake tensorflow lite fails on subsequent runs

我正在嘗試根據此處的最小示例將 tensorflow-lite 包含在項目中: 使用 CMake 構建 TensorFlow Lite 。 具體來說,我正在嘗試按照建議為 tflite 添加 CMakeLists.txt 的子目錄。 這在項目首次構建時有效,但如果我出於任何原因更改我的頂級 CMak ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM