Clear Filters
Clear Filters

How to construct a Siamese network using Matlab Neural Network Toolbox?

26 views (last 30 days)
I want to construct a Siamese network. Is it can be realized by using Matlab Neural Network Toolbox? Can anyone give me some suggestion?
here is an error: Unable to add input layer to layer graph because the graph already contains one input layer. Layer graphs can contain only one input layer.

Answers (3)

xiao
xiao on 10 May 2018
you can refer the demo of deep learning, maybe that will help you how to construct a network.
  1 Comment
Von Duesenberg
Von Duesenberg on 10 May 2018
The OP is interested in a very specific type of network and I don't think the demos from the documentation tackle this aspect. Maybe this link can help: https://github.com/lenck/siamese-mnist

Sign in to comment.


Anh Tran
Anh Tran on 26 Sep 2019

Shai Kendler
Shai Kendler on 5 Apr 2020
Thanks Anh Tran,
The example in the link you provided works very good for me. However, I don't have a good gpu. When I set execution environment 'parallel' it uses as single CPU. Please advise.
Thanks, Shai

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!