How can I implement "triplet loss" for a CNN in neural network toolbox?

3 ビュー (過去 30 日間)
Marco Francini
Marco Francini 2017 年 9 月 11 日
回答済み: Roy Talman 2018 年 2 月 1 日
I have the R2017a version of Matlab and Neural Network Toolbox. I would like to implement face-recognition and one of the loss function of the state of the art algorithms is "Triplet loss". How can I implement it in Matlab with the Neural Network Toolbox?
Thanks.

回答 (2 件)

Helper
Helper 2017 年 9 月 14 日
Unfortunately, as of right now there is no way of customizing the loss function when training a neural network in MATLAB. An enhancement request has been submitted for this feature, and our development team will consider it for a future release of MATLAB

Roy Talman
Roy Talman 2018 年 2 月 1 日
Hi I was implementing this, its only preliminary and need some improvements, but it works.
https://www.mathworks.com/matlabcentral/fileexchange/65927-cnn-triplet-loss

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by