Train on custom dataset for panoptic segmentation
See original GitHub issueI‘ve been trying to used it for a nuclei panoptic segmentation task. Dataset is prepared like ADE20K panoptic do. However, in evalutaion, it doesn’t proposed any instance after a period time of training.
File “/home/—/anaconda3/envs/mask2former/lib/python3.8/site-packages/panopticapi/evaluation.py”, line 224, in pq_compute results[name], per_class_results = pq_stat.pq_average(categories, isthing=isthing) File “/home/—/anaconda3/envs/mask2former/lib/python3.8/site-packages/panopticapi/evaluation.py”, line 73, in pq_average return {‘pq’: pq / n, ‘sq’: sq / n, ‘rq’: rq / n, ‘n’: n}, per_class_results ZeroDivisionError: division by zero
There several possible reasons accounting for it I assume:
- Dataset not well prepared: Are semantic and instance images label folder a must for panoptic? The labeled data I owned is not Detectorn2 format. But I referred to
prepare_ade20k_sem_seg
,prepare_ade20k_ins_seg
andprepare_ade20k_pan_seg
. Converted the labeled data to panoptic images (in a folder) and label json file. Commented the line"sem_seg_file_name": sem_label_file,
indataset_dict
. - Configure file not well modified: Another reason maybe model not convergen. Is there any configuration like Mask-RCNN’s
anchor size
orratio
in panopitc segmentation? Because nuclei in whole slide images (crop multiple patches in size 256*256, with one nuclei around (8~16)*(8~16) pixels) is rather small compared to common things in a natural image captioned by camera.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
train Panoptic Segmentation model on custom dataset #1691
How to train Panoptic Segmentation on a custom dataset ? Hello everyone, My question is two-fold : What is the expected Detectron2 format ......
Read more >Training models with Panoptic Segmentation in Detectron2
Tutorial on how to train your own models with panoptic segmentation in Detectron2.
Read more >Panoptic Segmentation: Definition, Datasets & Tutorial [2022]
Panoptic segmentation is the task of simultaneously segmenting objects and classifying them into categories. Discover different approaches to the task.
Read more >Fine-Tune a Semantic Segmentation Model with a Custom ...
1. Create/choose a dataset ... The first step in any ML project is assembling a good dataset. In order to train a semantic...
Read more >Introduction to Panoptic Segmentation: A Tutorial
In instance segmentation, we care about segmentation of the instances of objects separately. The panoptic segmentation combines semantic and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The overlap is calculated with mask instead of box.
@JasonRichard Hi! Did you resolve this problem?