Skip to content

Commit

Permalink
fixed histogramming
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Feb 15, 2022
1 parent 480865c commit f2dae77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/examples/segnet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def ComputeStats(self):
self.net.Mask(self.class_mask, self.grid_width, self.grid_height)

# compute the number of times each class occurs in the mask
class_histogram, _ = np.histogram(self.class_mask_np, self.num_classes)
class_histogram, _ = np.histogram(self.class_mask_np, bins=self.num_classes, range=(0, self.num_classes-1))

print('grid size: {:d}x{:d}'.format(self.grid_width, self.grid_height))
print('num classes: {:d}'.format(self.num_classes))
Expand Down

0 comments on commit f2dae77

Please sign in to comment.