[英]AttributeError: 'Model' object has no attribute '_backward_hooks'
嘗試實施研究論文: https://ieeexplore.ieee.org/document/9479786/使用架構訓練單調網絡:class Model(nn.Module): def __init__(self, q, s): self.layer_s_list = [nn.Lin ...
[英]AttributeError: 'Model' object has no attribute '_backward_hooks'
嘗試實施研究論文: https://ieeexplore.ieee.org/document/9479786/使用架構訓練單調網絡:class Model(nn.Module): def __init__(self, q, s): self.layer_s_list = [nn.Lin ...
[英]TypeError: Expected keras.losses.Loss, found function
我想為語音識別系統構建一個 TFF model。 為此,我使用具有 CTC 損失 function 的 CNN-GRU model 架構。 但是當我想 build_federated_averaging_process 並認為這是關於 ctc_loss function 時出現錯誤,但我無法修復它 ...
[英]I'm getting an **NumPyClient.fit did not return a tuple with 3 elements.** error when I run client.py file. What could be the problem?
我正在使用 Flower 代碼示例來嘗試聯邦學習的 POC,但是當我運行 client.py 文件時,我不斷收到以下錯誤: INFO flower 2022-07-04 15:27:37,301 | connection.py:102 | Opened insecure gRPC connectio ...
[英]Tensorflow Federated Learning on ResNet failse
我用 tensorflow 聯邦學習 API 做了一些實驗。 實際上,我嘗試在 10 個客戶端上訓練一個簡單的 ResNet。 根據數據和指標,培訓似乎是成功的。 但是評估以及本地和聯合失敗。 有人有建議嗎? 該模型: 該模型只是一個簡單的 ResNet。 對於培訓,我使用 Tensorfl ...
[英]How to save weights in tensorflow federated
我只想在損失越來越低時保存權重並將它們重用於評估。 在哪里: 有沒有辦法以 hdf5 格式保存服務器權重或作為檢查點並重用它? ...
[英]When switching from federated to centralized dataset -Error may indicate that you're trying to pass a Tensor to a NumPy call
我正在嘗試從聯合設置切換到集中學習。 我創建了一個聯合數據集,但我想使用create_tf_dataset_from_all_clients函數創建一個用於集中學習的數據集。 當我搜索錯誤時,我發現 NumPy 和 TensorFlow 的版本可能不適合此功能,我當前的版本是: 蟒蛇== 3. ...
[英]Is it against privacy of clients if I have a global tokenizer in Federated Learning (TFF)?
我目前陷入了死胡同。 我正在嘗試從聯合方法制作圖像標題生成器。 我最初的想法是為每個客戶使用不同的標記器。 然而,這帶來了這些問題: 每個客戶端都有不同大小的詞匯表,因此 y 的形狀也不同,這將導致全局模型配置出現問題。 為了解決上述問題,我可以使每個客戶端中的 y 大小等於所有客戶端中的 ...
[英]TypeError: expected at most 1 arguments, got 2....... data = collections.OrderedDict('data', distributed_data[i])
我收到與此函數定義相關的以下錯誤有什么問題? Convert_to_client_data() 是聯邦學習中的一個函數,我試圖將數據集轉換為聯邦數據集。 這是在給出錯誤的函數中使用的類 Distribute 的聲明 #類分布聲明 #function DEFINITION 給出錯誤 ...
[英]Why can't I see the local epochs output when training tensorflow federated learning model?
我正在訓練一個 tensorflow 聯邦學習模型。 我看不到時代的輸出。 詳情如下: for round_num in range(1, NUM_ROUNDS+1): state, tff_metrics = iterative_process.next(state, federate ...
[英]unable to list "extensions/v1beta1, resource=ingresses
我試圖將kubeFate與1.3.0版本一起使用,但是在我將服務及其原始文件應用為kubectl apply -f ./kubefate.yaml ,它會彈出錯誤消息 最初,我查看了kubefate.yaml並將入口部分中與extensions/v1beta1相關的任何內容更改為: 好吧,更 ...
[英]Unbalanced client size in federated learning
我正在使用 Tensoflow Federated 對多個文件應用聯合學習。 問題是,每個文件中的數據大小(記錄數)是不同的。 聯邦學習培訓中為每個客戶設置不同的大小是否存在問題? 如果有我該如何克服它? 有沒有一種方法可以讓我看到每個客戶端在聯合計算訓練時的表現? ...
[英]Cant to install tensorflow_federated
我嘗試安裝 tensorflow 聯合。 但是當我想導入 tensorflow federated 時,我收到此警告,然后重新啟動 google colab notebook。 另外,我嘗試以這種方式安裝 tensorflow federated: 但是在導入 tensorflow fe ...
[英]How to tune hyper parameters for CIFAR100 in tensorflow_federated TFF without dropping in the accuracy?
我正在嘗試使用CIFAR100 數據集測試本教程https://www.tensorflow.org/federated/tutorials/tff_for_federated_learning_research_compression ,但准確性每輪都在下降! 我對超參數的調整是原因嗎? 這是 ...
[英]AttributeError: 'MapDataset' object has no attribute 'client_ids' in tensorflow_federated TFF
我正在嘗試使用此 API tff.simulation.datasets.build_single_label_dataset() 測試非 IID聯邦學習中的壓縮技術,遵循這些帖子: TensorFlow 聯邦:如何調整聯邦數據集中的非獨立同分布性? AttributeError: 'MapD ...
[英]How can I use transfer learning in federated learning?
我嘗試實施聯邦學習。 (使用 TensorFlow 聯邦核心) 並在每一輪之后保存 server_state(權重): 現在我想將這個 pre_trained model 用於一個新的聯合學習案例,其中 CNN 層的權重是固定的,只有最后 3 層的權重發生變化。 有人可以幫助我如何做到這一點嗎? ...
[英]AttributeError: 'MapDataset' object has no attribute 'preprocess' in tensorflow_federated tff
我正在使用非 IID 分布測試本教程以進行聯合學習: https://www.tensorflow.org/federated/tutorials/tff_for_federated_learning_research_compression 在此發布的問題TensorFlow Federated ...
[英]Missing required positional argument:
我嘗試基於 LSTM 方法實現聯邦學習。 但是當我想定義 iterative_process 時出現此錯誤。 我如何解決它? ...
[英]Accuracy 0% for binary classification
我正在使用 OpenFL 框架進行聯邦學習實驗。 我運行他們的教程筆記本沒有問題,所以例如我能夠在 MNIST 上運行分類並且一切正常。 現在我正在使用 2 個客戶端和 2 個不同的數據集。 但是,對於二元分類問題,我的准確率約為 0%。 所以,對於兩個數據集,我有 2 個類,“neg”和“pos ...
[英]How the centralized server model is updated with aggregated client metrics in TensorflowFederated
我設計了聯邦學習 model 和 TensorFlow 聯邦框架。 定義迭代過程如下, 我有 2 個遠程工作人員運行 tffruntime 遠程執行程序服務,運行計算的上下文定義為tff.backends.native.set_remote_python_execution_context(chan ...
[英]Mismatched number of elements between type spec and value in `to_representation_for_type`. Type spec has 2 elements, value has 5
我使用 tensorflow fedprox 來實現聯邦學習。(tff.learning.algorithms.build_unweighted_fed_prox)def model_fn(): keras_model = create_keras_model() return tf ...