Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
59e29be3
Unverified
Commit
59e29be3
authored
Oct 17, 2022
by
Spacefish
Committed by
GitHub
Oct 17, 2022
Browse files
object-detection instead of object_detection (#19677)
parent
aa629e7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.md
README.md
+1
-1
No files found.
README.md
View file @
59e29be3
...
@@ -134,7 +134,7 @@ Many tasks have a pre-trained `pipeline` ready to go, in NLP but also in compute
...
@@ -134,7 +134,7 @@ Many tasks have a pre-trained `pipeline` ready to go, in NLP but also in compute
>>>
image
=
Image
.
open
(
image_data
)
>>>
image
=
Image
.
open
(
image_data
)
# Allocate a pipeline for object detection
# Allocate a pipeline for object detection
>>>
object_detector
=
pipeline
(
'object
_
detection'
)
>>>
object_detector
=
pipeline
(
'object
-
detection'
)
>>>
object_detector
(
image
)
>>>
object_detector
(
image
)
[{
'score'
:
0.9982201457023621
,
[{
'score'
:
0.9982201457023621
,
'label'
:
'remote'
,
'label'
:
'remote'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment