Skip to content

Commit

Permalink
correctly update region class stats in seg dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
mittagessen committed Feb 9, 2024
1 parent ef324e0 commit e654cf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kraken/lib/dataset/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def add(self, doc: 'Segmentation'):
if reg_type not in self.class_mapping['regions']:
self.num_classes += 1
self.class_mapping['regions'][reg_type] = self.num_classes - 1
self.class_stats['regions'][reg_type] += 1
self.targets.append({'baselines': baselines_, 'regions': regions_})
self.imgs.append(doc.imagename)

Expand Down

0 comments on commit e654cf6

Please sign in to comment.