How to grab intermediate feature maps to do deep supervision
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
zzm oliver
am 27 Apr. 2020
Kommentiert: RFC
am 14 Apr. 2023
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.
0 Kommentare
Akzeptierte Antwort
Srivardhan Gadila
am 30 Apr. 2020
The following resources might help you:
3 Kommentare
Srivardhan Gadila
am 2 Mai 2020
Refer to Multiple-Input and Multiple-Output Networks for defining network architectures with multiple outputs.
"The layer graph must not contain output layers. When training the network, calculate the loss separately.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!