question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Train on custom dataset for panoptic segmentation

See original GitHub issue

I‘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 and prepare_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, in dataset_dict.
  • Configure file not well modified: Another reason maybe model not convergen. Is there any configuration like Mask-RCNN’s anchor size or ratio 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:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
bowenc0221commented, Jan 13, 2022

The overlap is calculated with mask instead of box.

0reactions
unanancommented, Oct 26, 2022

@JasonRichard Hi! Did you resolve this problem?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found