weiwb commited on
Commit
394a649
·
verified ·
1 Parent(s): 692f33c

Host all seven model checkpoints and configs in one repository

Browse files
README.md CHANGED
@@ -8,18 +8,33 @@ tags:
8
 
9
  # PEMOLA (ICME 2026)
10
 
11
- Weights and matching configurations for the **PEMOLA** paper at **ICME 2026**. The results below are reported in the paper. Select a model name for its setup and usage instructions.
12
 
13
  | Model | Dataset | Result | Config / Weights |
14
  | :--- | :--- | :---: | :---: |
15
- | [Mask2Former R50](https://huggingface.co/weiwb/Mask2Former-R50-COCO-OLAC) | COCO-OLAC | PQ 40.7 | [config](https://huggingface.co/weiwb/Mask2Former-R50-COCO-OLAC/resolve/main/config.yaml) / [weights](https://huggingface.co/weiwb/Mask2Former-R50-COCO-OLAC/resolve/main/model_final.pth) |
16
- | [PEMOLA + Mask2Former R50](https://huggingface.co/weiwb/PEMOLA-Mask2Former-R50-COCO-OLAC) | COCO-OLAC | PQ 41.5 | [config](https://huggingface.co/weiwb/PEMOLA-Mask2Former-R50-COCO-OLAC/resolve/main/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA-Mask2Former-R50-COCO-OLAC/resolve/main/model_final.pth) |
17
- | [Mask2Former R50](https://huggingface.co/weiwb/Mask2Former-R50-Cityscapes-OLAC) | Cityscapes-OLAC | PQ 61.5 | [config](https://huggingface.co/weiwb/Mask2Former-R50-Cityscapes-OLAC/resolve/main/config.yaml) / [weights](https://huggingface.co/weiwb/Mask2Former-R50-Cityscapes-OLAC/resolve/main/model_final.pth) |
18
- | [PEMOLA + Mask2Former R50](https://huggingface.co/weiwb/PEMOLA-Mask2Former-R50-Cityscapes-OLAC) | Cityscapes-OLAC | PQ 62.3 | [config](https://huggingface.co/weiwb/PEMOLA-Mask2Former-R50-Cityscapes-OLAC/resolve/main/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA-Mask2Former-R50-Cityscapes-OLAC/resolve/main/model_final.pth) |
19
- | [Mask DINO R50](https://huggingface.co/weiwb/MaskDINO-R50-COCO-OLAC) | COCO-OLAC | PQ 44.0 | [config](https://huggingface.co/weiwb/MaskDINO-R50-COCO-OLAC/resolve/main/config.yaml) / [weights](https://huggingface.co/weiwb/MaskDINO-R50-COCO-OLAC/resolve/main/model_final.pth) |
20
- | [PEMOLA + Mask DINO R50](https://huggingface.co/weiwb/PEMOLA-MaskDINO-R50-COCO-OLAC) | COCO-OLAC | PQ 44.8 | [config](https://huggingface.co/weiwb/PEMOLA-MaskDINO-R50-COCO-OLAC/resolve/main/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA-MaskDINO-R50-COCO-OLAC/resolve/main/model_final.pth) |
21
- | [Occlusion classifier: Swin-L 384](https://huggingface.co/weiwb/PEMOLA-Occlusion-Swin-L-384) | COCO-OLAC test, black background | Top-1 75.3% | [config](https://huggingface.co/weiwb/PEMOLA-Occlusion-Swin-L-384/resolve/main/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA-Occlusion-Swin-L-384/resolve/main/ep29.pth) |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  For source code, [installation](https://github.com/wenbo-wei/PEMOLA#installation), and [inference](https://github.com/wenbo-wei/PEMOLA#inference--visualization), see the [PEMOLA GitHub repository](https://github.com/wenbo-wei/PEMOLA). Mask DINO models use the dedicated [Mask DINO implementation](https://github.com/wenbo-wei/MaskDINO).
24
 
25
- Use the configuration shipped with each checkpoint. Each linked model repository provides its own license and usage details.
 
8
 
9
  # PEMOLA (ICME 2026)
10
 
11
+ All seven model checkpoints, matching configurations, usage notes, and licenses for **PEMOLA (ICME 2026)** are stored in this repository. Browse the [model folders](https://huggingface.co/weiwb/PEMOLA/tree/main), or use the downloads below. Results are reported in the paper; select a model name for its usage instructions.
12
 
13
  | Model | Dataset | Result | Config / Weights |
14
  | :--- | :--- | :---: | :---: |
15
+ | [Mask2Former R50](https://huggingface.co/weiwb/PEMOLA/blob/main/mask2former-coco-olac/README.md) | COCO-OLAC | PQ 40.7 | [config](https://huggingface.co/weiwb/PEMOLA/resolve/main/mask2former-coco-olac/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA/resolve/main/mask2former-coco-olac/model_final.pth) |
16
+ | [PEMOLA + Mask2Former R50](https://huggingface.co/weiwb/PEMOLA/blob/main/pemola-coco-olac/README.md) | COCO-OLAC | PQ 41.5 | [config](https://huggingface.co/weiwb/PEMOLA/resolve/main/pemola-coco-olac/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA/resolve/main/pemola-coco-olac/model_final.pth) |
17
+ | [Mask2Former R50](https://huggingface.co/weiwb/PEMOLA/blob/main/mask2former-cityscapes-olac/README.md) | Cityscapes-OLAC | PQ 61.5 | [config](https://huggingface.co/weiwb/PEMOLA/resolve/main/mask2former-cityscapes-olac/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA/resolve/main/mask2former-cityscapes-olac/model_final.pth) |
18
+ | [PEMOLA + Mask2Former R50](https://huggingface.co/weiwb/PEMOLA/blob/main/pemola-cityscapes-olac/README.md) | Cityscapes-OLAC | PQ 62.3 | [config](https://huggingface.co/weiwb/PEMOLA/resolve/main/pemola-cityscapes-olac/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA/resolve/main/pemola-cityscapes-olac/model_final.pth) |
19
+ | [Mask DINO R50](https://huggingface.co/weiwb/PEMOLA/blob/main/maskdino-coco-olac/README.md) | COCO-OLAC | PQ 44.0 | [config](https://huggingface.co/weiwb/PEMOLA/resolve/main/maskdino-coco-olac/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA/resolve/main/maskdino-coco-olac/model_final.pth) |
20
+ | [PEMOLA + Mask DINO R50](https://huggingface.co/weiwb/PEMOLA/blob/main/pemola-maskdino-coco-olac/README.md) | COCO-OLAC | PQ 44.8 | [config](https://huggingface.co/weiwb/PEMOLA/resolve/main/pemola-maskdino-coco-olac/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA/resolve/main/pemola-maskdino-coco-olac/model_final.pth) |
21
+ | [Occlusion classifier: Swin-L 384](https://huggingface.co/weiwb/PEMOLA/blob/main/pemola-occlusion-swin-l/README.md) | COCO-OLAC test, black background | Top-1 75.3% | [config](https://huggingface.co/weiwb/PEMOLA/resolve/main/pemola-occlusion-swin-l/config.yaml) / [weights](https://huggingface.co/weiwb/PEMOLA/resolve/main/pemola-occlusion-swin-l/ep29.pth) |
22
+
23
+ ## Download
24
+
25
+ Download all models from the PEMOLA source repository root:
26
+
27
+ ```bash
28
+ python -m pip install huggingface_hub
29
+ hf download weiwb/PEMOLA --local-dir checkpoints
30
+ ```
31
+
32
+ To download one model, select its folder:
33
+
34
+ ```bash
35
+ hf download weiwb/PEMOLA --include "pemola-coco-olac/*" --local-dir checkpoints
36
+ ```
37
 
38
  For source code, [installation](https://github.com/wenbo-wei/PEMOLA#installation), and [inference](https://github.com/wenbo-wei/PEMOLA#inference--visualization), see the [PEMOLA GitHub repository](https://github.com/wenbo-wei/PEMOLA). Mask DINO models use the dedicated [Mask DINO implementation](https://github.com/wenbo-wei/MaskDINO).
39
 
40
+ Use the configuration shipped with each checkpoint. Each model folder contains its license and usage details.
mask2former-cityscapes-olac/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2022 Meta, Inc.
2
+ Copyright (c) 2026 Wenbo Wei (modifications)
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
mask2former-cityscapes-olac/README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: image-segmentation
4
+ tags:
5
+ - mask2former
6
+ - panoptic-segmentation
7
+ - resnet-50
8
+ - pemola
9
+ ---
10
+
11
+ # Mask2Former R50 on Cityscapes-OLAC
12
+
13
+ ResNet-50 Mask2Former baseline trained for the PEMOLA paper (ICME 2026), without PEMOLA modulation.
14
+
15
+ Source code and installation: [wenbo-wei/PEMOLA](https://github.com/wenbo-wei/PEMOLA).
16
+
17
+ ## Results
18
+
19
+ Paper results on the full Cityscapes-OLAC validation set:
20
+
21
+ | PQ | PQTh | PQSt | APTh_pan | mIoU_pan |
22
+ | :---: | :---: | :---: | :---: | :---: |
23
+ | 61.5 | 54.0 | 66.9 | 35.2 | 76.1 |
24
+
25
+ ## Usage
26
+
27
+ Run from the PEMOLA repository root after installing its dependencies:
28
+
29
+ ```bash
30
+ python -m pip install huggingface_hub
31
+ hf download weiwb/PEMOLA \
32
+ --include "mask2former-cityscapes-olac/*" \
33
+ --local-dir checkpoints
34
+
35
+ python predict.py \
36
+ --config checkpoints/mask2former-cityscapes-olac/config.yaml \
37
+ --weights checkpoints/mask2former-cityscapes-olac/model_final.pth \
38
+ --input /path/to/image.jpg \
39
+ --output-dir output/mask2former-cityscapes-olac-predictions \
40
+ --no-pemola \
41
+ --format png
42
+ ```
43
+
44
+ The baseline requires only an input image; CAM tensors and occlusion labels are unnecessary. `--input` also accepts a directory of images.
45
+
46
+ ## Files
47
+
48
+ - `model_final.pth`: model weights.
49
+ - `config.yaml`: matching configuration for the PEMOLA implementation.
50
+ - `LICENSE`: MIT license.
51
+
52
+ ## Citation
53
+
54
+ ```bibtex
55
+ @inproceedings{wei2026pemola,
56
+ title = {Occlusion-Aware Panoptic Segmentation with Joint Position Embedding and Occlusion-Level Attention},
57
+ author = {Wei, Wenbo and Wang, Jun and Raza, Shan and Bhalerao, Abhir},
58
+ booktitle = {IEEE International Conference on Multimedia and Expo (ICME)},
59
+ year = {2026}
60
+ }
61
+ ```
mask2former-cityscapes-olac/config.yaml ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CUDNN_BENCHMARK: false
2
+ DATALOADER:
3
+ ASPECT_RATIO_GROUPING: true
4
+ FILTER_EMPTY_ANNOTATIONS: true
5
+ NUM_WORKERS: 16
6
+ REPEAT_SQRT: true
7
+ REPEAT_THRESHOLD: 0.0
8
+ SAMPLER_TRAIN: TrainingSampler
9
+ DATASETS:
10
+ PRECOMPUTED_PROPOSAL_TOPK_TEST: 1000
11
+ PRECOMPUTED_PROPOSAL_TOPK_TRAIN: 2000
12
+ PROPOSAL_FILES_TEST: []
13
+ PROPOSAL_FILES_TRAIN: []
14
+ TEST:
15
+ - cityscapes_fine_panoptic_val
16
+ TRAIN:
17
+ - cityscapes_fine_panoptic_train
18
+ FLOAT32_PRECISION: ''
19
+ GLOBAL:
20
+ HACK: 1.0
21
+ INPUT:
22
+ COLOR_AUG_SSD: true
23
+ CROP:
24
+ ENABLED: true
25
+ SINGLE_CATEGORY_MAX_AREA: 1.0
26
+ SIZE:
27
+ - 512
28
+ - 1024
29
+ TYPE: absolute
30
+ DATASET_MAPPER_NAME: mask_former_panoptic
31
+ FORMAT: RGB
32
+ IMAGE_SIZE: 1024
33
+ MASK_FORMAT: polygon
34
+ MAX_SCALE: 2.0
35
+ MAX_SIZE_TEST: 2048
36
+ MAX_SIZE_TRAIN: 4096
37
+ MIN_SCALE: 0.1
38
+ MIN_SIZE_TEST: 1024
39
+ MIN_SIZE_TRAIN:
40
+ - 512
41
+ - 614
42
+ - 716
43
+ - 819
44
+ - 921
45
+ - 1024
46
+ - 1126
47
+ - 1228
48
+ - 1331
49
+ - 1433
50
+ - 1536
51
+ - 1638
52
+ - 1740
53
+ - 1843
54
+ - 1945
55
+ - 2048
56
+ MIN_SIZE_TRAIN_SAMPLING: choice
57
+ RANDOM_FLIP: horizontal
58
+ SIZE_DIVISIBILITY: -1
59
+ MODEL:
60
+ ANCHOR_GENERATOR:
61
+ ANGLES:
62
+ - - -90
63
+ - 0
64
+ - 90
65
+ ASPECT_RATIOS:
66
+ - - 0.5
67
+ - 1.0
68
+ - 2.0
69
+ NAME: DefaultAnchorGenerator
70
+ OFFSET: 0.0
71
+ SIZES:
72
+ - - 32
73
+ - 64
74
+ - 128
75
+ - 256
76
+ - 512
77
+ BACKBONE:
78
+ FREEZE_AT: 0
79
+ NAME: build_resnet_backbone
80
+ DEVICE: cuda
81
+ FPN:
82
+ FUSE_TYPE: sum
83
+ IN_FEATURES: []
84
+ NORM: ''
85
+ OUT_CHANNELS: 256
86
+ KEYPOINT_ON: false
87
+ LOAD_PROPOSALS: false
88
+ MASK_FORMER:
89
+ CLASS_WEIGHT: 2.0
90
+ DEC_LAYERS: 10
91
+ DEEP_SUPERVISION: true
92
+ DICE_WEIGHT: 5.0
93
+ DIM_FEEDFORWARD: 2048
94
+ DROPOUT: 0.0
95
+ ENC_LAYERS: 0
96
+ ENFORCE_INPUT_PROJ: false
97
+ HIDDEN_DIM: 256
98
+ IMPORTANCE_SAMPLE_RATIO: 0.75
99
+ MASK_WEIGHT: 5.0
100
+ NHEADS: 8
101
+ NO_OBJECT_WEIGHT: 0.1
102
+ NUM_OBJECT_QUERIES: 100
103
+ OVERSAMPLE_RATIO: 3.0
104
+ PRE_NORM: false
105
+ SIZE_DIVISIBILITY: 32
106
+ TEST:
107
+ INSTANCE_ON: true
108
+ OBJECT_MASK_THRESHOLD: 0.8
109
+ OVERLAP_THRESHOLD: 0.8
110
+ PANOPTIC_ON: true
111
+ SEMANTIC_ON: true
112
+ SEM_SEG_POSTPROCESSING_BEFORE_INFERENCE: false
113
+ TRAIN_NUM_POINTS: 12544
114
+ TRANSFORMER_DECODER_NAME: MultiScaleMaskedTransformerDecoder
115
+ TRANSFORMER_IN_FEATURE: multi_scale_pixel_decoder
116
+ MASK_ON: false
117
+ META_ARCHITECTURE: MaskFormer
118
+ PANOPTIC_FPN:
119
+ COMBINE:
120
+ ENABLED: true
121
+ INSTANCES_CONFIDENCE_THRESH: 0.5
122
+ OVERLAP_THRESH: 0.5
123
+ STUFF_AREA_LIMIT: 4096
124
+ INSTANCE_LOSS_WEIGHT: 1.0
125
+ PEMOLA:
126
+ CAM_ONLY: false
127
+ EMBED_ONLY: false
128
+ OCCLUSION_LEVELS:
129
+ - low
130
+ - mid
131
+ - high
132
+ PE_MODULATION: false
133
+ VIS_PE: false
134
+ VIS_PE_CHANNELS:
135
+ - 0
136
+ - 64
137
+ - -65
138
+ - -1
139
+ VIS_PE_FEATURES:
140
+ - res3
141
+ PIXEL_MEAN:
142
+ - 123.675
143
+ - 116.28
144
+ - 103.53
145
+ PIXEL_STD:
146
+ - 58.395
147
+ - 57.12
148
+ - 57.375
149
+ PROPOSAL_GENERATOR:
150
+ MIN_SIZE: 0
151
+ NAME: RPN
152
+ RESNETS:
153
+ DEFORM_MODULATED: false
154
+ DEFORM_NUM_GROUPS: 1
155
+ DEFORM_ON_PER_STAGE:
156
+ - false
157
+ - false
158
+ - false
159
+ - false
160
+ DEPTH: 50
161
+ NORM: SyncBN
162
+ NUM_GROUPS: 1
163
+ OUT_FEATURES:
164
+ - res2
165
+ - res3
166
+ - res4
167
+ - res5
168
+ RES2_OUT_CHANNELS: 256
169
+ RES4_DILATION: 1
170
+ RES5_DILATION: 1
171
+ RES5_MULTI_GRID:
172
+ - 1
173
+ - 1
174
+ - 1
175
+ STEM_OUT_CHANNELS: 64
176
+ STEM_TYPE: basic
177
+ STRIDE_IN_1X1: false
178
+ WIDTH_PER_GROUP: 64
179
+ RETINANET:
180
+ BBOX_REG_LOSS_TYPE: smooth_l1
181
+ BBOX_REG_WEIGHTS:
182
+ - 1.0
183
+ - 1.0
184
+ - 1.0
185
+ - 1.0
186
+ FOCAL_LOSS_ALPHA: 0.25
187
+ FOCAL_LOSS_GAMMA: 2.0
188
+ IN_FEATURES:
189
+ - p3
190
+ - p4
191
+ - p5
192
+ - p6
193
+ - p7
194
+ IOU_LABELS:
195
+ - 0
196
+ - -1
197
+ - 1
198
+ IOU_THRESHOLDS:
199
+ - 0.4
200
+ - 0.5
201
+ NMS_THRESH_TEST: 0.5
202
+ NORM: ''
203
+ NUM_CLASSES: 80
204
+ NUM_CONVS: 4
205
+ PRIOR_PROB: 0.01
206
+ SCORE_THRESH_TEST: 0.05
207
+ SMOOTH_L1_LOSS_BETA: 0.1
208
+ TOPK_CANDIDATES_TEST: 1000
209
+ ROI_BOX_CASCADE_HEAD:
210
+ BBOX_REG_WEIGHTS:
211
+ - - 10.0
212
+ - 10.0
213
+ - 5.0
214
+ - 5.0
215
+ - - 20.0
216
+ - 20.0
217
+ - 10.0
218
+ - 10.0
219
+ - - 30.0
220
+ - 30.0
221
+ - 15.0
222
+ - 15.0
223
+ IOUS:
224
+ - 0.5
225
+ - 0.6
226
+ - 0.7
227
+ ROI_BOX_HEAD:
228
+ BBOX_REG_LOSS_TYPE: smooth_l1
229
+ BBOX_REG_LOSS_WEIGHT: 1.0
230
+ BBOX_REG_WEIGHTS:
231
+ - 10.0
232
+ - 10.0
233
+ - 5.0
234
+ - 5.0
235
+ CLS_AGNOSTIC_BBOX_REG: false
236
+ CONV_DIM: 256
237
+ FC_DIM: 1024
238
+ FED_LOSS_FREQ_WEIGHT_POWER: 0.5
239
+ FED_LOSS_NUM_CLASSES: 50
240
+ NAME: ''
241
+ NORM: ''
242
+ NUM_CONV: 0
243
+ NUM_FC: 0
244
+ POOLER_RESOLUTION: 14
245
+ POOLER_SAMPLING_RATIO: 0
246
+ POOLER_TYPE: ROIAlignV2
247
+ SMOOTH_L1_BETA: 0.0
248
+ TRAIN_ON_PRED_BOXES: false
249
+ USE_FED_LOSS: false
250
+ USE_SIGMOID_CE: false
251
+ ROI_HEADS:
252
+ BATCH_SIZE_PER_IMAGE: 512
253
+ IN_FEATURES:
254
+ - res4
255
+ IOU_LABELS:
256
+ - 0
257
+ - 1
258
+ IOU_THRESHOLDS:
259
+ - 0.5
260
+ NAME: Res5ROIHeads
261
+ NMS_THRESH_TEST: 0.5
262
+ NUM_CLASSES: 80
263
+ POSITIVE_FRACTION: 0.25
264
+ PROPOSAL_APPEND_GT: true
265
+ SCORE_THRESH_TEST: 0.05
266
+ ROI_KEYPOINT_HEAD:
267
+ CONV_DIMS:
268
+ - 512
269
+ - 512
270
+ - 512
271
+ - 512
272
+ - 512
273
+ - 512
274
+ - 512
275
+ - 512
276
+ LOSS_WEIGHT: 1.0
277
+ MIN_KEYPOINTS_PER_IMAGE: 1
278
+ NAME: KRCNNConvDeconvUpsampleHead
279
+ NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS: true
280
+ NUM_KEYPOINTS: 17
281
+ POOLER_RESOLUTION: 14
282
+ POOLER_SAMPLING_RATIO: 0
283
+ POOLER_TYPE: ROIAlignV2
284
+ ROI_MASK_HEAD:
285
+ CLS_AGNOSTIC_MASK: false
286
+ CONV_DIM: 256
287
+ NAME: MaskRCNNConvUpsampleHead
288
+ NORM: ''
289
+ NUM_CONV: 0
290
+ POOLER_RESOLUTION: 14
291
+ POOLER_SAMPLING_RATIO: 0
292
+ POOLER_TYPE: ROIAlignV2
293
+ RPN:
294
+ BATCH_SIZE_PER_IMAGE: 256
295
+ BBOX_REG_LOSS_TYPE: smooth_l1
296
+ BBOX_REG_LOSS_WEIGHT: 1.0
297
+ BBOX_REG_WEIGHTS:
298
+ - 1.0
299
+ - 1.0
300
+ - 1.0
301
+ - 1.0
302
+ BOUNDARY_THRESH: -1
303
+ CONV_DIMS:
304
+ - -1
305
+ HEAD_NAME: StandardRPNHead
306
+ IN_FEATURES:
307
+ - res4
308
+ IOU_LABELS:
309
+ - 0
310
+ - -1
311
+ - 1
312
+ IOU_THRESHOLDS:
313
+ - 0.3
314
+ - 0.7
315
+ LOSS_WEIGHT: 1.0
316
+ NMS_THRESH: 0.7
317
+ POSITIVE_FRACTION: 0.5
318
+ POST_NMS_TOPK_TEST: 1000
319
+ POST_NMS_TOPK_TRAIN: 2000
320
+ PRE_NMS_TOPK_TEST: 6000
321
+ PRE_NMS_TOPK_TRAIN: 12000
322
+ SMOOTH_L1_BETA: 0.0
323
+ SEM_SEG_HEAD:
324
+ ASPP_CHANNELS: 256
325
+ ASPP_DILATIONS:
326
+ - 6
327
+ - 12
328
+ - 18
329
+ ASPP_DROPOUT: 0.1
330
+ COMMON_STRIDE: 4
331
+ CONVS_DIM: 256
332
+ DEFORMABLE_TRANSFORMER_ENCODER_IN_FEATURES:
333
+ - res3
334
+ - res4
335
+ - res5
336
+ DEFORMABLE_TRANSFORMER_ENCODER_N_HEADS: 8
337
+ DEFORMABLE_TRANSFORMER_ENCODER_N_POINTS: 4
338
+ IGNORE_VALUE: 255
339
+ IN_FEATURES:
340
+ - res2
341
+ - res3
342
+ - res4
343
+ - res5
344
+ LOSS_TYPE: hard_pixel_mining
345
+ LOSS_WEIGHT: 1.0
346
+ MASK_DIM: 256
347
+ NAME: MaskFormerHead
348
+ NORM: GN
349
+ NUM_CLASSES: 19
350
+ PIXEL_DECODER_NAME: MSDeformAttnPixelDecoder
351
+ PROJECT_CHANNELS:
352
+ - 48
353
+ PROJECT_FEATURES:
354
+ - res2
355
+ TRANSFORMER_ENC_LAYERS: 6
356
+ USE_DEPTHWISE_SEPARABLE_CONV: false
357
+ SWIN:
358
+ APE: false
359
+ ATTN_DROP_RATE: 0.0
360
+ DEPTHS:
361
+ - 2
362
+ - 2
363
+ - 6
364
+ - 2
365
+ DROP_PATH_RATE: 0.3
366
+ DROP_RATE: 0.0
367
+ EMBED_DIM: 96
368
+ MLP_RATIO: 4.0
369
+ NUM_HEADS:
370
+ - 3
371
+ - 6
372
+ - 12
373
+ - 24
374
+ OUT_FEATURES:
375
+ - res2
376
+ - res3
377
+ - res4
378
+ - res5
379
+ PATCH_NORM: true
380
+ PATCH_SIZE: 4
381
+ PRETRAIN_IMG_SIZE: 224
382
+ QKV_BIAS: true
383
+ QK_SCALE: null
384
+ USE_CHECKPOINT: false
385
+ WINDOW_SIZE: 7
386
+ WEIGHTS: model_final.pth
387
+ OUTPUT_DIR: output/mask2former-r50-cityscapes-olac
388
+ SEED: 618
389
+ SOLVER:
390
+ AMP:
391
+ ENABLED: true
392
+ BACKBONE_MULTIPLIER: 0.1
393
+ BASE_LR: 0.00015
394
+ BASE_LR_END: 0.0
395
+ BIAS_LR_FACTOR: 1.0
396
+ CHECKPOINT_PERIOD: 5000
397
+ CLIP_GRADIENTS:
398
+ CLIP_TYPE: full_model
399
+ CLIP_VALUE: 0.01
400
+ ENABLED: true
401
+ NORM_TYPE: 2.0
402
+ GAMMA: 0.1
403
+ IMS_PER_BATCH: 24
404
+ LR_SCHEDULER_NAME: WarmupPolyLR
405
+ MAX_ITER: 60000
406
+ MOMENTUM: 0.9
407
+ NESTEROV: false
408
+ NUM_DECAYS: 3
409
+ OPTIMIZER: ADAMW
410
+ POLY_LR_CONSTANT_ENDING: 0.0
411
+ POLY_LR_POWER: 0.9
412
+ REFERENCE_WORLD_SIZE: 0
413
+ RESCALE_INTERVAL: false
414
+ STEPS:
415
+ - 30000
416
+ WARMUP_FACTOR: 1.0
417
+ WARMUP_ITERS: 0
418
+ WARMUP_METHOD: linear
419
+ WEIGHT_DECAY: 0.05
420
+ WEIGHT_DECAY_BIAS: null
421
+ WEIGHT_DECAY_EMBED: 0.0
422
+ WEIGHT_DECAY_NORM: 0.0
423
+ TEST:
424
+ AUG:
425
+ ENABLED: false
426
+ FLIP: true
427
+ MAX_SIZE: 4096
428
+ MIN_SIZES:
429
+ - 512
430
+ - 768
431
+ - 1024
432
+ - 1280
433
+ - 1536
434
+ - 1792
435
+ DETECTIONS_PER_IMAGE: 100
436
+ EVAL_PERIOD: 5000
437
+ EXPECTED_RESULTS: []
438
+ KEYPOINT_OKS_SIGMAS: []
439
+ PRECISE_BN:
440
+ ENABLED: false
441
+ NUM_ITER: 200
442
+ VERSION: 2
443
+ VIS_PERIOD: 0
mask2former-cityscapes-olac/model_final.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7706e7b7f53fe531c140a5468057848bd255086ddd4942ec799cf696a63ec29a
3
+ size 176476545
mask2former-coco-olac/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2022 Meta, Inc.
2
+ Copyright (c) 2026 Wenbo Wei (modifications)
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
mask2former-coco-olac/README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: image-segmentation
4
+ tags:
5
+ - mask2former
6
+ - panoptic-segmentation
7
+ - resnet-50
8
+ - pemola
9
+ ---
10
+
11
+ # Mask2Former R50 on COCO-OLAC
12
+
13
+ ResNet-50 Mask2Former baseline trained for the PEMOLA paper (ICME 2026), without PEMOLA modulation.
14
+
15
+ Source code and installation: [wenbo-wei/PEMOLA](https://github.com/wenbo-wei/PEMOLA).
16
+
17
+ ## Results
18
+
19
+ Paper results on the full COCO-OLAC validation set:
20
+
21
+ | PQ | PQTh | PQSt | APTh_pan | mIoU_pan |
22
+ | :---: | :---: | :---: | :---: | :---: |
23
+ | 40.7 | 44.5 | 35.0 | 30.0 | 54.2 |
24
+
25
+ ## Usage
26
+
27
+ Run from the PEMOLA repository root after installing its dependencies:
28
+
29
+ ```bash
30
+ python -m pip install huggingface_hub
31
+ hf download weiwb/PEMOLA \
32
+ --include "mask2former-coco-olac/*" \
33
+ --local-dir checkpoints
34
+
35
+ python predict.py \
36
+ --config checkpoints/mask2former-coco-olac/config.yaml \
37
+ --weights checkpoints/mask2former-coco-olac/model_final.pth \
38
+ --input /path/to/image.jpg \
39
+ --output-dir output/mask2former-coco-olac-predictions \
40
+ --no-pemola \
41
+ --format png
42
+ ```
43
+
44
+ The baseline requires only an input image; CAM tensors and occlusion labels are unnecessary. `--input` also accepts a directory of images.
45
+
46
+ ## Files
47
+
48
+ - `model_final.pth`: model weights.
49
+ - `config.yaml`: matching configuration for the PEMOLA implementation.
50
+ - `LICENSE`: MIT license.
51
+
52
+ ## Citation
53
+
54
+ ```bibtex
55
+ @inproceedings{wei2026pemola,
56
+ title = {Occlusion-Aware Panoptic Segmentation with Joint Position Embedding and Occlusion-Level Attention},
57
+ author = {Wei, Wenbo and Wang, Jun and Raza, Shan and Bhalerao, Abhir},
58
+ booktitle = {IEEE International Conference on Multimedia and Expo (ICME)},
59
+ year = {2026}
60
+ }
61
+ ```
mask2former-coco-olac/config.yaml ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CUDNN_BENCHMARK: false
2
+ DATALOADER:
3
+ ASPECT_RATIO_GROUPING: true
4
+ FILTER_EMPTY_ANNOTATIONS: true
5
+ NUM_WORKERS: 16
6
+ REPEAT_SQRT: true
7
+ REPEAT_THRESHOLD: 0.0
8
+ SAMPLER_TRAIN: TrainingSampler
9
+ DATASETS:
10
+ PRECOMPUTED_PROPOSAL_TOPK_TEST: 1000
11
+ PRECOMPUTED_PROPOSAL_TOPK_TRAIN: 2000
12
+ PROPOSAL_FILES_TEST: []
13
+ PROPOSAL_FILES_TRAIN: []
14
+ TEST:
15
+ - coco_olac_val_low
16
+ - coco_olac_val_mid
17
+ - coco_olac_val_high
18
+ - coco_olac_val
19
+ TRAIN:
20
+ - coco_olac_train
21
+ FLOAT32_PRECISION: ''
22
+ GLOBAL:
23
+ HACK: 1.0
24
+ INPUT:
25
+ COLOR_AUG_SSD: false
26
+ CROP:
27
+ ENABLED: false
28
+ SINGLE_CATEGORY_MAX_AREA: 1.0
29
+ SIZE:
30
+ - 0.9
31
+ - 0.9
32
+ TYPE: relative_range
33
+ DATASET_MAPPER_NAME: coco_olac_panoptic_lsj
34
+ FORMAT: RGB
35
+ IMAGE_SIZE: 512
36
+ MASK_FORMAT: polygon
37
+ MAX_SCALE: 2.0
38
+ MAX_SIZE_TEST: 666
39
+ MAX_SIZE_TRAIN: 1333
40
+ MIN_SCALE: 0.1
41
+ MIN_SIZE_TEST: 400
42
+ MIN_SIZE_TRAIN:
43
+ - 800
44
+ MIN_SIZE_TRAIN_SAMPLING: choice
45
+ RANDOM_FLIP: horizontal
46
+ SIZE_DIVISIBILITY: -1
47
+ MODEL:
48
+ ANCHOR_GENERATOR:
49
+ ANGLES:
50
+ - - -90
51
+ - 0
52
+ - 90
53
+ ASPECT_RATIOS:
54
+ - - 0.5
55
+ - 1.0
56
+ - 2.0
57
+ NAME: DefaultAnchorGenerator
58
+ OFFSET: 0.0
59
+ SIZES:
60
+ - - 32
61
+ - 64
62
+ - 128
63
+ - 256
64
+ - 512
65
+ BACKBONE:
66
+ FREEZE_AT: 0
67
+ NAME: build_resnet_backbone
68
+ DEVICE: cuda
69
+ FPN:
70
+ FUSE_TYPE: sum
71
+ IN_FEATURES: []
72
+ NORM: ''
73
+ OUT_CHANNELS: 256
74
+ KEYPOINT_ON: false
75
+ LOAD_PROPOSALS: false
76
+ MASK_FORMER:
77
+ CLASS_WEIGHT: 2.0
78
+ DEC_LAYERS: 10
79
+ DEEP_SUPERVISION: true
80
+ DICE_WEIGHT: 5.0
81
+ DIM_FEEDFORWARD: 2048
82
+ DROPOUT: 0.0
83
+ ENC_LAYERS: 0
84
+ ENFORCE_INPUT_PROJ: false
85
+ HIDDEN_DIM: 256
86
+ IMPORTANCE_SAMPLE_RATIO: 0.75
87
+ MASK_WEIGHT: 5.0
88
+ NHEADS: 8
89
+ NO_OBJECT_WEIGHT: 0.1
90
+ NUM_OBJECT_QUERIES: 100
91
+ OVERSAMPLE_RATIO: 3.0
92
+ PRE_NORM: false
93
+ SIZE_DIVISIBILITY: 32
94
+ TEST:
95
+ INSTANCE_ON: true
96
+ OBJECT_MASK_THRESHOLD: 0.8
97
+ OVERLAP_THRESHOLD: 0.8
98
+ PANOPTIC_ON: true
99
+ SEMANTIC_ON: true
100
+ SEM_SEG_POSTPROCESSING_BEFORE_INFERENCE: false
101
+ TRAIN_NUM_POINTS: 12544
102
+ TRANSFORMER_DECODER_NAME: MultiScaleMaskedTransformerDecoder
103
+ TRANSFORMER_IN_FEATURE: multi_scale_pixel_decoder
104
+ MASK_ON: false
105
+ META_ARCHITECTURE: MaskFormer
106
+ PANOPTIC_FPN:
107
+ COMBINE:
108
+ ENABLED: true
109
+ INSTANCES_CONFIDENCE_THRESH: 0.5
110
+ OVERLAP_THRESH: 0.5
111
+ STUFF_AREA_LIMIT: 4096
112
+ INSTANCE_LOSS_WEIGHT: 1.0
113
+ PEMOLA:
114
+ CAM_ONLY: false
115
+ EMBED_ONLY: false
116
+ OCCLUSION_LEVELS:
117
+ - low
118
+ - mid
119
+ - high
120
+ PE_MODULATION: false
121
+ VIS_PE: false
122
+ VIS_PE_CHANNELS:
123
+ - 0
124
+ - 64
125
+ - -65
126
+ - -1
127
+ VIS_PE_FEATURES:
128
+ - res3
129
+ PIXEL_MEAN:
130
+ - 123.675
131
+ - 116.28
132
+ - 103.53
133
+ PIXEL_STD:
134
+ - 58.395
135
+ - 57.12
136
+ - 57.375
137
+ PROPOSAL_GENERATOR:
138
+ MIN_SIZE: 0
139
+ NAME: RPN
140
+ RESNETS:
141
+ DEFORM_MODULATED: false
142
+ DEFORM_NUM_GROUPS: 1
143
+ DEFORM_ON_PER_STAGE:
144
+ - false
145
+ - false
146
+ - false
147
+ - false
148
+ DEPTH: 50
149
+ NORM: FrozenBN
150
+ NUM_GROUPS: 1
151
+ OUT_FEATURES:
152
+ - res2
153
+ - res3
154
+ - res4
155
+ - res5
156
+ RES2_OUT_CHANNELS: 256
157
+ RES4_DILATION: 1
158
+ RES5_DILATION: 1
159
+ RES5_MULTI_GRID:
160
+ - 1
161
+ - 1
162
+ - 1
163
+ STEM_OUT_CHANNELS: 64
164
+ STEM_TYPE: basic
165
+ STRIDE_IN_1X1: false
166
+ WIDTH_PER_GROUP: 64
167
+ RETINANET:
168
+ BBOX_REG_LOSS_TYPE: smooth_l1
169
+ BBOX_REG_WEIGHTS:
170
+ - 1.0
171
+ - 1.0
172
+ - 1.0
173
+ - 1.0
174
+ FOCAL_LOSS_ALPHA: 0.25
175
+ FOCAL_LOSS_GAMMA: 2.0
176
+ IN_FEATURES:
177
+ - p3
178
+ - p4
179
+ - p5
180
+ - p6
181
+ - p7
182
+ IOU_LABELS:
183
+ - 0
184
+ - -1
185
+ - 1
186
+ IOU_THRESHOLDS:
187
+ - 0.4
188
+ - 0.5
189
+ NMS_THRESH_TEST: 0.5
190
+ NORM: ''
191
+ NUM_CLASSES: 80
192
+ NUM_CONVS: 4
193
+ PRIOR_PROB: 0.01
194
+ SCORE_THRESH_TEST: 0.05
195
+ SMOOTH_L1_LOSS_BETA: 0.1
196
+ TOPK_CANDIDATES_TEST: 1000
197
+ ROI_BOX_CASCADE_HEAD:
198
+ BBOX_REG_WEIGHTS:
199
+ - - 10.0
200
+ - 10.0
201
+ - 5.0
202
+ - 5.0
203
+ - - 20.0
204
+ - 20.0
205
+ - 10.0
206
+ - 10.0
207
+ - - 30.0
208
+ - 30.0
209
+ - 15.0
210
+ - 15.0
211
+ IOUS:
212
+ - 0.5
213
+ - 0.6
214
+ - 0.7
215
+ ROI_BOX_HEAD:
216
+ BBOX_REG_LOSS_TYPE: smooth_l1
217
+ BBOX_REG_LOSS_WEIGHT: 1.0
218
+ BBOX_REG_WEIGHTS:
219
+ - 10.0
220
+ - 10.0
221
+ - 5.0
222
+ - 5.0
223
+ CLS_AGNOSTIC_BBOX_REG: false
224
+ CONV_DIM: 256
225
+ FC_DIM: 1024
226
+ FED_LOSS_FREQ_WEIGHT_POWER: 0.5
227
+ FED_LOSS_NUM_CLASSES: 50
228
+ NAME: ''
229
+ NORM: ''
230
+ NUM_CONV: 0
231
+ NUM_FC: 0
232
+ POOLER_RESOLUTION: 14
233
+ POOLER_SAMPLING_RATIO: 0
234
+ POOLER_TYPE: ROIAlignV2
235
+ SMOOTH_L1_BETA: 0.0
236
+ TRAIN_ON_PRED_BOXES: false
237
+ USE_FED_LOSS: false
238
+ USE_SIGMOID_CE: false
239
+ ROI_HEADS:
240
+ BATCH_SIZE_PER_IMAGE: 512
241
+ IN_FEATURES:
242
+ - res4
243
+ IOU_LABELS:
244
+ - 0
245
+ - 1
246
+ IOU_THRESHOLDS:
247
+ - 0.5
248
+ NAME: Res5ROIHeads
249
+ NMS_THRESH_TEST: 0.5
250
+ NUM_CLASSES: 80
251
+ POSITIVE_FRACTION: 0.25
252
+ PROPOSAL_APPEND_GT: true
253
+ SCORE_THRESH_TEST: 0.05
254
+ ROI_KEYPOINT_HEAD:
255
+ CONV_DIMS:
256
+ - 512
257
+ - 512
258
+ - 512
259
+ - 512
260
+ - 512
261
+ - 512
262
+ - 512
263
+ - 512
264
+ LOSS_WEIGHT: 1.0
265
+ MIN_KEYPOINTS_PER_IMAGE: 1
266
+ NAME: KRCNNConvDeconvUpsampleHead
267
+ NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS: true
268
+ NUM_KEYPOINTS: 17
269
+ POOLER_RESOLUTION: 14
270
+ POOLER_SAMPLING_RATIO: 0
271
+ POOLER_TYPE: ROIAlignV2
272
+ ROI_MASK_HEAD:
273
+ CLS_AGNOSTIC_MASK: false
274
+ CONV_DIM: 256
275
+ NAME: MaskRCNNConvUpsampleHead
276
+ NORM: ''
277
+ NUM_CONV: 0
278
+ POOLER_RESOLUTION: 14
279
+ POOLER_SAMPLING_RATIO: 0
280
+ POOLER_TYPE: ROIAlignV2
281
+ RPN:
282
+ BATCH_SIZE_PER_IMAGE: 256
283
+ BBOX_REG_LOSS_TYPE: smooth_l1
284
+ BBOX_REG_LOSS_WEIGHT: 1.0
285
+ BBOX_REG_WEIGHTS:
286
+ - 1.0
287
+ - 1.0
288
+ - 1.0
289
+ - 1.0
290
+ BOUNDARY_THRESH: -1
291
+ CONV_DIMS:
292
+ - -1
293
+ HEAD_NAME: StandardRPNHead
294
+ IN_FEATURES:
295
+ - res4
296
+ IOU_LABELS:
297
+ - 0
298
+ - -1
299
+ - 1
300
+ IOU_THRESHOLDS:
301
+ - 0.3
302
+ - 0.7
303
+ LOSS_WEIGHT: 1.0
304
+ NMS_THRESH: 0.7
305
+ POSITIVE_FRACTION: 0.5
306
+ POST_NMS_TOPK_TEST: 1000
307
+ POST_NMS_TOPK_TRAIN: 2000
308
+ PRE_NMS_TOPK_TEST: 6000
309
+ PRE_NMS_TOPK_TRAIN: 12000
310
+ SMOOTH_L1_BETA: 0.0
311
+ SEM_SEG_HEAD:
312
+ ASPP_CHANNELS: 256
313
+ ASPP_DILATIONS:
314
+ - 6
315
+ - 12
316
+ - 18
317
+ ASPP_DROPOUT: 0.1
318
+ COMMON_STRIDE: 4
319
+ CONVS_DIM: 256
320
+ DEFORMABLE_TRANSFORMER_ENCODER_IN_FEATURES:
321
+ - res3
322
+ - res4
323
+ - res5
324
+ DEFORMABLE_TRANSFORMER_ENCODER_N_HEADS: 8
325
+ DEFORMABLE_TRANSFORMER_ENCODER_N_POINTS: 4
326
+ IGNORE_VALUE: 255
327
+ IN_FEATURES:
328
+ - res2
329
+ - res3
330
+ - res4
331
+ - res5
332
+ LOSS_TYPE: hard_pixel_mining
333
+ LOSS_WEIGHT: 1.0
334
+ MASK_DIM: 256
335
+ NAME: MaskFormerHead
336
+ NORM: GN
337
+ NUM_CLASSES: 133
338
+ PIXEL_DECODER_NAME: MSDeformAttnPixelDecoder
339
+ PROJECT_CHANNELS:
340
+ - 48
341
+ PROJECT_FEATURES:
342
+ - res2
343
+ TRANSFORMER_ENC_LAYERS: 6
344
+ USE_DEPTHWISE_SEPARABLE_CONV: false
345
+ SWIN:
346
+ APE: false
347
+ ATTN_DROP_RATE: 0.0
348
+ DEPTHS:
349
+ - 2
350
+ - 2
351
+ - 6
352
+ - 2
353
+ DROP_PATH_RATE: 0.3
354
+ DROP_RATE: 0.0
355
+ EMBED_DIM: 96
356
+ MLP_RATIO: 4.0
357
+ NUM_HEADS:
358
+ - 3
359
+ - 6
360
+ - 12
361
+ - 24
362
+ OUT_FEATURES:
363
+ - res2
364
+ - res3
365
+ - res4
366
+ - res5
367
+ PATCH_NORM: true
368
+ PATCH_SIZE: 4
369
+ PRETRAIN_IMG_SIZE: 224
370
+ QKV_BIAS: true
371
+ QK_SCALE: null
372
+ USE_CHECKPOINT: false
373
+ WINDOW_SIZE: 7
374
+ WEIGHTS: model_final.pth
375
+ OUTPUT_DIR: output/mask2former-r50-coco-olac
376
+ SEED: 618
377
+ SOLVER:
378
+ AMP:
379
+ ENABLED: true
380
+ BACKBONE_MULTIPLIER: 0.1
381
+ BASE_LR: 0.0001
382
+ BASE_LR_END: 0.0
383
+ BIAS_LR_FACTOR: 1.0
384
+ CHECKPOINT_PERIOD: 5000
385
+ CLIP_GRADIENTS:
386
+ CLIP_TYPE: full_model
387
+ CLIP_VALUE: 0.01
388
+ ENABLED: true
389
+ NORM_TYPE: 2.0
390
+ GAMMA: 0.1
391
+ IMS_PER_BATCH: 48
392
+ LR_SCHEDULER_NAME: WarmupMultiStepLR
393
+ MAX_ITER: 31174
394
+ MOMENTUM: 0.9
395
+ NESTEROV: false
396
+ NUM_DECAYS: 3
397
+ OPTIMIZER: ADAMW
398
+ POLY_LR_CONSTANT_ENDING: 0.0
399
+ POLY_LR_POWER: 0.9
400
+ REFERENCE_WORLD_SIZE: 0
401
+ RESCALE_INTERVAL: false
402
+ STEPS:
403
+ - 28057
404
+ - 29615
405
+ WARMUP_FACTOR: 1.0
406
+ WARMUP_ITERS: 10
407
+ WARMUP_METHOD: linear
408
+ WEIGHT_DECAY: 0.05
409
+ WEIGHT_DECAY_BIAS: null
410
+ WEIGHT_DECAY_EMBED: 0.0
411
+ WEIGHT_DECAY_NORM: 0.0
412
+ TEST:
413
+ AUG:
414
+ ENABLED: false
415
+ FLIP: true
416
+ MAX_SIZE: 4000
417
+ MIN_SIZES:
418
+ - 400
419
+ - 500
420
+ - 600
421
+ - 700
422
+ - 800
423
+ - 900
424
+ - 1000
425
+ - 1100
426
+ - 1200
427
+ DETECTIONS_PER_IMAGE: 100
428
+ EVAL_PERIOD: 50000
429
+ EXPECTED_RESULTS: []
430
+ KEYPOINT_OKS_SIGMAS: []
431
+ PRECISE_BN:
432
+ ENABLED: false
433
+ NUM_ITER: 200
434
+ VERSION: 2
435
+ VIS_PERIOD: 0
mask2former-coco-olac/model_final.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39fcde2f94bee03140a127053ae397806d4bc834ad9891a6bdd635af7f1b451e
3
+ size 176577603
maskdino-coco-olac/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2022 - present, IDEA
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
maskdino-coco-olac/README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ library_name: pytorch
6
+ pipeline_tag: image-segmentation
7
+ tags:
8
+ - vision
9
+ - panoptic-segmentation
10
+ - maskdino
11
+ - pemola
12
+ - coco-olac
13
+ - arxiv:2607.18112
14
+ ---
15
+
16
+ # Mask DINO R50 — COCO-OLAC
17
+
18
+ [Paper](https://arxiv.org/abs/2607.18112) · [PEMOLA](https://github.com/wenbo-wei/PEMOLA) · [Mask DINO source](https://github.com/wenbo-wei/MaskDINO)
19
+
20
+ ResNet-50 checkpoint for the PEMOLA paper's retrained Mask DINO baseline. Training schedule: 31,174 iterations, batch size 48.
21
+
22
+ ## Paper results
23
+
24
+ | PQ | PQTh | PQSt | APTh_pan | mIoU_pan |
25
+ | ---: | ---: | ---: | ---: | ---: |
26
+ | 44.0 | 48.5 | 37.3 | 33.5 | 53.4 |
27
+
28
+ ## Download and evaluate
29
+
30
+ Use the dedicated [Mask DINO implementation](https://github.com/wenbo-wei/MaskDINO) and its installation instructions. Run from that repository after preparing COCO-OLAC:
31
+
32
+ ```bash
33
+ hf download weiwb/PEMOLA \
34
+ --include "maskdino-coco-olac/*" \
35
+ --local-dir checkpoints
36
+
37
+ export DETECTRON2_DATASETS=datasets/data
38
+ python train_net.py \
39
+ --config-file checkpoints/maskdino-coco-olac/config.yaml \
40
+ --num-gpus 1 \
41
+ --eval-only \
42
+ MODEL.WEIGHTS checkpoints/maskdino-coco-olac/model_final.pth \
43
+ DATASETS.TEST '("coco_olac_val",)'
44
+ ```
45
+
46
+ The configuration uses the implementation's `MODEL.OAM` options, with `PE_MODULATION: false`.
47
+
48
+ ## Files
49
+
50
+ - `model_final.pth`: model state dictionary under the `model` key.
51
+ - `config.yaml`: configuration for this checkpoint.
52
+ - `LICENSE`: Apache License 2.0, following the Mask DINO source project.
53
+
54
+ ## Citation
55
+
56
+ ```bibtex
57
+ @inproceedings{wei2026pemola,
58
+ title = {Occlusion-Aware Panoptic Segmentation with Joint Position Embedding and Occlusion-Level Attention},
59
+ author = {Wei, Wenbo and Wang, Jun and Raza, Shan and Bhalerao, Abhir},
60
+ booktitle = {IEEE International Conference on Multimedia and Expo (ICME)},
61
+ year = {2026}
62
+ }
63
+ ```
maskdino-coco-olac/config.yaml ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CUDNN_BENCHMARK: false
2
+ DATALOADER:
3
+ ASPECT_RATIO_GROUPING: true
4
+ FILTER_EMPTY_ANNOTATIONS: true
5
+ NUM_WORKERS: 16
6
+ REPEAT_SQRT: true
7
+ REPEAT_THRESHOLD: 0.0
8
+ SAMPLER_TRAIN: TrainingSampler
9
+ DATASETS:
10
+ PRECOMPUTED_PROPOSAL_TOPK_TEST: 1000
11
+ PRECOMPUTED_PROPOSAL_TOPK_TRAIN: 2000
12
+ PROPOSAL_FILES_TEST: []
13
+ PROPOSAL_FILES_TRAIN: []
14
+ TEST:
15
+ - coco_olac_val_low
16
+ - coco_olac_val_mid
17
+ - coco_olac_val_high
18
+ - coco_olac_val
19
+ TRAIN:
20
+ - coco_olac_train
21
+ Default_loading: true
22
+ FLOAT32_PRECISION: ''
23
+ GLOBAL:
24
+ HACK: 1.0
25
+ INPUT:
26
+ COLOR_AUG_SSD: false
27
+ CROP:
28
+ ENABLED: false
29
+ SINGLE_CATEGORY_MAX_AREA: 1.0
30
+ SIZE:
31
+ - 0.9
32
+ - 0.9
33
+ TYPE: relative_range
34
+ DATASET_MAPPER_NAME: coco_olac_panoptic_lsj
35
+ FORMAT: RGB
36
+ IMAGE_SIZE: 512
37
+ MASK_FORMAT: polygon
38
+ MAX_SCALE: 2.0
39
+ MAX_SIZE_TEST: 666
40
+ MAX_SIZE_TRAIN: 1333
41
+ MIN_SCALE: 0.1
42
+ MIN_SIZE_TEST: 400
43
+ MIN_SIZE_TRAIN:
44
+ - 800
45
+ MIN_SIZE_TRAIN_SAMPLING: choice
46
+ RANDOM_FLIP: horizontal
47
+ SIZE_DIVISIBILITY: -1
48
+ MODEL:
49
+ ANCHOR_GENERATOR:
50
+ ANGLES:
51
+ - - -90
52
+ - 0
53
+ - 90
54
+ ASPECT_RATIOS:
55
+ - - 0.5
56
+ - 1.0
57
+ - 2.0
58
+ NAME: DefaultAnchorGenerator
59
+ OFFSET: 0.0
60
+ SIZES:
61
+ - - 32
62
+ - 64
63
+ - 128
64
+ - 256
65
+ - 512
66
+ BACKBONE:
67
+ FREEZE_AT: 0
68
+ NAME: build_resnet_backbone
69
+ DEVICE: cuda
70
+ FPN:
71
+ FUSE_TYPE: sum
72
+ IN_FEATURES: []
73
+ NORM: ''
74
+ OUT_CHANNELS: 256
75
+ KEYPOINT_ON: false
76
+ LOAD_PROPOSALS: false
77
+ MASK_ON: false
78
+ META_ARCHITECTURE: MaskDINO
79
+ MaskDINO:
80
+ BOX_LOSS: true
81
+ BOX_WEIGHT: 5.0
82
+ CLASS_WEIGHT: 4.0
83
+ COST_BOX_WEIGHT: 5.0
84
+ COST_CLASS_WEIGHT: 4.0
85
+ COST_DICE_WEIGHT: 5.0
86
+ COST_GIOU_WEIGHT: 2.0
87
+ COST_MASK_WEIGHT: 5.0
88
+ DEC_LAYERS: 9
89
+ DEEP_SUPERVISION: true
90
+ DICE_WEIGHT: 5.0
91
+ DIM_FEEDFORWARD: 2048
92
+ DN: seg
93
+ DN_NOISE_SCALE: 0.4
94
+ DN_NUM: 100
95
+ DROPOUT: 0.0
96
+ ENC_LAYERS: 0
97
+ ENFORCE_INPUT_PROJ: false
98
+ EVAL_FLAG: 1
99
+ GIOU_WEIGHT: 2.0
100
+ HIDDEN_DIM: 256
101
+ IMPORTANCE_SAMPLE_RATIO: 0.75
102
+ INITIALIZE_BOX_TYPE: 'no'
103
+ INITIAL_PRED: true
104
+ LEARN_TGT: false
105
+ MASK_WEIGHT: 5.0
106
+ NHEADS: 8
107
+ NO_OBJECT_WEIGHT: 0.1
108
+ NUM_OBJECT_QUERIES: 300
109
+ OVERSAMPLE_RATIO: 3.0
110
+ PANO_BOX_LOSS: false
111
+ PRED_CONV: false
112
+ PRE_NORM: false
113
+ SEMANTIC_CE_LOSS: false
114
+ SIZE_DIVISIBILITY: 32
115
+ TEST:
116
+ INSTANCE_ON: true
117
+ OBJECT_MASK_THRESHOLD: 0.25
118
+ OVERLAP_THRESHOLD: 0.8
119
+ PANOPTIC_ON: true
120
+ PANO_TEMPERATURE: 0.06
121
+ PANO_TRANSFORM_EVAL: true
122
+ SEMANTIC_ON: true
123
+ SEM_SEG_POSTPROCESSING_BEFORE_INFERENCE: false
124
+ TEST_FOUCUS_ON_BOX: false
125
+ TRAIN_NUM_POINTS: 12544
126
+ TRANSFORMER_DECODER_NAME: MaskDINODecoder
127
+ TWO_STAGE: true
128
+ OAM:
129
+ CAM_ONLY: false
130
+ EMBED_ONLY: false
131
+ PE_MODULATION: false
132
+ TRANS_DECODER_PE_MOD: false
133
+ PANOPTIC_FPN:
134
+ COMBINE:
135
+ ENABLED: true
136
+ INSTANCES_CONFIDENCE_THRESH: 0.5
137
+ OVERLAP_THRESH: 0.5
138
+ STUFF_AREA_LIMIT: 4096
139
+ INSTANCE_LOSS_WEIGHT: 1.0
140
+ PIXEL_MEAN:
141
+ - 123.675
142
+ - 116.28
143
+ - 103.53
144
+ PIXEL_STD:
145
+ - 58.395
146
+ - 57.12
147
+ - 57.375
148
+ PROPOSAL_GENERATOR:
149
+ MIN_SIZE: 0
150
+ NAME: RPN
151
+ RESNETS:
152
+ DEFORM_MODULATED: false
153
+ DEFORM_NUM_GROUPS: 1
154
+ DEFORM_ON_PER_STAGE:
155
+ - false
156
+ - false
157
+ - false
158
+ - false
159
+ DEPTH: 50
160
+ NORM: FrozenBN
161
+ NUM_GROUPS: 1
162
+ OUT_FEATURES:
163
+ - res2
164
+ - res3
165
+ - res4
166
+ - res5
167
+ RES2_OUT_CHANNELS: 256
168
+ RES4_DILATION: 1
169
+ RES5_DILATION: 1
170
+ RES5_MULTI_GRID:
171
+ - 1
172
+ - 1
173
+ - 1
174
+ STEM_OUT_CHANNELS: 64
175
+ STEM_TYPE: basic
176
+ STRIDE_IN_1X1: false
177
+ WIDTH_PER_GROUP: 64
178
+ RETINANET:
179
+ BBOX_REG_LOSS_TYPE: smooth_l1
180
+ BBOX_REG_WEIGHTS: &id002
181
+ - 1.0
182
+ - 1.0
183
+ - 1.0
184
+ - 1.0
185
+ FOCAL_LOSS_ALPHA: 0.25
186
+ FOCAL_LOSS_GAMMA: 2.0
187
+ IN_FEATURES:
188
+ - p3
189
+ - p4
190
+ - p5
191
+ - p6
192
+ - p7
193
+ IOU_LABELS:
194
+ - 0
195
+ - -1
196
+ - 1
197
+ IOU_THRESHOLDS:
198
+ - 0.4
199
+ - 0.5
200
+ NMS_THRESH_TEST: 0.5
201
+ NORM: ''
202
+ NUM_CLASSES: 80
203
+ NUM_CONVS: 4
204
+ PRIOR_PROB: 0.01
205
+ SCORE_THRESH_TEST: 0.05
206
+ SMOOTH_L1_LOSS_BETA: 0.1
207
+ TOPK_CANDIDATES_TEST: 1000
208
+ ROI_BOX_CASCADE_HEAD:
209
+ BBOX_REG_WEIGHTS:
210
+ - &id001
211
+ - 10.0
212
+ - 10.0
213
+ - 5.0
214
+ - 5.0
215
+ - - 20.0
216
+ - 20.0
217
+ - 10.0
218
+ - 10.0
219
+ - - 30.0
220
+ - 30.0
221
+ - 15.0
222
+ - 15.0
223
+ IOUS:
224
+ - 0.5
225
+ - 0.6
226
+ - 0.7
227
+ ROI_BOX_HEAD:
228
+ BBOX_REG_LOSS_TYPE: smooth_l1
229
+ BBOX_REG_LOSS_WEIGHT: 1.0
230
+ BBOX_REG_WEIGHTS: *id001
231
+ CLS_AGNOSTIC_BBOX_REG: false
232
+ CONV_DIM: 256
233
+ FC_DIM: 1024
234
+ FED_LOSS_FREQ_WEIGHT_POWER: 0.5
235
+ FED_LOSS_NUM_CLASSES: 50
236
+ NAME: ''
237
+ NORM: ''
238
+ NUM_CONV: 0
239
+ NUM_FC: 0
240
+ POOLER_RESOLUTION: 14
241
+ POOLER_SAMPLING_RATIO: 0
242
+ POOLER_TYPE: ROIAlignV2
243
+ SMOOTH_L1_BETA: 0.0
244
+ TRAIN_ON_PRED_BOXES: false
245
+ USE_FED_LOSS: false
246
+ USE_SIGMOID_CE: false
247
+ ROI_HEADS:
248
+ BATCH_SIZE_PER_IMAGE: 512
249
+ IN_FEATURES:
250
+ - res4
251
+ IOU_LABELS:
252
+ - 0
253
+ - 1
254
+ IOU_THRESHOLDS:
255
+ - 0.5
256
+ NAME: Res5ROIHeads
257
+ NMS_THRESH_TEST: 0.5
258
+ NUM_CLASSES: 80
259
+ POSITIVE_FRACTION: 0.25
260
+ PROPOSAL_APPEND_GT: true
261
+ SCORE_THRESH_TEST: 0.05
262
+ ROI_KEYPOINT_HEAD:
263
+ CONV_DIMS:
264
+ - 512
265
+ - 512
266
+ - 512
267
+ - 512
268
+ - 512
269
+ - 512
270
+ - 512
271
+ - 512
272
+ LOSS_WEIGHT: 1.0
273
+ MIN_KEYPOINTS_PER_IMAGE: 1
274
+ NAME: KRCNNConvDeconvUpsampleHead
275
+ NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS: true
276
+ NUM_KEYPOINTS: 17
277
+ POOLER_RESOLUTION: 14
278
+ POOLER_SAMPLING_RATIO: 0
279
+ POOLER_TYPE: ROIAlignV2
280
+ ROI_MASK_HEAD:
281
+ CLS_AGNOSTIC_MASK: false
282
+ CONV_DIM: 256
283
+ NAME: MaskRCNNConvUpsampleHead
284
+ NORM: ''
285
+ NUM_CONV: 0
286
+ POOLER_RESOLUTION: 14
287
+ POOLER_SAMPLING_RATIO: 0
288
+ POOLER_TYPE: ROIAlignV2
289
+ RPN:
290
+ BATCH_SIZE_PER_IMAGE: 256
291
+ BBOX_REG_LOSS_TYPE: smooth_l1
292
+ BBOX_REG_LOSS_WEIGHT: 1.0
293
+ BBOX_REG_WEIGHTS: *id002
294
+ BOUNDARY_THRESH: -1
295
+ CONV_DIMS:
296
+ - -1
297
+ HEAD_NAME: StandardRPNHead
298
+ IN_FEATURES:
299
+ - res4
300
+ IOU_LABELS:
301
+ - 0
302
+ - -1
303
+ - 1
304
+ IOU_THRESHOLDS:
305
+ - 0.3
306
+ - 0.7
307
+ LOSS_WEIGHT: 1.0
308
+ NMS_THRESH: 0.7
309
+ POSITIVE_FRACTION: 0.5
310
+ POST_NMS_TOPK_TEST: 1000
311
+ POST_NMS_TOPK_TRAIN: 2000
312
+ PRE_NMS_TOPK_TEST: 6000
313
+ PRE_NMS_TOPK_TRAIN: 12000
314
+ SMOOTH_L1_BETA: 0.0
315
+ SEM_SEG_HEAD:
316
+ ASPP_CHANNELS: 256
317
+ ASPP_DILATIONS:
318
+ - 6
319
+ - 12
320
+ - 18
321
+ ASPP_DROPOUT: 0.1
322
+ COMMON_STRIDE: 4
323
+ CONVS_DIM: 256
324
+ DEFORMABLE_TRANSFORMER_ENCODER_IN_FEATURES:
325
+ - res3
326
+ - res4
327
+ - res5
328
+ DEFORMABLE_TRANSFORMER_ENCODER_N_HEADS: 8
329
+ DEFORMABLE_TRANSFORMER_ENCODER_N_POINTS: 4
330
+ DIM_FEEDFORWARD: 2048
331
+ FEATURE_ORDER: low2high
332
+ IGNORE_VALUE: 255
333
+ IN_FEATURES:
334
+ - res2
335
+ - res3
336
+ - res4
337
+ - res5
338
+ LOSS_TYPE: hard_pixel_mining
339
+ LOSS_WEIGHT: 1.0
340
+ MASK_DIM: 256
341
+ NAME: MaskDINOHead
342
+ NORM: GN
343
+ NUM_CLASSES: 133
344
+ NUM_FEATURE_LEVELS: 3
345
+ PIXEL_DECODER_NAME: MaskDINOEncoder
346
+ PROJECT_CHANNELS:
347
+ - 48
348
+ PROJECT_FEATURES:
349
+ - res2
350
+ TOTAL_NUM_FEATURE_LEVELS: 4
351
+ TRANSFORMER_ENC_LAYERS: 6
352
+ USE_DEPTHWISE_SEPARABLE_CONV: false
353
+ SWIN:
354
+ APE: false
355
+ ATTN_DROP_RATE: 0.0
356
+ DEPTHS:
357
+ - 2
358
+ - 2
359
+ - 6
360
+ - 2
361
+ DROP_PATH_RATE: 0.3
362
+ DROP_RATE: 0.0
363
+ EMBED_DIM: 96
364
+ MLP_RATIO: 4.0
365
+ NUM_HEADS:
366
+ - 3
367
+ - 6
368
+ - 12
369
+ - 24
370
+ OUT_FEATURES:
371
+ - res2
372
+ - res3
373
+ - res4
374
+ - res5
375
+ PATCH_NORM: true
376
+ PATCH_SIZE: 4
377
+ PRETRAIN_IMG_SIZE: 224
378
+ QKV_BIAS: true
379
+ QK_SCALE: null
380
+ USE_CHECKPOINT: false
381
+ WINDOW_SIZE: 7
382
+ WEIGHTS: ./model_final.pth
383
+ OUTPUT_DIR: ./output/maskdino_r50
384
+ SEED: 618
385
+ SOLVER:
386
+ AMP:
387
+ ENABLED: true
388
+ BACKBONE_MULTIPLIER: 0.1
389
+ BASE_LR: 0.0003
390
+ BASE_LR_END: 0.0
391
+ BIAS_LR_FACTOR: 1.0
392
+ CHECKPOINT_PERIOD: 5000
393
+ CLIP_GRADIENTS:
394
+ CLIP_TYPE: full_model
395
+ CLIP_VALUE: 0.01
396
+ ENABLED: true
397
+ NORM_TYPE: 2.0
398
+ GAMMA: 0.1
399
+ IMS_PER_BATCH: 48
400
+ LR_SCHEDULER_NAME: WarmupMultiStepLR
401
+ MAX_ITER: 31174
402
+ MOMENTUM: 0.9
403
+ NESTEROV: false
404
+ NUM_DECAYS: 3
405
+ OPTIMIZER: ADAMW
406
+ POLY_LR_CONSTANT_ENDING: 0.0
407
+ POLY_LR_POWER: 0.9
408
+ REFERENCE_WORLD_SIZE: 0
409
+ RESCALE_INTERVAL: false
410
+ STEPS:
411
+ - 28057
412
+ - 29615
413
+ WARMUP_FACTOR: 1.0
414
+ WARMUP_ITERS: 10
415
+ WARMUP_METHOD: linear
416
+ WEIGHT_DECAY: 0.05
417
+ WEIGHT_DECAY_BIAS: null
418
+ WEIGHT_DECAY_EMBED: 0.0
419
+ WEIGHT_DECAY_NORM: 0.0
420
+ TEST:
421
+ AUG:
422
+ ENABLED: false
423
+ FLIP: true
424
+ MAX_SIZE: 4000
425
+ MIN_SIZES:
426
+ - 400
427
+ - 500
428
+ - 600
429
+ - 700
430
+ - 800
431
+ - 900
432
+ - 1000
433
+ - 1100
434
+ - 1200
435
+ DETECTIONS_PER_IMAGE: 100
436
+ EVAL_PERIOD: 50000
437
+ EXPECTED_RESULTS: []
438
+ KEYPOINT_OKS_SIGMAS: []
439
+ PRECISE_BN:
440
+ ENABLED: false
441
+ NUM_ITER: 200
442
+ VERSION: 2
443
+ VIS_PERIOD: 0
maskdino-coco-olac/model_final.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd6730acca40bce7bed6d701286967006678992fc6b4d55c9f7f1ff9c5225363
3
+ size 209020219
pemola-cityscapes-olac/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2022 Meta, Inc.
2
+ Copyright (c) 2026 Wenbo Wei (modifications)
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
pemola-cityscapes-olac/README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ library_name: pytorch
6
+ pipeline_tag: image-segmentation
7
+ tags:
8
+ - vision
9
+ - panoptic-segmentation
10
+ - mask2former
11
+ - pemola
12
+ - cityscapes-olac
13
+ - occlusion-aware
14
+ - arxiv:2607.18112
15
+ ---
16
+
17
+ # PEMOLA + Mask2Former R50 — Cityscapes-OLAC
18
+
19
+ [Paper](https://arxiv.org/abs/2607.18112) · [PEMOLA](https://github.com/wenbo-wei/PEMOLA)
20
+
21
+ PEMOLA panoptic segmentation checkpoint from ICME 2026. Training schedule: 60,000 iterations, batch size 24.
22
+
23
+ ## Paper results
24
+
25
+ | PQ | PQTh | PQSt | APTh_pan | mIoU_pan |
26
+ | ---: | ---: | ---: | ---: | ---: |
27
+ | 62.3 | 55.4 | 67.2 | 38.5 | 77.4 |
28
+
29
+ ## Download and use
30
+
31
+ Install the [PEMOLA environment](https://github.com/wenbo-wei/PEMOLA#installation), then run from its repository root:
32
+
33
+ ```bash
34
+ hf download weiwb/PEMOLA \
35
+ --include "pemola-cityscapes-olac/*" \
36
+ --local-dir checkpoints
37
+
38
+ python predict.py \
39
+ --config checkpoints/pemola-cityscapes-olac/config.yaml \
40
+ --weights checkpoints/pemola-cityscapes-olac/model_final.pth \
41
+ --input /path/to/image.png \
42
+ --output-dir output/pemola-city-predictions \
43
+ --cam-dir /path/to/cam_pt \
44
+ --occlusion-json /path/to/occlusion_labels.json \
45
+ --format png
46
+ ```
47
+
48
+ For `image.jpg`, provide `cam_pt/image.pt` and a label JSON entry such as `{"image": "mid"}`. CAMs are two-dimensional tensors; labels are `low`, `mid`, or `high`.
49
+
50
+ For Cityscapes, CAM filenames and label keys must include `_leftImg8bit` when the input filename does.
51
+
52
+ The [Swin-L classifier](https://huggingface.co/weiwb/PEMOLA/blob/main/pemola-occlusion-swin-l/README.md) supplies label-prediction and CAM-generation commands. CAM preparation uses matching original and background-blackened images.
53
+
54
+ ## Files
55
+
56
+ - `model_final.pth`: model state dictionary under the `model` key.
57
+ - `config.yaml`: configuration for this checkpoint.
58
+ - `LICENSE`: MIT license.
59
+
60
+ ## Citation
61
+
62
+ ```bibtex
63
+ @inproceedings{wei2026pemola,
64
+ title = {Occlusion-Aware Panoptic Segmentation with Joint Position Embedding and Occlusion-Level Attention},
65
+ author = {Wei, Wenbo and Wang, Jun and Raza, Shan and Bhalerao, Abhir},
66
+ booktitle = {IEEE International Conference on Multimedia and Expo (ICME)},
67
+ year = {2026}
68
+ }
69
+ ```
pemola-cityscapes-olac/config.yaml ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CUDNN_BENCHMARK: false
2
+ DATALOADER:
3
+ ASPECT_RATIO_GROUPING: true
4
+ FILTER_EMPTY_ANNOTATIONS: true
5
+ NUM_WORKERS: 16
6
+ REPEAT_SQRT: true
7
+ REPEAT_THRESHOLD: 0.0
8
+ SAMPLER_TRAIN: TrainingSampler
9
+ DATASETS:
10
+ PRECOMPUTED_PROPOSAL_TOPK_TEST: 1000
11
+ PRECOMPUTED_PROPOSAL_TOPK_TRAIN: 2000
12
+ PROPOSAL_FILES_TEST: []
13
+ PROPOSAL_FILES_TRAIN: []
14
+ TEST:
15
+ - cityscapes_fine_panoptic_val
16
+ TRAIN:
17
+ - cityscapes_fine_panoptic_train
18
+ FLOAT32_PRECISION: ''
19
+ GLOBAL:
20
+ HACK: 1.0
21
+ INPUT:
22
+ COLOR_AUG_SSD: true
23
+ CROP:
24
+ ENABLED: true
25
+ SINGLE_CATEGORY_MAX_AREA: 1.0
26
+ SIZE:
27
+ - 512
28
+ - 1024
29
+ TYPE: absolute
30
+ DATASET_MAPPER_NAME: mask_former_panoptic
31
+ FORMAT: RGB
32
+ IMAGE_SIZE: 1024
33
+ MASK_FORMAT: polygon
34
+ MAX_SCALE: 2.0
35
+ MAX_SIZE_TEST: 2048
36
+ MAX_SIZE_TRAIN: 4096
37
+ MIN_SCALE: 0.1
38
+ MIN_SIZE_TEST: 1024
39
+ MIN_SIZE_TRAIN:
40
+ - 512
41
+ - 614
42
+ - 716
43
+ - 819
44
+ - 921
45
+ - 1024
46
+ - 1126
47
+ - 1228
48
+ - 1331
49
+ - 1433
50
+ - 1536
51
+ - 1638
52
+ - 1740
53
+ - 1843
54
+ - 1945
55
+ - 2048
56
+ MIN_SIZE_TRAIN_SAMPLING: choice
57
+ RANDOM_FLIP: horizontal
58
+ SIZE_DIVISIBILITY: -1
59
+ MODEL:
60
+ ANCHOR_GENERATOR:
61
+ ANGLES:
62
+ - - -90
63
+ - 0
64
+ - 90
65
+ ASPECT_RATIOS:
66
+ - - 0.5
67
+ - 1.0
68
+ - 2.0
69
+ NAME: DefaultAnchorGenerator
70
+ OFFSET: 0.0
71
+ SIZES:
72
+ - - 32
73
+ - 64
74
+ - 128
75
+ - 256
76
+ - 512
77
+ BACKBONE:
78
+ FREEZE_AT: 0
79
+ NAME: build_resnet_backbone
80
+ DEVICE: cuda
81
+ FPN:
82
+ FUSE_TYPE: sum
83
+ IN_FEATURES: []
84
+ NORM: ''
85
+ OUT_CHANNELS: 256
86
+ KEYPOINT_ON: false
87
+ LOAD_PROPOSALS: false
88
+ MASK_FORMER:
89
+ CLASS_WEIGHT: 2.0
90
+ DEC_LAYERS: 10
91
+ DEEP_SUPERVISION: true
92
+ DICE_WEIGHT: 5.0
93
+ DIM_FEEDFORWARD: 2048
94
+ DROPOUT: 0.0
95
+ ENC_LAYERS: 0
96
+ ENFORCE_INPUT_PROJ: false
97
+ HIDDEN_DIM: 256
98
+ IMPORTANCE_SAMPLE_RATIO: 0.75
99
+ MASK_WEIGHT: 5.0
100
+ NHEADS: 8
101
+ NO_OBJECT_WEIGHT: 0.1
102
+ NUM_OBJECT_QUERIES: 100
103
+ OVERSAMPLE_RATIO: 3.0
104
+ PRE_NORM: false
105
+ SIZE_DIVISIBILITY: 32
106
+ TEST:
107
+ INSTANCE_ON: true
108
+ OBJECT_MASK_THRESHOLD: 0.8
109
+ OVERLAP_THRESHOLD: 0.8
110
+ PANOPTIC_ON: true
111
+ SEMANTIC_ON: true
112
+ SEM_SEG_POSTPROCESSING_BEFORE_INFERENCE: false
113
+ TRAIN_NUM_POINTS: 12544
114
+ TRANSFORMER_DECODER_NAME: MultiScaleMaskedTransformerDecoder
115
+ TRANSFORMER_IN_FEATURE: multi_scale_pixel_decoder
116
+ MASK_ON: false
117
+ META_ARCHITECTURE: MaskFormer
118
+ PANOPTIC_FPN:
119
+ COMBINE:
120
+ ENABLED: true
121
+ INSTANCES_CONFIDENCE_THRESH: 0.5
122
+ OVERLAP_THRESH: 0.5
123
+ STUFF_AREA_LIMIT: 4096
124
+ INSTANCE_LOSS_WEIGHT: 1.0
125
+ PEMOLA:
126
+ CAM_ONLY: false
127
+ EMBED_ONLY: false
128
+ OCCLUSION_LEVELS:
129
+ - low
130
+ - mid
131
+ - high
132
+ PE_MODULATION: true
133
+ VIS_PE: false
134
+ VIS_PE_CHANNELS:
135
+ - 0
136
+ - 64
137
+ - -65
138
+ - -1
139
+ VIS_PE_FEATURES:
140
+ - res3
141
+ PIXEL_MEAN:
142
+ - 123.675
143
+ - 116.28
144
+ - 103.53
145
+ PIXEL_STD:
146
+ - 58.395
147
+ - 57.12
148
+ - 57.375
149
+ PROPOSAL_GENERATOR:
150
+ MIN_SIZE: 0
151
+ NAME: RPN
152
+ RESNETS:
153
+ DEFORM_MODULATED: false
154
+ DEFORM_NUM_GROUPS: 1
155
+ DEFORM_ON_PER_STAGE:
156
+ - false
157
+ - false
158
+ - false
159
+ - false
160
+ DEPTH: 50
161
+ NORM: SyncBN
162
+ NUM_GROUPS: 1
163
+ OUT_FEATURES:
164
+ - res2
165
+ - res3
166
+ - res4
167
+ - res5
168
+ RES2_OUT_CHANNELS: 256
169
+ RES4_DILATION: 1
170
+ RES5_DILATION: 1
171
+ RES5_MULTI_GRID:
172
+ - 1
173
+ - 1
174
+ - 1
175
+ STEM_OUT_CHANNELS: 64
176
+ STEM_TYPE: basic
177
+ STRIDE_IN_1X1: false
178
+ WIDTH_PER_GROUP: 64
179
+ RETINANET:
180
+ BBOX_REG_LOSS_TYPE: smooth_l1
181
+ BBOX_REG_WEIGHTS:
182
+ - 1.0
183
+ - 1.0
184
+ - 1.0
185
+ - 1.0
186
+ FOCAL_LOSS_ALPHA: 0.25
187
+ FOCAL_LOSS_GAMMA: 2.0
188
+ IN_FEATURES:
189
+ - p3
190
+ - p4
191
+ - p5
192
+ - p6
193
+ - p7
194
+ IOU_LABELS:
195
+ - 0
196
+ - -1
197
+ - 1
198
+ IOU_THRESHOLDS:
199
+ - 0.4
200
+ - 0.5
201
+ NMS_THRESH_TEST: 0.5
202
+ NORM: ''
203
+ NUM_CLASSES: 80
204
+ NUM_CONVS: 4
205
+ PRIOR_PROB: 0.01
206
+ SCORE_THRESH_TEST: 0.05
207
+ SMOOTH_L1_LOSS_BETA: 0.1
208
+ TOPK_CANDIDATES_TEST: 1000
209
+ ROI_BOX_CASCADE_HEAD:
210
+ BBOX_REG_WEIGHTS:
211
+ - - 10.0
212
+ - 10.0
213
+ - 5.0
214
+ - 5.0
215
+ - - 20.0
216
+ - 20.0
217
+ - 10.0
218
+ - 10.0
219
+ - - 30.0
220
+ - 30.0
221
+ - 15.0
222
+ - 15.0
223
+ IOUS:
224
+ - 0.5
225
+ - 0.6
226
+ - 0.7
227
+ ROI_BOX_HEAD:
228
+ BBOX_REG_LOSS_TYPE: smooth_l1
229
+ BBOX_REG_LOSS_WEIGHT: 1.0
230
+ BBOX_REG_WEIGHTS:
231
+ - 10.0
232
+ - 10.0
233
+ - 5.0
234
+ - 5.0
235
+ CLS_AGNOSTIC_BBOX_REG: false
236
+ CONV_DIM: 256
237
+ FC_DIM: 1024
238
+ FED_LOSS_FREQ_WEIGHT_POWER: 0.5
239
+ FED_LOSS_NUM_CLASSES: 50
240
+ NAME: ''
241
+ NORM: ''
242
+ NUM_CONV: 0
243
+ NUM_FC: 0
244
+ POOLER_RESOLUTION: 14
245
+ POOLER_SAMPLING_RATIO: 0
246
+ POOLER_TYPE: ROIAlignV2
247
+ SMOOTH_L1_BETA: 0.0
248
+ TRAIN_ON_PRED_BOXES: false
249
+ USE_FED_LOSS: false
250
+ USE_SIGMOID_CE: false
251
+ ROI_HEADS:
252
+ BATCH_SIZE_PER_IMAGE: 512
253
+ IN_FEATURES:
254
+ - res4
255
+ IOU_LABELS:
256
+ - 0
257
+ - 1
258
+ IOU_THRESHOLDS:
259
+ - 0.5
260
+ NAME: Res5ROIHeads
261
+ NMS_THRESH_TEST: 0.5
262
+ NUM_CLASSES: 80
263
+ POSITIVE_FRACTION: 0.25
264
+ PROPOSAL_APPEND_GT: true
265
+ SCORE_THRESH_TEST: 0.05
266
+ ROI_KEYPOINT_HEAD:
267
+ CONV_DIMS:
268
+ - 512
269
+ - 512
270
+ - 512
271
+ - 512
272
+ - 512
273
+ - 512
274
+ - 512
275
+ - 512
276
+ LOSS_WEIGHT: 1.0
277
+ MIN_KEYPOINTS_PER_IMAGE: 1
278
+ NAME: KRCNNConvDeconvUpsampleHead
279
+ NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS: true
280
+ NUM_KEYPOINTS: 17
281
+ POOLER_RESOLUTION: 14
282
+ POOLER_SAMPLING_RATIO: 0
283
+ POOLER_TYPE: ROIAlignV2
284
+ ROI_MASK_HEAD:
285
+ CLS_AGNOSTIC_MASK: false
286
+ CONV_DIM: 256
287
+ NAME: MaskRCNNConvUpsampleHead
288
+ NORM: ''
289
+ NUM_CONV: 0
290
+ POOLER_RESOLUTION: 14
291
+ POOLER_SAMPLING_RATIO: 0
292
+ POOLER_TYPE: ROIAlignV2
293
+ RPN:
294
+ BATCH_SIZE_PER_IMAGE: 256
295
+ BBOX_REG_LOSS_TYPE: smooth_l1
296
+ BBOX_REG_LOSS_WEIGHT: 1.0
297
+ BBOX_REG_WEIGHTS:
298
+ - 1.0
299
+ - 1.0
300
+ - 1.0
301
+ - 1.0
302
+ BOUNDARY_THRESH: -1
303
+ CONV_DIMS:
304
+ - -1
305
+ HEAD_NAME: StandardRPNHead
306
+ IN_FEATURES:
307
+ - res4
308
+ IOU_LABELS:
309
+ - 0
310
+ - -1
311
+ - 1
312
+ IOU_THRESHOLDS:
313
+ - 0.3
314
+ - 0.7
315
+ LOSS_WEIGHT: 1.0
316
+ NMS_THRESH: 0.7
317
+ POSITIVE_FRACTION: 0.5
318
+ POST_NMS_TOPK_TEST: 1000
319
+ POST_NMS_TOPK_TRAIN: 2000
320
+ PRE_NMS_TOPK_TEST: 6000
321
+ PRE_NMS_TOPK_TRAIN: 12000
322
+ SMOOTH_L1_BETA: 0.0
323
+ SEM_SEG_HEAD:
324
+ ASPP_CHANNELS: 256
325
+ ASPP_DILATIONS:
326
+ - 6
327
+ - 12
328
+ - 18
329
+ ASPP_DROPOUT: 0.1
330
+ COMMON_STRIDE: 4
331
+ CONVS_DIM: 256
332
+ DEFORMABLE_TRANSFORMER_ENCODER_IN_FEATURES:
333
+ - res3
334
+ - res4
335
+ - res5
336
+ DEFORMABLE_TRANSFORMER_ENCODER_N_HEADS: 8
337
+ DEFORMABLE_TRANSFORMER_ENCODER_N_POINTS: 4
338
+ IGNORE_VALUE: 255
339
+ IN_FEATURES:
340
+ - res2
341
+ - res3
342
+ - res4
343
+ - res5
344
+ LOSS_TYPE: hard_pixel_mining
345
+ LOSS_WEIGHT: 1.0
346
+ MASK_DIM: 256
347
+ NAME: MaskFormerHead
348
+ NORM: GN
349
+ NUM_CLASSES: 19
350
+ PIXEL_DECODER_NAME: MSDeformAttnPixelDecoder
351
+ PROJECT_CHANNELS:
352
+ - 48
353
+ PROJECT_FEATURES:
354
+ - res2
355
+ TRANSFORMER_ENC_LAYERS: 6
356
+ USE_DEPTHWISE_SEPARABLE_CONV: false
357
+ SWIN:
358
+ APE: false
359
+ ATTN_DROP_RATE: 0.0
360
+ DEPTHS:
361
+ - 2
362
+ - 2
363
+ - 6
364
+ - 2
365
+ DROP_PATH_RATE: 0.3
366
+ DROP_RATE: 0.0
367
+ EMBED_DIM: 96
368
+ MLP_RATIO: 4.0
369
+ NUM_HEADS:
370
+ - 3
371
+ - 6
372
+ - 12
373
+ - 24
374
+ OUT_FEATURES:
375
+ - res2
376
+ - res3
377
+ - res4
378
+ - res5
379
+ PATCH_NORM: true
380
+ PATCH_SIZE: 4
381
+ PRETRAIN_IMG_SIZE: 224
382
+ QKV_BIAS: true
383
+ QK_SCALE: null
384
+ USE_CHECKPOINT: false
385
+ WINDOW_SIZE: 7
386
+ WEIGHTS: model_final.pth
387
+ OUTPUT_DIR: ./output
388
+ SEED: 618
389
+ SOLVER:
390
+ AMP:
391
+ ENABLED: true
392
+ BACKBONE_MULTIPLIER: 0.1
393
+ BASE_LR: 0.00015
394
+ BASE_LR_END: 0.0
395
+ BIAS_LR_FACTOR: 1.0
396
+ CHECKPOINT_PERIOD: 5000
397
+ CLIP_GRADIENTS:
398
+ CLIP_TYPE: full_model
399
+ CLIP_VALUE: 0.01
400
+ ENABLED: true
401
+ NORM_TYPE: 2.0
402
+ GAMMA: 0.1
403
+ IMS_PER_BATCH: 24
404
+ LR_SCHEDULER_NAME: WarmupPolyLR
405
+ MAX_ITER: 60000
406
+ MOMENTUM: 0.9
407
+ NESTEROV: false
408
+ NUM_DECAYS: 3
409
+ OPTIMIZER: ADAMW
410
+ POLY_LR_CONSTANT_ENDING: 0.0
411
+ POLY_LR_POWER: 0.9
412
+ REFERENCE_WORLD_SIZE: 0
413
+ RESCALE_INTERVAL: false
414
+ STEPS:
415
+ - 30000
416
+ WARMUP_FACTOR: 1.0
417
+ WARMUP_ITERS: 0
418
+ WARMUP_METHOD: linear
419
+ WEIGHT_DECAY: 0.05
420
+ WEIGHT_DECAY_BIAS: null
421
+ WEIGHT_DECAY_EMBED: 0.0
422
+ WEIGHT_DECAY_NORM: 0.0
423
+ TEST:
424
+ AUG:
425
+ ENABLED: false
426
+ FLIP: true
427
+ MAX_SIZE: 4096
428
+ MIN_SIZES:
429
+ - 512
430
+ - 768
431
+ - 1024
432
+ - 1280
433
+ - 1536
434
+ - 1792
435
+ DETECTIONS_PER_IMAGE: 100
436
+ EVAL_PERIOD: 100000
437
+ EXPECTED_RESULTS: []
438
+ KEYPOINT_OKS_SIGMAS: []
439
+ PRECISE_BN:
440
+ ENABLED: false
441
+ NUM_ITER: 200
442
+ VERSION: 2
443
+ VIS_PERIOD: 0
pemola-cityscapes-olac/model_final.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef6b212d7bf2d32173dba04154ecbe816d6c504173eb5e3e9492ebfd29e18fd0
3
+ size 176480007
pemola-cityscapes-olac/run_metrics.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_relative_path": "output/cityscapes_olac/pemola_r50/metrics.json",
3
+ "source": "final evaluation record from the accompanying historical run log",
4
+ "iteration": 60000,
5
+ "metrics_percent": {
6
+ "panoptic_seg/PQ": 62.262777283662615,
7
+ "panoptic_seg/PQ_th": 55.43071532028896,
8
+ "panoptic_seg/PQ_st": 67.23154962066164,
9
+ "segm/AP": 38.4660017622081,
10
+ "sem_seg/IoU": 77.44834135399985
11
+ },
12
+ "recomputed_during_release": false
13
+ }
pemola-coco-olac/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2022 Meta, Inc.
2
+ Copyright (c) 2026 Wenbo Wei (modifications)
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
pemola-coco-olac/README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ library_name: pytorch
6
+ pipeline_tag: image-segmentation
7
+ tags:
8
+ - vision
9
+ - panoptic-segmentation
10
+ - mask2former
11
+ - pemola
12
+ - coco-olac
13
+ - occlusion-aware
14
+ - arxiv:2607.18112
15
+ ---
16
+
17
+ # PEMOLA + Mask2Former R50 — COCO-OLAC
18
+
19
+ [Paper](https://arxiv.org/abs/2607.18112) · [PEMOLA](https://github.com/wenbo-wei/PEMOLA)
20
+
21
+ PEMOLA panoptic segmentation checkpoint from ICME 2026. Training schedule: 31,174 iterations, batch size 48.
22
+
23
+ ## Paper results
24
+
25
+ | PQ | PQTh | PQSt | APTh_pan | mIoU_pan |
26
+ | ---: | ---: | ---: | ---: | ---: |
27
+ | 41.5 | 45.2 | 35.9 | 30.4 | 54.8 |
28
+
29
+ ## Download and use
30
+
31
+ Install the [PEMOLA environment](https://github.com/wenbo-wei/PEMOLA#installation), then run from its repository root:
32
+
33
+ ```bash
34
+ hf download weiwb/PEMOLA \
35
+ --include "pemola-coco-olac/*" \
36
+ --local-dir checkpoints
37
+
38
+ python predict.py \
39
+ --config checkpoints/pemola-coco-olac/config.yaml \
40
+ --weights checkpoints/pemola-coco-olac/model_final.pth \
41
+ --input /path/to/image.jpg \
42
+ --output-dir output/pemola-coco-predictions \
43
+ --cam-dir /path/to/cam_pt \
44
+ --occlusion-json /path/to/occlusion_labels.json \
45
+ --format png
46
+ ```
47
+
48
+ For `image.jpg`, provide `cam_pt/image.pt` and a label JSON entry such as `{"image": "mid"}`. CAMs are two-dimensional tensors; labels are `low`, `mid`, or `high`.
49
+
50
+ The [Swin-L classifier](https://huggingface.co/weiwb/PEMOLA/blob/main/pemola-occlusion-swin-l/README.md) supplies label-prediction and CAM-generation commands. CAM preparation uses matching original and background-blackened images.
51
+
52
+ ## Files
53
+
54
+ - `model_final.pth`: model state dictionary under the `model` key.
55
+ - `config.yaml`: configuration for this checkpoint.
56
+ - `LICENSE`: MIT license.
57
+
58
+ ## Citation
59
+
60
+ ```bibtex
61
+ @inproceedings{wei2026pemola,
62
+ title = {Occlusion-Aware Panoptic Segmentation with Joint Position Embedding and Occlusion-Level Attention},
63
+ author = {Wei, Wenbo and Wang, Jun and Raza, Shan and Bhalerao, Abhir},
64
+ booktitle = {IEEE International Conference on Multimedia and Expo (ICME)},
65
+ year = {2026}
66
+ }
67
+ ```
pemola-coco-olac/config.yaml ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CUDNN_BENCHMARK: false
2
+ DATALOADER:
3
+ ASPECT_RATIO_GROUPING: true
4
+ FILTER_EMPTY_ANNOTATIONS: true
5
+ NUM_WORKERS: 16
6
+ REPEAT_SQRT: true
7
+ REPEAT_THRESHOLD: 0.0
8
+ SAMPLER_TRAIN: TrainingSampler
9
+ DATASETS:
10
+ PRECOMPUTED_PROPOSAL_TOPK_TEST: 1000
11
+ PRECOMPUTED_PROPOSAL_TOPK_TRAIN: 2000
12
+ PROPOSAL_FILES_TEST: []
13
+ PROPOSAL_FILES_TRAIN: []
14
+ TEST:
15
+ - coco_olac_val_low
16
+ - coco_olac_val_mid
17
+ - coco_olac_val_high
18
+ - coco_olac_val
19
+ TRAIN:
20
+ - coco_olac_train
21
+ FLOAT32_PRECISION: ''
22
+ GLOBAL:
23
+ HACK: 1.0
24
+ INPUT:
25
+ COLOR_AUG_SSD: false
26
+ CROP:
27
+ ENABLED: false
28
+ SINGLE_CATEGORY_MAX_AREA: 1.0
29
+ SIZE:
30
+ - 0.9
31
+ - 0.9
32
+ TYPE: relative_range
33
+ DATASET_MAPPER_NAME: coco_olac_panoptic_lsj
34
+ FORMAT: RGB
35
+ IMAGE_SIZE: 512
36
+ MASK_FORMAT: polygon
37
+ MAX_SCALE: 2.0
38
+ MAX_SIZE_TEST: 666
39
+ MAX_SIZE_TRAIN: 1333
40
+ MIN_SCALE: 0.1
41
+ MIN_SIZE_TEST: 400
42
+ MIN_SIZE_TRAIN:
43
+ - 800
44
+ MIN_SIZE_TRAIN_SAMPLING: choice
45
+ RANDOM_FLIP: horizontal
46
+ SIZE_DIVISIBILITY: -1
47
+ MODEL:
48
+ ANCHOR_GENERATOR:
49
+ ANGLES:
50
+ - - -90
51
+ - 0
52
+ - 90
53
+ ASPECT_RATIOS:
54
+ - - 0.5
55
+ - 1.0
56
+ - 2.0
57
+ NAME: DefaultAnchorGenerator
58
+ OFFSET: 0.0
59
+ SIZES:
60
+ - - 32
61
+ - 64
62
+ - 128
63
+ - 256
64
+ - 512
65
+ BACKBONE:
66
+ FREEZE_AT: 0
67
+ NAME: build_resnet_backbone
68
+ DEVICE: cuda
69
+ FPN:
70
+ FUSE_TYPE: sum
71
+ IN_FEATURES: []
72
+ NORM: ''
73
+ OUT_CHANNELS: 256
74
+ KEYPOINT_ON: false
75
+ LOAD_PROPOSALS: false
76
+ MASK_FORMER:
77
+ CLASS_WEIGHT: 2.0
78
+ DEC_LAYERS: 10
79
+ DEEP_SUPERVISION: true
80
+ DICE_WEIGHT: 5.0
81
+ DIM_FEEDFORWARD: 2048
82
+ DROPOUT: 0.0
83
+ ENC_LAYERS: 0
84
+ ENFORCE_INPUT_PROJ: false
85
+ HIDDEN_DIM: 256
86
+ IMPORTANCE_SAMPLE_RATIO: 0.75
87
+ MASK_WEIGHT: 5.0
88
+ NHEADS: 8
89
+ NO_OBJECT_WEIGHT: 0.1
90
+ NUM_OBJECT_QUERIES: 100
91
+ OVERSAMPLE_RATIO: 3.0
92
+ PRE_NORM: false
93
+ SIZE_DIVISIBILITY: 32
94
+ TEST:
95
+ INSTANCE_ON: true
96
+ OBJECT_MASK_THRESHOLD: 0.8
97
+ OVERLAP_THRESHOLD: 0.8
98
+ PANOPTIC_ON: true
99
+ SEMANTIC_ON: true
100
+ SEM_SEG_POSTPROCESSING_BEFORE_INFERENCE: false
101
+ TRAIN_NUM_POINTS: 12544
102
+ TRANSFORMER_DECODER_NAME: MultiScaleMaskedTransformerDecoder
103
+ TRANSFORMER_IN_FEATURE: multi_scale_pixel_decoder
104
+ MASK_ON: false
105
+ META_ARCHITECTURE: MaskFormer
106
+ PANOPTIC_FPN:
107
+ COMBINE:
108
+ ENABLED: true
109
+ INSTANCES_CONFIDENCE_THRESH: 0.5
110
+ OVERLAP_THRESH: 0.5
111
+ STUFF_AREA_LIMIT: 4096
112
+ INSTANCE_LOSS_WEIGHT: 1.0
113
+ PEMOLA:
114
+ CAM_ONLY: false
115
+ EMBED_ONLY: false
116
+ OCCLUSION_LEVELS:
117
+ - low
118
+ - mid
119
+ - high
120
+ PE_MODULATION: true
121
+ VIS_PE: false
122
+ VIS_PE_CHANNELS:
123
+ - 0
124
+ - 64
125
+ - -65
126
+ - -1
127
+ VIS_PE_FEATURES:
128
+ - res3
129
+ PIXEL_MEAN:
130
+ - 123.675
131
+ - 116.28
132
+ - 103.53
133
+ PIXEL_STD:
134
+ - 58.395
135
+ - 57.12
136
+ - 57.375
137
+ PROPOSAL_GENERATOR:
138
+ MIN_SIZE: 0
139
+ NAME: RPN
140
+ RESNETS:
141
+ DEFORM_MODULATED: false
142
+ DEFORM_NUM_GROUPS: 1
143
+ DEFORM_ON_PER_STAGE:
144
+ - false
145
+ - false
146
+ - false
147
+ - false
148
+ DEPTH: 50
149
+ NORM: FrozenBN
150
+ NUM_GROUPS: 1
151
+ OUT_FEATURES:
152
+ - res2
153
+ - res3
154
+ - res4
155
+ - res5
156
+ RES2_OUT_CHANNELS: 256
157
+ RES4_DILATION: 1
158
+ RES5_DILATION: 1
159
+ RES5_MULTI_GRID:
160
+ - 1
161
+ - 1
162
+ - 1
163
+ STEM_OUT_CHANNELS: 64
164
+ STEM_TYPE: basic
165
+ STRIDE_IN_1X1: false
166
+ WIDTH_PER_GROUP: 64
167
+ RETINANET:
168
+ BBOX_REG_LOSS_TYPE: smooth_l1
169
+ BBOX_REG_WEIGHTS:
170
+ - 1.0
171
+ - 1.0
172
+ - 1.0
173
+ - 1.0
174
+ FOCAL_LOSS_ALPHA: 0.25
175
+ FOCAL_LOSS_GAMMA: 2.0
176
+ IN_FEATURES:
177
+ - p3
178
+ - p4
179
+ - p5
180
+ - p6
181
+ - p7
182
+ IOU_LABELS:
183
+ - 0
184
+ - -1
185
+ - 1
186
+ IOU_THRESHOLDS:
187
+ - 0.4
188
+ - 0.5
189
+ NMS_THRESH_TEST: 0.5
190
+ NORM: ''
191
+ NUM_CLASSES: 80
192
+ NUM_CONVS: 4
193
+ PRIOR_PROB: 0.01
194
+ SCORE_THRESH_TEST: 0.05
195
+ SMOOTH_L1_LOSS_BETA: 0.1
196
+ TOPK_CANDIDATES_TEST: 1000
197
+ ROI_BOX_CASCADE_HEAD:
198
+ BBOX_REG_WEIGHTS:
199
+ - - 10.0
200
+ - 10.0
201
+ - 5.0
202
+ - 5.0
203
+ - - 20.0
204
+ - 20.0
205
+ - 10.0
206
+ - 10.0
207
+ - - 30.0
208
+ - 30.0
209
+ - 15.0
210
+ - 15.0
211
+ IOUS:
212
+ - 0.5
213
+ - 0.6
214
+ - 0.7
215
+ ROI_BOX_HEAD:
216
+ BBOX_REG_LOSS_TYPE: smooth_l1
217
+ BBOX_REG_LOSS_WEIGHT: 1.0
218
+ BBOX_REG_WEIGHTS:
219
+ - 10.0
220
+ - 10.0
221
+ - 5.0
222
+ - 5.0
223
+ CLS_AGNOSTIC_BBOX_REG: false
224
+ CONV_DIM: 256
225
+ FC_DIM: 1024
226
+ FED_LOSS_FREQ_WEIGHT_POWER: 0.5
227
+ FED_LOSS_NUM_CLASSES: 50
228
+ NAME: ''
229
+ NORM: ''
230
+ NUM_CONV: 0
231
+ NUM_FC: 0
232
+ POOLER_RESOLUTION: 14
233
+ POOLER_SAMPLING_RATIO: 0
234
+ POOLER_TYPE: ROIAlignV2
235
+ SMOOTH_L1_BETA: 0.0
236
+ TRAIN_ON_PRED_BOXES: false
237
+ USE_FED_LOSS: false
238
+ USE_SIGMOID_CE: false
239
+ ROI_HEADS:
240
+ BATCH_SIZE_PER_IMAGE: 512
241
+ IN_FEATURES:
242
+ - res4
243
+ IOU_LABELS:
244
+ - 0
245
+ - 1
246
+ IOU_THRESHOLDS:
247
+ - 0.5
248
+ NAME: Res5ROIHeads
249
+ NMS_THRESH_TEST: 0.5
250
+ NUM_CLASSES: 80
251
+ POSITIVE_FRACTION: 0.25
252
+ PROPOSAL_APPEND_GT: true
253
+ SCORE_THRESH_TEST: 0.05
254
+ ROI_KEYPOINT_HEAD:
255
+ CONV_DIMS:
256
+ - 512
257
+ - 512
258
+ - 512
259
+ - 512
260
+ - 512
261
+ - 512
262
+ - 512
263
+ - 512
264
+ LOSS_WEIGHT: 1.0
265
+ MIN_KEYPOINTS_PER_IMAGE: 1
266
+ NAME: KRCNNConvDeconvUpsampleHead
267
+ NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS: true
268
+ NUM_KEYPOINTS: 17
269
+ POOLER_RESOLUTION: 14
270
+ POOLER_SAMPLING_RATIO: 0
271
+ POOLER_TYPE: ROIAlignV2
272
+ ROI_MASK_HEAD:
273
+ CLS_AGNOSTIC_MASK: false
274
+ CONV_DIM: 256
275
+ NAME: MaskRCNNConvUpsampleHead
276
+ NORM: ''
277
+ NUM_CONV: 0
278
+ POOLER_RESOLUTION: 14
279
+ POOLER_SAMPLING_RATIO: 0
280
+ POOLER_TYPE: ROIAlignV2
281
+ RPN:
282
+ BATCH_SIZE_PER_IMAGE: 256
283
+ BBOX_REG_LOSS_TYPE: smooth_l1
284
+ BBOX_REG_LOSS_WEIGHT: 1.0
285
+ BBOX_REG_WEIGHTS:
286
+ - 1.0
287
+ - 1.0
288
+ - 1.0
289
+ - 1.0
290
+ BOUNDARY_THRESH: -1
291
+ CONV_DIMS:
292
+ - -1
293
+ HEAD_NAME: StandardRPNHead
294
+ IN_FEATURES:
295
+ - res4
296
+ IOU_LABELS:
297
+ - 0
298
+ - -1
299
+ - 1
300
+ IOU_THRESHOLDS:
301
+ - 0.3
302
+ - 0.7
303
+ LOSS_WEIGHT: 1.0
304
+ NMS_THRESH: 0.7
305
+ POSITIVE_FRACTION: 0.5
306
+ POST_NMS_TOPK_TEST: 1000
307
+ POST_NMS_TOPK_TRAIN: 2000
308
+ PRE_NMS_TOPK_TEST: 6000
309
+ PRE_NMS_TOPK_TRAIN: 12000
310
+ SMOOTH_L1_BETA: 0.0
311
+ SEM_SEG_HEAD:
312
+ ASPP_CHANNELS: 256
313
+ ASPP_DILATIONS:
314
+ - 6
315
+ - 12
316
+ - 18
317
+ ASPP_DROPOUT: 0.1
318
+ COMMON_STRIDE: 4
319
+ CONVS_DIM: 256
320
+ DEFORMABLE_TRANSFORMER_ENCODER_IN_FEATURES:
321
+ - res3
322
+ - res4
323
+ - res5
324
+ DEFORMABLE_TRANSFORMER_ENCODER_N_HEADS: 8
325
+ DEFORMABLE_TRANSFORMER_ENCODER_N_POINTS: 4
326
+ IGNORE_VALUE: 255
327
+ IN_FEATURES:
328
+ - res2
329
+ - res3
330
+ - res4
331
+ - res5
332
+ LOSS_TYPE: hard_pixel_mining
333
+ LOSS_WEIGHT: 1.0
334
+ MASK_DIM: 256
335
+ NAME: MaskFormerHead
336
+ NORM: GN
337
+ NUM_CLASSES: 133
338
+ PIXEL_DECODER_NAME: MSDeformAttnPixelDecoder
339
+ PROJECT_CHANNELS:
340
+ - 48
341
+ PROJECT_FEATURES:
342
+ - res2
343
+ TRANSFORMER_ENC_LAYERS: 6
344
+ USE_DEPTHWISE_SEPARABLE_CONV: false
345
+ SWIN:
346
+ APE: false
347
+ ATTN_DROP_RATE: 0.0
348
+ DEPTHS:
349
+ - 2
350
+ - 2
351
+ - 6
352
+ - 2
353
+ DROP_PATH_RATE: 0.3
354
+ DROP_RATE: 0.0
355
+ EMBED_DIM: 96
356
+ MLP_RATIO: 4.0
357
+ NUM_HEADS:
358
+ - 3
359
+ - 6
360
+ - 12
361
+ - 24
362
+ OUT_FEATURES:
363
+ - res2
364
+ - res3
365
+ - res4
366
+ - res5
367
+ PATCH_NORM: true
368
+ PATCH_SIZE: 4
369
+ PRETRAIN_IMG_SIZE: 224
370
+ QKV_BIAS: true
371
+ QK_SCALE: null
372
+ USE_CHECKPOINT: false
373
+ WINDOW_SIZE: 7
374
+ WEIGHTS: model_final.pth
375
+ OUTPUT_DIR: ./output
376
+ SEED: 618
377
+ SOLVER:
378
+ AMP:
379
+ ENABLED: true
380
+ BACKBONE_MULTIPLIER: 0.1
381
+ BASE_LR: 0.0001
382
+ BASE_LR_END: 0.0
383
+ BIAS_LR_FACTOR: 1.0
384
+ CHECKPOINT_PERIOD: 5000
385
+ CLIP_GRADIENTS:
386
+ CLIP_TYPE: full_model
387
+ CLIP_VALUE: 0.01
388
+ ENABLED: true
389
+ NORM_TYPE: 2.0
390
+ GAMMA: 0.1
391
+ IMS_PER_BATCH: 48
392
+ LR_SCHEDULER_NAME: WarmupMultiStepLR
393
+ MAX_ITER: 31174
394
+ MOMENTUM: 0.9
395
+ NESTEROV: false
396
+ NUM_DECAYS: 3
397
+ OPTIMIZER: ADAMW
398
+ POLY_LR_CONSTANT_ENDING: 0.0
399
+ POLY_LR_POWER: 0.9
400
+ REFERENCE_WORLD_SIZE: 0
401
+ RESCALE_INTERVAL: false
402
+ STEPS:
403
+ - 28057
404
+ - 29615
405
+ WARMUP_FACTOR: 1.0
406
+ WARMUP_ITERS: 10
407
+ WARMUP_METHOD: linear
408
+ WEIGHT_DECAY: 0.05
409
+ WEIGHT_DECAY_BIAS: null
410
+ WEIGHT_DECAY_EMBED: 0.0
411
+ WEIGHT_DECAY_NORM: 0.0
412
+ TEST:
413
+ AUG:
414
+ ENABLED: false
415
+ FLIP: true
416
+ MAX_SIZE: 4000
417
+ MIN_SIZES:
418
+ - 400
419
+ - 500
420
+ - 600
421
+ - 700
422
+ - 800
423
+ - 900
424
+ - 1000
425
+ - 1100
426
+ - 1200
427
+ DETECTIONS_PER_IMAGE: 100
428
+ EVAL_PERIOD: 50000
429
+ EXPECTED_RESULTS: []
430
+ KEYPOINT_OKS_SIGMAS: []
431
+ PRECISE_BN:
432
+ ENABLED: false
433
+ NUM_ITER: 200
434
+ VERSION: 2
435
+ VIS_PERIOD: 0
pemola-coco-olac/model_final.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d75a63f9c06267a6db2afb4596d9f5a8294e3cdd46bc912b1d5023dddb42bc0
3
+ size 176581065
pemola-coco-olac/run_metrics.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_relative_path": "output/coco_olac/pemola_r50/metrics.json",
3
+ "source": "final evaluation record from the accompanying historical run log",
4
+ "iteration": 31174,
5
+ "metrics_percent": {
6
+ "panoptic_seg/PQ": 41.47682519229184,
7
+ "panoptic_seg/PQ_th": 45.201242935906684,
8
+ "panoptic_seg/PQ_st": 35.85506256042038,
9
+ "segm/AP": 30.381235634589167,
10
+ "sem_seg/mIoU": 54.76737163146169
11
+ },
12
+ "recomputed_during_release": false
13
+ }
pemola-maskdino-coco-olac/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2022 - present, IDEA
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
pemola-maskdino-coco-olac/README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ library_name: pytorch
6
+ pipeline_tag: image-segmentation
7
+ tags:
8
+ - vision
9
+ - panoptic-segmentation
10
+ - maskdino
11
+ - pemola
12
+ - coco-olac
13
+ - arxiv:2607.18112
14
+ ---
15
+
16
+ # PEMOLA + Mask DINO R50 — COCO-OLAC
17
+
18
+ [Paper](https://arxiv.org/abs/2607.18112) · [PEMOLA](https://github.com/wenbo-wei/PEMOLA) · [Mask DINO source](https://github.com/wenbo-wei/MaskDINO)
19
+
20
+ ResNet-50 checkpoint for the PEMOLA paper's Mask DINO + PEMOLA model. Training schedule: 31,174 iterations, batch size 48.
21
+
22
+ ## Paper results
23
+
24
+ | PQ | PQTh | PQSt | APTh_pan | mIoU_pan |
25
+ | ---: | ---: | ---: | ---: | ---: |
26
+ | 44.8 | 49.4 | 37.8 | 34.2 | 55.3 |
27
+
28
+ ## Download and evaluate
29
+
30
+ Use the dedicated [Mask DINO implementation](https://github.com/wenbo-wei/MaskDINO) and its installation instructions. Run from that repository after preparing COCO-OLAC:
31
+
32
+ ```bash
33
+ hf download weiwb/PEMOLA \
34
+ --include "pemola-maskdino-coco-olac/*" \
35
+ --local-dir checkpoints
36
+
37
+ export DETECTRON2_DATASETS=datasets/data
38
+ python train_net.py \
39
+ --config-file checkpoints/pemola-maskdino-coco-olac/config.yaml \
40
+ --num-gpus 1 \
41
+ --eval-only \
42
+ MODEL.WEIGHTS checkpoints/pemola-maskdino-coco-olac/model_final.pth \
43
+ DATASETS.TEST '("coco_olac_val",)'
44
+ ```
45
+
46
+ PEMOLA uses per-image CAM tensors and `low` / `mid` / `high` occlusion labels. Place these at `datasets/data/coco_olac_cam/cam_pt_val/` and `datasets/data/coco_olac/val/occlusion_label_val.json`.
47
+
48
+ The configuration uses the implementation's `MODEL.OAM` options, with `PE_MODULATION: true`.
49
+
50
+ ## Files
51
+
52
+ - `model_final.pth`: model state dictionary under the `model` key.
53
+ - `config.yaml`: configuration for this checkpoint.
54
+ - `LICENSE`: Apache License 2.0, following the Mask DINO source project.
55
+
56
+ ## Citation
57
+
58
+ ```bibtex
59
+ @inproceedings{wei2026pemola,
60
+ title = {Occlusion-Aware Panoptic Segmentation with Joint Position Embedding and Occlusion-Level Attention},
61
+ author = {Wei, Wenbo and Wang, Jun and Raza, Shan and Bhalerao, Abhir},
62
+ booktitle = {IEEE International Conference on Multimedia and Expo (ICME)},
63
+ year = {2026}
64
+ }
65
+ ```
pemola-maskdino-coco-olac/config.yaml ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CUDNN_BENCHMARK: false
2
+ DATALOADER:
3
+ ASPECT_RATIO_GROUPING: true
4
+ FILTER_EMPTY_ANNOTATIONS: true
5
+ NUM_WORKERS: 16
6
+ REPEAT_SQRT: true
7
+ REPEAT_THRESHOLD: 0.0
8
+ SAMPLER_TRAIN: TrainingSampler
9
+ DATASETS:
10
+ PRECOMPUTED_PROPOSAL_TOPK_TEST: 1000
11
+ PRECOMPUTED_PROPOSAL_TOPK_TRAIN: 2000
12
+ PROPOSAL_FILES_TEST: []
13
+ PROPOSAL_FILES_TRAIN: []
14
+ TEST:
15
+ - coco_olac_val_low
16
+ - coco_olac_val_mid
17
+ - coco_olac_val_high
18
+ - coco_olac_val
19
+ TRAIN:
20
+ - coco_olac_train
21
+ Default_loading: true
22
+ FLOAT32_PRECISION: ''
23
+ GLOBAL:
24
+ HACK: 1.0
25
+ INPUT:
26
+ COLOR_AUG_SSD: false
27
+ CROP:
28
+ ENABLED: false
29
+ SINGLE_CATEGORY_MAX_AREA: 1.0
30
+ SIZE:
31
+ - 0.9
32
+ - 0.9
33
+ TYPE: relative_range
34
+ DATASET_MAPPER_NAME: coco_olac_panoptic_lsj
35
+ FORMAT: RGB
36
+ IMAGE_SIZE: 512
37
+ MASK_FORMAT: polygon
38
+ MAX_SCALE: 2.0
39
+ MAX_SIZE_TEST: 666
40
+ MAX_SIZE_TRAIN: 1333
41
+ MIN_SCALE: 0.1
42
+ MIN_SIZE_TEST: 400
43
+ MIN_SIZE_TRAIN:
44
+ - 800
45
+ MIN_SIZE_TRAIN_SAMPLING: choice
46
+ RANDOM_FLIP: horizontal
47
+ SIZE_DIVISIBILITY: -1
48
+ MODEL:
49
+ ANCHOR_GENERATOR:
50
+ ANGLES:
51
+ - - -90
52
+ - 0
53
+ - 90
54
+ ASPECT_RATIOS:
55
+ - - 0.5
56
+ - 1.0
57
+ - 2.0
58
+ NAME: DefaultAnchorGenerator
59
+ OFFSET: 0.0
60
+ SIZES:
61
+ - - 32
62
+ - 64
63
+ - 128
64
+ - 256
65
+ - 512
66
+ BACKBONE:
67
+ FREEZE_AT: 0
68
+ NAME: build_resnet_backbone
69
+ DEVICE: cuda
70
+ FPN:
71
+ FUSE_TYPE: sum
72
+ IN_FEATURES: []
73
+ NORM: ''
74
+ OUT_CHANNELS: 256
75
+ KEYPOINT_ON: false
76
+ LOAD_PROPOSALS: false
77
+ MASK_ON: false
78
+ META_ARCHITECTURE: MaskDINO
79
+ MaskDINO:
80
+ BOX_LOSS: true
81
+ BOX_WEIGHT: 5.0
82
+ CLASS_WEIGHT: 4.0
83
+ COST_BOX_WEIGHT: 5.0
84
+ COST_CLASS_WEIGHT: 4.0
85
+ COST_DICE_WEIGHT: 5.0
86
+ COST_GIOU_WEIGHT: 2.0
87
+ COST_MASK_WEIGHT: 5.0
88
+ DEC_LAYERS: 9
89
+ DEEP_SUPERVISION: true
90
+ DICE_WEIGHT: 5.0
91
+ DIM_FEEDFORWARD: 2048
92
+ DN: seg
93
+ DN_NOISE_SCALE: 0.4
94
+ DN_NUM: 100
95
+ DROPOUT: 0.0
96
+ ENC_LAYERS: 0
97
+ ENFORCE_INPUT_PROJ: false
98
+ EVAL_FLAG: 1
99
+ GIOU_WEIGHT: 2.0
100
+ HIDDEN_DIM: 256
101
+ IMPORTANCE_SAMPLE_RATIO: 0.75
102
+ INITIALIZE_BOX_TYPE: 'no'
103
+ INITIAL_PRED: true
104
+ LEARN_TGT: false
105
+ MASK_WEIGHT: 5.0
106
+ NHEADS: 8
107
+ NO_OBJECT_WEIGHT: 0.1
108
+ NUM_OBJECT_QUERIES: 300
109
+ OVERSAMPLE_RATIO: 3.0
110
+ PANO_BOX_LOSS: false
111
+ PRED_CONV: false
112
+ PRE_NORM: false
113
+ SEMANTIC_CE_LOSS: false
114
+ SIZE_DIVISIBILITY: 32
115
+ TEST:
116
+ INSTANCE_ON: true
117
+ OBJECT_MASK_THRESHOLD: 0.25
118
+ OVERLAP_THRESHOLD: 0.8
119
+ PANOPTIC_ON: true
120
+ PANO_TEMPERATURE: 0.06
121
+ PANO_TRANSFORM_EVAL: true
122
+ SEMANTIC_ON: true
123
+ SEM_SEG_POSTPROCESSING_BEFORE_INFERENCE: false
124
+ TEST_FOUCUS_ON_BOX: false
125
+ TRAIN_NUM_POINTS: 12544
126
+ TRANSFORMER_DECODER_NAME: MaskDINODecoder
127
+ TWO_STAGE: true
128
+ OAM:
129
+ CAM_ONLY: false
130
+ EMBED_ONLY: false
131
+ PE_MODULATION: true
132
+ TRANS_DECODER_PE_MOD: false
133
+ PANOPTIC_FPN:
134
+ COMBINE:
135
+ ENABLED: true
136
+ INSTANCES_CONFIDENCE_THRESH: 0.5
137
+ OVERLAP_THRESH: 0.5
138
+ STUFF_AREA_LIMIT: 4096
139
+ INSTANCE_LOSS_WEIGHT: 1.0
140
+ PIXEL_MEAN:
141
+ - 123.675
142
+ - 116.28
143
+ - 103.53
144
+ PIXEL_STD:
145
+ - 58.395
146
+ - 57.12
147
+ - 57.375
148
+ PROPOSAL_GENERATOR:
149
+ MIN_SIZE: 0
150
+ NAME: RPN
151
+ RESNETS:
152
+ DEFORM_MODULATED: false
153
+ DEFORM_NUM_GROUPS: 1
154
+ DEFORM_ON_PER_STAGE:
155
+ - false
156
+ - false
157
+ - false
158
+ - false
159
+ DEPTH: 50
160
+ NORM: FrozenBN
161
+ NUM_GROUPS: 1
162
+ OUT_FEATURES:
163
+ - res2
164
+ - res3
165
+ - res4
166
+ - res5
167
+ RES2_OUT_CHANNELS: 256
168
+ RES4_DILATION: 1
169
+ RES5_DILATION: 1
170
+ RES5_MULTI_GRID:
171
+ - 1
172
+ - 1
173
+ - 1
174
+ STEM_OUT_CHANNELS: 64
175
+ STEM_TYPE: basic
176
+ STRIDE_IN_1X1: false
177
+ WIDTH_PER_GROUP: 64
178
+ RETINANET:
179
+ BBOX_REG_LOSS_TYPE: smooth_l1
180
+ BBOX_REG_WEIGHTS: &id002
181
+ - 1.0
182
+ - 1.0
183
+ - 1.0
184
+ - 1.0
185
+ FOCAL_LOSS_ALPHA: 0.25
186
+ FOCAL_LOSS_GAMMA: 2.0
187
+ IN_FEATURES:
188
+ - p3
189
+ - p4
190
+ - p5
191
+ - p6
192
+ - p7
193
+ IOU_LABELS:
194
+ - 0
195
+ - -1
196
+ - 1
197
+ IOU_THRESHOLDS:
198
+ - 0.4
199
+ - 0.5
200
+ NMS_THRESH_TEST: 0.5
201
+ NORM: ''
202
+ NUM_CLASSES: 80
203
+ NUM_CONVS: 4
204
+ PRIOR_PROB: 0.01
205
+ SCORE_THRESH_TEST: 0.05
206
+ SMOOTH_L1_LOSS_BETA: 0.1
207
+ TOPK_CANDIDATES_TEST: 1000
208
+ ROI_BOX_CASCADE_HEAD:
209
+ BBOX_REG_WEIGHTS:
210
+ - &id001
211
+ - 10.0
212
+ - 10.0
213
+ - 5.0
214
+ - 5.0
215
+ - - 20.0
216
+ - 20.0
217
+ - 10.0
218
+ - 10.0
219
+ - - 30.0
220
+ - 30.0
221
+ - 15.0
222
+ - 15.0
223
+ IOUS:
224
+ - 0.5
225
+ - 0.6
226
+ - 0.7
227
+ ROI_BOX_HEAD:
228
+ BBOX_REG_LOSS_TYPE: smooth_l1
229
+ BBOX_REG_LOSS_WEIGHT: 1.0
230
+ BBOX_REG_WEIGHTS: *id001
231
+ CLS_AGNOSTIC_BBOX_REG: false
232
+ CONV_DIM: 256
233
+ FC_DIM: 1024
234
+ FED_LOSS_FREQ_WEIGHT_POWER: 0.5
235
+ FED_LOSS_NUM_CLASSES: 50
236
+ NAME: ''
237
+ NORM: ''
238
+ NUM_CONV: 0
239
+ NUM_FC: 0
240
+ POOLER_RESOLUTION: 14
241
+ POOLER_SAMPLING_RATIO: 0
242
+ POOLER_TYPE: ROIAlignV2
243
+ SMOOTH_L1_BETA: 0.0
244
+ TRAIN_ON_PRED_BOXES: false
245
+ USE_FED_LOSS: false
246
+ USE_SIGMOID_CE: false
247
+ ROI_HEADS:
248
+ BATCH_SIZE_PER_IMAGE: 512
249
+ IN_FEATURES:
250
+ - res4
251
+ IOU_LABELS:
252
+ - 0
253
+ - 1
254
+ IOU_THRESHOLDS:
255
+ - 0.5
256
+ NAME: Res5ROIHeads
257
+ NMS_THRESH_TEST: 0.5
258
+ NUM_CLASSES: 80
259
+ POSITIVE_FRACTION: 0.25
260
+ PROPOSAL_APPEND_GT: true
261
+ SCORE_THRESH_TEST: 0.05
262
+ ROI_KEYPOINT_HEAD:
263
+ CONV_DIMS:
264
+ - 512
265
+ - 512
266
+ - 512
267
+ - 512
268
+ - 512
269
+ - 512
270
+ - 512
271
+ - 512
272
+ LOSS_WEIGHT: 1.0
273
+ MIN_KEYPOINTS_PER_IMAGE: 1
274
+ NAME: KRCNNConvDeconvUpsampleHead
275
+ NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS: true
276
+ NUM_KEYPOINTS: 17
277
+ POOLER_RESOLUTION: 14
278
+ POOLER_SAMPLING_RATIO: 0
279
+ POOLER_TYPE: ROIAlignV2
280
+ ROI_MASK_HEAD:
281
+ CLS_AGNOSTIC_MASK: false
282
+ CONV_DIM: 256
283
+ NAME: MaskRCNNConvUpsampleHead
284
+ NORM: ''
285
+ NUM_CONV: 0
286
+ POOLER_RESOLUTION: 14
287
+ POOLER_SAMPLING_RATIO: 0
288
+ POOLER_TYPE: ROIAlignV2
289
+ RPN:
290
+ BATCH_SIZE_PER_IMAGE: 256
291
+ BBOX_REG_LOSS_TYPE: smooth_l1
292
+ BBOX_REG_LOSS_WEIGHT: 1.0
293
+ BBOX_REG_WEIGHTS: *id002
294
+ BOUNDARY_THRESH: -1
295
+ CONV_DIMS:
296
+ - -1
297
+ HEAD_NAME: StandardRPNHead
298
+ IN_FEATURES:
299
+ - res4
300
+ IOU_LABELS:
301
+ - 0
302
+ - -1
303
+ - 1
304
+ IOU_THRESHOLDS:
305
+ - 0.3
306
+ - 0.7
307
+ LOSS_WEIGHT: 1.0
308
+ NMS_THRESH: 0.7
309
+ POSITIVE_FRACTION: 0.5
310
+ POST_NMS_TOPK_TEST: 1000
311
+ POST_NMS_TOPK_TRAIN: 2000
312
+ PRE_NMS_TOPK_TEST: 6000
313
+ PRE_NMS_TOPK_TRAIN: 12000
314
+ SMOOTH_L1_BETA: 0.0
315
+ SEM_SEG_HEAD:
316
+ ASPP_CHANNELS: 256
317
+ ASPP_DILATIONS:
318
+ - 6
319
+ - 12
320
+ - 18
321
+ ASPP_DROPOUT: 0.1
322
+ COMMON_STRIDE: 4
323
+ CONVS_DIM: 256
324
+ DEFORMABLE_TRANSFORMER_ENCODER_IN_FEATURES:
325
+ - res3
326
+ - res4
327
+ - res5
328
+ DEFORMABLE_TRANSFORMER_ENCODER_N_HEADS: 8
329
+ DEFORMABLE_TRANSFORMER_ENCODER_N_POINTS: 4
330
+ DIM_FEEDFORWARD: 2048
331
+ FEATURE_ORDER: low2high
332
+ IGNORE_VALUE: 255
333
+ IN_FEATURES:
334
+ - res2
335
+ - res3
336
+ - res4
337
+ - res5
338
+ LOSS_TYPE: hard_pixel_mining
339
+ LOSS_WEIGHT: 1.0
340
+ MASK_DIM: 256
341
+ NAME: MaskDINOHead
342
+ NORM: GN
343
+ NUM_CLASSES: 133
344
+ NUM_FEATURE_LEVELS: 3
345
+ PIXEL_DECODER_NAME: MaskDINOEncoder
346
+ PROJECT_CHANNELS:
347
+ - 48
348
+ PROJECT_FEATURES:
349
+ - res2
350
+ TOTAL_NUM_FEATURE_LEVELS: 4
351
+ TRANSFORMER_ENC_LAYERS: 6
352
+ USE_DEPTHWISE_SEPARABLE_CONV: false
353
+ SWIN:
354
+ APE: false
355
+ ATTN_DROP_RATE: 0.0
356
+ DEPTHS:
357
+ - 2
358
+ - 2
359
+ - 6
360
+ - 2
361
+ DROP_PATH_RATE: 0.3
362
+ DROP_RATE: 0.0
363
+ EMBED_DIM: 96
364
+ MLP_RATIO: 4.0
365
+ NUM_HEADS:
366
+ - 3
367
+ - 6
368
+ - 12
369
+ - 24
370
+ OUT_FEATURES:
371
+ - res2
372
+ - res3
373
+ - res4
374
+ - res5
375
+ PATCH_NORM: true
376
+ PATCH_SIZE: 4
377
+ PRETRAIN_IMG_SIZE: 224
378
+ QKV_BIAS: true
379
+ QK_SCALE: null
380
+ USE_CHECKPOINT: false
381
+ WINDOW_SIZE: 7
382
+ WEIGHTS: ./model_final.pth
383
+ OUTPUT_DIR: ./output/pemola_maskdino_r50
384
+ SEED: 618
385
+ SOLVER:
386
+ AMP:
387
+ ENABLED: true
388
+ BACKBONE_MULTIPLIER: 0.1
389
+ BASE_LR: 0.0003
390
+ BASE_LR_END: 0.0
391
+ BIAS_LR_FACTOR: 1.0
392
+ CHECKPOINT_PERIOD: 5000
393
+ CLIP_GRADIENTS:
394
+ CLIP_TYPE: full_model
395
+ CLIP_VALUE: 0.01
396
+ ENABLED: true
397
+ NORM_TYPE: 2.0
398
+ GAMMA: 0.1
399
+ IMS_PER_BATCH: 48
400
+ LR_SCHEDULER_NAME: WarmupMultiStepLR
401
+ MAX_ITER: 31174
402
+ MOMENTUM: 0.9
403
+ NESTEROV: false
404
+ NUM_DECAYS: 3
405
+ OPTIMIZER: ADAMW
406
+ POLY_LR_CONSTANT_ENDING: 0.0
407
+ POLY_LR_POWER: 0.9
408
+ REFERENCE_WORLD_SIZE: 0
409
+ RESCALE_INTERVAL: false
410
+ STEPS:
411
+ - 28057
412
+ - 29615
413
+ WARMUP_FACTOR: 1.0
414
+ WARMUP_ITERS: 10
415
+ WARMUP_METHOD: linear
416
+ WEIGHT_DECAY: 0.05
417
+ WEIGHT_DECAY_BIAS: null
418
+ WEIGHT_DECAY_EMBED: 0.0
419
+ WEIGHT_DECAY_NORM: 0.0
420
+ TEST:
421
+ AUG:
422
+ ENABLED: false
423
+ FLIP: true
424
+ MAX_SIZE: 4000
425
+ MIN_SIZES:
426
+ - 400
427
+ - 500
428
+ - 600
429
+ - 700
430
+ - 800
431
+ - 900
432
+ - 1000
433
+ - 1100
434
+ - 1200
435
+ DETECTIONS_PER_IMAGE: 100
436
+ EVAL_PERIOD: 50000
437
+ EXPECTED_RESULTS: []
438
+ KEYPOINT_OKS_SIGMAS: []
439
+ PRECISE_BN:
440
+ ENABLED: false
441
+ NUM_ITER: 200
442
+ VERSION: 2
443
+ VIS_PERIOD: 0
pemola-maskdino-coco-olac/model_final.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6031f05321e3701e5f2850f7fc6d6fbc6ef943aa32f842f681ac37221d061d7f
3
+ size 209023681
pemola-occlusion-swin-l/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2022 Meta, Inc.
2
+ Copyright (c) 2026 Wenbo Wei (modifications)
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
pemola-occlusion-swin-l/README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ library_name: pytorch
6
+ pipeline_tag: image-classification
7
+ tags:
8
+ - vision
9
+ - image-classification
10
+ - swin-transformer
11
+ - pemola
12
+ - occlusion-classification
13
+ - coco-olac
14
+ - arxiv:2607.18112
15
+ ---
16
+
17
+ # PEMOLA — Swin-L 384 occlusion classifier
18
+
19
+ [Paper](https://arxiv.org/abs/2607.18112) · [PEMOLA](https://github.com/wenbo-wei/PEMOLA)
20
+
21
+ Swin-L with 384 × 384 input, window size 12, and three outputs: `0 = low`, `1 = mid`, `2 = high`.
22
+
23
+ ## Paper results
24
+
25
+ | Dataset | Split | Top-1 (%) |
26
+ | --- | --- | ---: |
27
+ | COCO-OLAC | test, black background | 75.3 |
28
+ | Cityscapes-OLAC | validation, black background | 86.2 |
29
+
30
+ ## Download and classify
31
+
32
+ Install the [PEMOLA environment](https://github.com/wenbo-wei/PEMOLA#installation), then run from its repository root on one GPU:
33
+
34
+ ```bash
35
+ hf download weiwb/PEMOLA \
36
+ --include "pemola-occlusion-swin-l/*" \
37
+ --local-dir checkpoints
38
+
39
+ mkdir -p output/occlusion-inference
40
+ printf '{}\n' > output/occlusion-inference/empty_labels.json
41
+
42
+ torchrun --standalone --nnodes=1 --nproc_per_node=1 \
43
+ occ_cls_predict.py \
44
+ --cfg checkpoints/pemola-occlusion-swin-l/config.yaml \
45
+ --resume checkpoints/pemola-occlusion-swin-l/ep29.pth \
46
+ --data_path /path/to/images_blackbg \
47
+ --occlusion_ann output/occlusion-inference/empty_labels.json \
48
+ --batch_size 1 \
49
+ --output output/occlusion-inference \
50
+ --tag prediction
51
+ ```
52
+
53
+ Input images go in a flat directory. The empty label JSON requests predictions for every image. Predictions are written to `output/occlusion-inference/swin_large_patch4_window12_384_22kto1k_finetune/prediction/prediction.json` as `{"image": "mid"}`.
54
+
55
+ Preprocessing: RGB, bicubic resize to 384 × 384, ImageNet normalization, no crop. Use background-blackened images as in the paper.
56
+
57
+ ## Generate CAMs
58
+
59
+ Provide matching filenames in `/path/to/images` and `/path/to/images_blackbg`, plus a label JSON keyed by image ID:
60
+
61
+ ```bash
62
+ torchrun --standalone --nnodes=1 --nproc_per_node=1 \
63
+ occ_cls_draw_cam.py \
64
+ --cfg checkpoints/pemola-occlusion-swin-l/config.yaml \
65
+ --resume checkpoints/pemola-occlusion-swin-l/ep29.pth \
66
+ --dataset coco \
67
+ --data_path /path/to/images \
68
+ --occlusion_ann /path/to/occlusion_labels.json \
69
+ --batch_size 1 \
70
+ --output output/occlusion-inference \
71
+ --tag cam
72
+ ```
73
+
74
+ CAM tensors are written to `output/occlusion-inference/swin_large_patch4_window12_384_22kto1k_finetune/cam/cam_pt/`. Supply them and the label JSON to the segmentation predictor. For Cityscapes, align the `_leftImg8bit` suffix with the predictor's image keys.
75
+
76
+ ## Files
77
+
78
+ - `ep29.pth`: model state dictionary under the `model` key.
79
+ - `config.yaml`: classifier configuration.
80
+ - `LICENSE`: MIT license.
81
+
82
+ ## Citation
83
+
84
+ ```bibtex
85
+ @inproceedings{wei2026pemola,
86
+ title = {Occlusion-Aware Panoptic Segmentation with Joint Position Embedding and Occlusion-Level Attention},
87
+ author = {Wei, Wenbo and Wang, Jun and Raza, Shan and Bhalerao, Abhir},
88
+ booktitle = {IEEE International Conference on Multimedia and Expo (ICME)},
89
+ year = {2026}
90
+ }
91
+ ```
pemola-occlusion-swin-l/config.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ DATA:
2
+ BATCH_SIZE: 32
3
+ IMG_SIZE: 384
4
+ DATASET: coco_olac_cls
5
+ MODEL:
6
+ TYPE: swin
7
+ NAME: swin_large_patch4_window12_384_22kto1k_finetune
8
+ DROP_PATH_RATE: 0.2
9
+ NUM_CLASSES: 3
10
+ SWIN:
11
+ EMBED_DIM: 192
12
+ DEPTHS: [ 2, 2, 18, 2 ]
13
+ NUM_HEADS: [ 6, 12, 24, 48 ]
14
+ WINDOW_SIZE: 12
15
+ TRAIN:
16
+ EPOCHS: 30
17
+ WARMUP_EPOCHS: 5
18
+ WEIGHT_DECAY: 1e-8
19
+ BASE_LR: 7.6e-05
20
+ WARMUP_LR: 5.6e-08
21
+ MIN_LR: 7.6e-07
22
+ TEST:
23
+ CROP: False
pemola-occlusion-swin-l/ep29.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7250dc03ef40141bfb35360377ee37cbc94c1d048064b38264d3f6fc73091a7e
3
+ size 794547161