Skip to main content
. 2024 Feb 22;24(5):1411. doi: 10.3390/s24051411
Algorithm 1 Mask-PNet Mask Logits Updating
/* For better understanding, some tensor sizes are as below*/
/* semantic: [ H, W,C1+C2 ], stuff: [ H, W,C1 ], things: [ H, W,C2 ]*/
/* logits: [ H, W,C1+k ], empty: [ H, W ], seed_map: [h, w]*/
/* new_logits: [ H, W,ki ], feat:[h, w, c], filtered_feat:[h,w, c]*/
/* proposals: [ ki, c ], where H = W = 128 */
        Input: Features feat with sizes in [(128,128), (64, 64), …, (2,2)];
                    Semantic segmentation results: stuff and things.
        Output: Panoptic Mask Logits: logits.
    1    logits stuff;
    2      for i=  1 to  7 do
    3                    h, wsizesi;
    4                    empty things>logits;
    5                    seed_mapAvgLowPassempty, h,w>0.5;
    6                    if    seed_map.sum >0 do
    7                                    break;
    8                    filtered_feat feat*seed_map;
    9                    proposals =MaskPyramidfiltered_feat;
  10                      new_logits =CNNfeat, proposals;
  11                      logits Concatenatelogits, new_logits;
                                            /* Return panoptic segmentation mask logits.*/
  12        return logits;