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
39e76d76
Unverified
Commit
39e76d76
authored
Aug 01, 2022
by
NielsRogge
Committed by
GitHub
Aug 01, 2022
Browse files
Fix doc tests (#18397)
Co-authored-by:
Niels Rogge
<
nielsrogge@Nielss-MacBook-Pro.local
>
parent
11413711
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/detr/modeling_detr.py
src/transformers/models/detr/modeling_detr.py
+1
-1
No files found.
src/transformers/models/detr/modeling_detr.py
View file @
39e76d76
...
@@ -1419,7 +1419,7 @@ class DetrForObjectDetection(DetrPreTrainedModel):
...
@@ -1419,7 +1419,7 @@ class DetrForObjectDetection(DetrPreTrainedModel):
... if score > 0.9:
... if score > 0.9:
... print(
... print(
... f"Detected {model.config.id2label[label.item()]} with confidence "
... f"Detected {model.config.id2label[label.item()]} with confidence "
... f"{round(score.item(), 3)} at location {box}
.
"
... f"{round(score.item(), 3)} at location {box}"
... )
... )
Detected remote with confidence 0.998 at location [40.16, 70.81, 175.55, 117.98]
Detected remote with confidence 0.998 at location [40.16, 70.81, 175.55, 117.98]
Detected remote with confidence 0.996 at location [333.24, 72.55, 368.33, 187.66]
Detected remote with confidence 0.996 at location [333.24, 72.55, 368.33, 187.66]
...
...
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