필터 지우기
필터 지우기

How to grab intermediate feature maps to do deep supervision

조회 수: 4 (최근 30일)
zzm oliver
zzm oliver 2020년 4월 27일
댓글: RFC 2023년 4월 14일
Hello. I am doing a semantic segmentation task.I have super high resolution image and its corresponding mask.I downsampled the images so that the data could fit in the gpu memory. My network takes this downsampled image and output a score map. But there's more. My network keeps on upsampling to output a score map of the original super-high resolution. So how do I apply loss both between the intermediate score map and the down-sampled mask and the final score map and the orignal mask.(This is a technique called deep supervision)?
I read the document. There is "forward(dlNetwork)" function available. But that only supports one loss. I want the two loss combined together.

채택된 답변

Srivardhan Gadila
Srivardhan Gadila 2020년 4월 30일
  댓글 수: 3
Srivardhan Gadila
Srivardhan Gadila 2020년 5월 2일
Refer to Multiple-Input and Multiple-Output Networks for defining network architectures with multiple outputs.
But in case of forward(dlnet), the document of dlnet = dlnetwork(lgraph) says that
"The layer graph must not contain output layers. When training the network, calculate the loss separately.
For a list of layers supported by dlnetwork, see Supported Layers."
RFC
RFC 2023년 4월 14일
Is there still no implementation of deep supervision?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by