Skip to content

Commit 73ffdcd

Browse files
committed
Update notebooks
1 parent d329fb2 commit 73ffdcd

File tree

2 files changed

+49
-24
lines changed

2 files changed

+49
-24
lines changed

usage-face-recognition.ipynb

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"cell_type": "markdown",
4545
"metadata": {},
4646
"source": [
47-
"## Object detection"
47+
"## Face API"
4848
]
4949
},
5050
{
@@ -84,7 +84,7 @@
8484
"cell_type": "markdown",
8585
"metadata": {},
8686
"source": [
87-
"Process an image directly"
87+
"Perform face detection"
8888
]
8989
},
9090
{
@@ -146,20 +146,31 @@
146146
]
147147
},
148148
{
149-
"cell_type": "markdown",
149+
"cell_type": "code",
150+
"execution_count": 11,
150151
"metadata": {},
152+
"outputs": [
153+
{
154+
"data": {
155+
"text/plain": [
156+
"2"
157+
]
158+
},
159+
"execution_count": 11,
160+
"metadata": {},
161+
"output_type": "execute_result"
162+
}
163+
],
151164
"source": [
152-
"## Helper functions\n",
153-
"The package provides helper functions for extracting info out of deepstack predictions"
165+
"len(dsface.predictions)"
154166
]
155167
},
156168
{
157-
"cell_type": "code",
158-
"execution_count": null,
169+
"cell_type": "markdown",
159170
"metadata": {},
160-
"outputs": [],
161171
"source": [
162-
"# help(ds)"
172+
"## Helper functions\n",
173+
"The package provides helper functions for extracting info out of deepstack predictions"
163174
]
164175
},
165176
{

usage-object-detection.ipynb

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"cell_type": "markdown",
8787
"metadata": {},
8888
"source": [
89-
"Process an image directly"
89+
"Perform object detection"
9090
]
9191
},
9292
{
@@ -156,20 +156,31 @@
156156
]
157157
},
158158
{
159-
"cell_type": "markdown",
159+
"cell_type": "code",
160+
"execution_count": 14,
160161
"metadata": {},
162+
"outputs": [
163+
{
164+
"data": {
165+
"text/plain": [
166+
"3"
167+
]
168+
},
169+
"execution_count": 14,
170+
"metadata": {},
171+
"output_type": "execute_result"
172+
}
173+
],
161174
"source": [
162-
"## Helper functions\n",
163-
"The package provides helper functions for extracting info out of deepstack predictions"
175+
"len(dsobject.predictions)"
164176
]
165177
},
166178
{
167-
"cell_type": "code",
168-
"execution_count": 8,
179+
"cell_type": "markdown",
169180
"metadata": {},
170-
"outputs": [],
171181
"source": [
172-
"# help(ds)"
182+
"## Helper functions\n",
183+
"The package provides helper functions for extracting info out of deepstack predictions"
173184
]
174185
},
175186
{
@@ -284,20 +295,23 @@
284295
},
285296
{
286297
"cell_type": "code",
287-
"execution_count": 13,
298+
"execution_count": 16,
288299
"metadata": {},
289300
"outputs": [
290301
{
291-
"name": "stdout",
292-
"output_type": "stream",
293-
"text": [
294-
"1\n"
295-
]
302+
"data": {
303+
"text/plain": [
304+
"1"
305+
]
306+
},
307+
"execution_count": 16,
308+
"metadata": {},
309+
"output_type": "execute_result"
296310
}
297311
],
298312
"source": [
299313
"CONFIDENCE_THRESHOLD = 0.9997\n",
300-
"print(len(ds.get_confidences_above_threshold(confidences, CONFIDENCE_THRESHOLD)))"
314+
"len(ds.get_confidences_above_threshold(confidences, CONFIDENCE_THRESHOLD))"
301315
]
302316
},
303317
{

0 commit comments

Comments
 (0)