Skip to content

Commit aa17b01

Browse files
author
Val Brodsky
committed
Fix get_label_pairs import as per PR review
1 parent 0b87dc7 commit aa17b01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/integrations/detectron2/coco_object.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
" feature_miou_metric, \n",
117117
" feature_confusion_matrix_metric\n",
118118
")\n",
119+
"from labelbox.data.metrics.group import get_label_pairs\n",
119120
"\n",
120121
"with open('./coco_utils.py', 'w' ) as file:\n",
121122
" helper = requests.get(\"https://raw.githubusercontent.com/Labelbox/labelbox-python/master/examples/integrations/detectron2/coco_utils.py\").text\n",
@@ -460,7 +461,7 @@
460461
{
461462
"metadata": {},
462463
"source": [
463-
"pairs = lb.get_label_pairs(val_labels, labels_mea, filter_mismatch = True)\n",
464+
"pairs = get_label_pairs(val_labels, labels_mea, filter_mismatch = True)\n",
464465
"for (ground_truth, prediction) in pairs.values():\n",
465466
" metrics = []\n",
466467
" metrics.extend(feature_miou_metric(ground_truth.annotations, prediction.annotations))\n",

0 commit comments

Comments
 (0)