Skip to content

Commit

Permalink
update docs for new quickstart attributes (#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehofesmann committed Jun 9, 2022
1 parent 5f028c9 commit aa076d0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
7 changes: 3 additions & 4 deletions docs/source/recipes/adding_detections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@
"text": [
"<Detection: {\n",
" 'id': '602fea44db78a9b44e6ae129',\n",
" 'attributes': BaseDict({\n",
" 'area': <NumericAttribute: {'value': 531.8071000000001}>,\n",
" 'iscrowd': <NumericAttribute: {'value': 0.0}>,\n",
" }),\n",
" 'attributes': BaseDict({}),\n",
" 'label': 'potted plant',\n",
" 'bounding_box': BaseList([\n",
" 0.37028125,\n",
Expand All @@ -153,6 +150,8 @@
" 'mask': None,\n",
" 'confidence': None,\n",
" 'index': None,\n",
" 'area': 531.8071000000001,\n",
" 'iscrowd': 0.0,\n",
"}>\n"
]
}
Expand Down
7 changes: 3 additions & 4 deletions docs/source/tutorials/detection_mistakes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,7 @@
"text": [
"<Detection: {\n",
" 'id': '5f452487ef00e6374aad2744',\n",
" 'attributes': BaseDict({\n",
" 'area': <NumericAttribute: {'value': 16273.3536}>,\n",
" 'iscrowd': <NumericAttribute: {'value': 0.0}>,\n",
" }),\n",
" 'attributes': BaseDict({}),\n",
" 'tags': BaseList([]),\n",
" 'label': 'tv',\n",
" 'bounding_box': BaseList([\n",
Expand All @@ -579,6 +576,8 @@
" 'mask': None,\n",
" 'confidence': None,\n",
" 'index': None,\n",
" 'area': 16273.3536,\n",
" 'iscrowd': 0.0,\n",
" 'mistakenness': 0.005771428346633911,\n",
" 'mistakenness_loc': 0.16955941131917984,\n",
"}>\n"
Expand Down
16 changes: 7 additions & 9 deletions docs/source/tutorials/evaluate_detections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@
"text": [
"<Detection: {\n",
" 'id': '6065d1e04976aab284081d83',\n",
" 'attributes': BaseDict({\n",
" 'area': <NumericAttribute: {'value': 531.8071000000001}>,\n",
" 'iscrowd': <NumericAttribute: {'value': 0.0}>,\n",
" }),\n",
" 'attributes': BaseDict({}),\n",
" 'tags': BaseList([]),\n",
" 'label': 'potted plant',\n",
" 'bounding_box': BaseList([\n",
Expand All @@ -198,6 +195,8 @@
" 'mask': None,\n",
" 'confidence': None,\n",
" 'index': None,\n",
" 'iscrowd': 0.0,\n",
" 'area': 531.8071000000001,\n",
"}>\n"
]
}
Expand Down Expand Up @@ -2433,10 +2432,7 @@
"text": [
"<Detection: {\n",
" 'id': '6065d1e04976aab284081d83',\n",
" 'attributes': BaseDict({\n",
" 'area': <NumericAttribute: {'value': 531.8071000000001}>,\n",
" 'iscrowd': <NumericAttribute: {'value': 0.0}>,\n",
" }),\n",
" 'attributes': BaseDict({}),\n",
" 'tags': BaseList([]),\n",
" 'label': 'potted plant',\n",
" 'bounding_box': BaseList([\n",
Expand All @@ -2448,6 +2444,8 @@
" 'mask': None,\n",
" 'confidence': None,\n",
" 'index': None,\n",
" 'iscrowd': 0.0,\n",
" 'area': 531.8071000000001,\n",
"}>\n"
]
}
Expand Down Expand Up @@ -2549,7 +2547,7 @@
"# Create a view that contains only samples for which at least one detection has \n",
"# its iscrowd attribute set to 1\n",
"crowded_images_view = high_conf_view.match(\n",
" F(\"ground_truth.detections\").filter(F(\"attributes.iscrowd.value\") == 1).length() > 0\n",
" F(\"ground_truth.detections\").filter(F(\"iscrowd\") == 1).length() > 0\n",
")\n",
"\n",
"session.view = crowded_images_view"
Expand Down

0 comments on commit aa076d0

Please sign in to comment.