Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
de1ca3a0
"tests/vscode:/vscode.git/clone" did not exist on "6f90c29eaaba898919b7689ab7e2cfce1604cdb8"
Unverified
Commit
de1ca3a0
authored
Jan 24, 2023
by
Steven Liu
Committed by
GitHub
Jan 24, 2023
Browse files
Update expected values for doctest (#21284)
update expected values
parent
1f981215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
docs/source/en/task_summary.mdx
docs/source/en/task_summary.mdx
+9
-9
No files found.
docs/source/en/task_summary.mdx
View file @
de1ca3a0
...
...
@@ -85,11 +85,11 @@ Image classification labels an entire image from a predefined set of classes. Li
... )
>>> preds = [{"score": round(pred["score"], 4), "label": pred["label"]} for pred in preds]
>>> print(*preds, sep="\n")
{'score': 0.4
403
, 'label': 'lynx, catamount'}
{'score': 0.034
3
, 'label': 'cougar, puma, catamount, mountain lion, painter, panther, Felis concolor'}
{'score': 0.032
1
, 'label': 'snow leopard, ounce, Panthera uncia'}
{'score': 0.023
5
, 'label': 'Egyptian cat'}
{'score': 0.02
3
, 'label': 'tiger cat'}
{'score': 0.4
335
, 'label': 'lynx, catamount'}
{'score': 0.034
8
, 'label': 'cougar, puma, catamount, mountain lion, painter, panther, Felis concolor'}
{'score': 0.032
4
, 'label': 'snow leopard, ounce, Panthera uncia'}
{'score': 0.023
9
, 'label': 'Egyptian cat'}
{'score': 0.02
29
, 'label': 'tiger cat'}
```
### Object detection
...
...
@@ -131,10 +131,10 @@ Segmentation tasks are helpful in self-driving vehicles to create a pixel-level
... "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg"
... )
>>> preds = [{"score": round(pred["score"], 4), "label": pred["label"]} for pred in preds]
>>> pr
eds
[
{'score': 0.98
56
, 'label': 'LABEL_184'}
,
{'score': 0.997
6
, 'label': 'snow'}
,
{'score': 0.99
6
2, 'label': 'cat'}
]
>>> pr
int(*preds, sep="\n")
{'score': 0.98
79
, 'label': 'LABEL_184'}
{'score': 0.997
3
, 'label': 'snow'}
{'score': 0.99
7
2, 'label': 'cat'}
```
### Depth estimation
...
...
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