Skip to content
Snippets Groups Projects
Commit 01d38994 authored by hexiangdong2019's avatar hexiangdong2019
Browse files

查看miou计算函数的中间步骤

parent 536829c8
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@ class IOUMetric:
self.hist = np.zeros((num_classes, num_classes))
def _fast_hist(self, label_pred, label_true):
print(label_pred.shape)
print(label_true.shape)
mask = np.bitwise_and(label_true >= 0, label_true < self.num_classes)
print(label_true[mask].shape)
print(label_pred[mask].shape)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment