カスタム学習ループを​用いたセグメンテーシ​ョンについて

カスタム学習ループを用いて0と1の値でセグメンテーションをしたいのですが、forward関数に通しても、0〜1のさまざまな数値が出てしまいます。forward関数に通した後はどのようなコードを記述するべきでしょうか?

 Accepted Answer

Tohru Kikawada
Tohru Kikawada on 14 Jan 2024
Edited: Tohru Kikawada on 24 Jan 2024

0 votes

下記のpixelClassificationLayerを使うことで出力を離散値にできると思います。 https://jp.mathworks.com/help/vision/ref/nnet.cnn.layer.pixelclassificationlayer.html
お試しいただければと思います。

1 Comment

kaede
kaede on 24 Jan 2024
遅れて申し訳ないですが、回答ありがとうございます。
以上の手法を試してみます。

Sign in to comment.

More Answers (0)

Categories

Find more on ループと条件付きステートメント in Help Center and File Exchange

Asked:

on 25 Dec 2023

Edited:

on 24 Jan 2024

Community Treasure Hunt

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

Start Hunting!