Unverified Commit 59e29be3 authored by Spacefish's avatar Spacefish Committed by GitHub
Browse files

object-detection instead of object_detection (#19677)

parent aa629e7a
...@@ -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',
......
Markdown is supported
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