MATLAB Answers

how to load costum layers from workspace to netwrok in dep network designer app without losing existing network?

1 ビュー (過去 30 日間)
ytzhak goussha
ytzhak goussha 2021 年 5 月 1 日
コメント済み: ytzhak goussha 2021 年 5 月 16 日
Hello,
I have created a network in deep network designer app and would like to add a costume layer that I created and is the workspace.
When I follow the instructions in the tutorial on how to import custom layers
it says that I should click on New->From Workspace->*choose the desired layer*->ok
but when i do that, it replaces my network with the new one instead of adding the layer to the existing network.

採用された回答

Divya Gaddipati
Divya Gaddipati 2021 年 5 月 13 日
I understand that you are trying to use this functionality in R2020a version. However, this workflow was added in MATLAB R2020b version. Unfortunately, there is no known workaround to achieve this workflow till R2020a version.
I would recommend you to update your MATLAB version to R2020b or later.
  1 件のコメント
ytzhak goussha
ytzhak goussha 2021 年 5 月 16 日
Thank you,
Here is how I do this
First, I add a "filler layer" to my network (any layer) and export the network to the workspace.
I then load my desired costum layer to the workspace (costumLayer).
Next, I replace the filler-layer with the new layer and create a graph (network)
new_lgraph = replaceLayer(exported_lgraph,"filler layer",costumLayer)
Finally, I load the new graph with the app.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by