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
449894d2
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "3e39fd09a9c4d78bc2088777d3255789cf2acac8"
Unverified
Commit
449894d2
authored
May 13, 2024
by
Jacky Lee
Committed by
GitHub
May 14, 2024
Browse files
Fix OWLv2 Doc (#30794)
fix: owlv2 doc
parent
37bba2a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/en/model_doc/owlv2.md
docs/source/en/model_doc/owlv2.md
+2
-2
No files found.
docs/source/en/model_doc/owlv2.md
View file @
449894d2
...
...
@@ -64,8 +64,8 @@ OWLv2 is, just like its predecessor [OWL-ViT](owlvit), a zero-shot text-conditio
>>>
for
box
,
score
,
label
in
zip
(
boxes
,
scores
,
labels
):
...
box
=
[
round
(
i
,
2
)
for
i
in
box
.
tolist
()]
...
print
(
f
"Detected
{
text
[
label
]
}
with confidence
{
round
(
score
.
item
(),
3
)
}
at location
{
box
}
"
)
Detected
a
photo
of
a
cat
with
confidence
0.614
at
location
[
341.67
,
17.54
,
642.32
,
278.51
]
Detected
a
photo
of
a
cat
with
confidence
0.665
at
location
[
6.75
,
38
.9
7
,
326.62
,
354.85
]
Detected
a
photo
of
a
cat
with
confidence
0.614
at
location
[
341.67
,
23.39
,
642.32
,
371.35
]
Detected
a
photo
of
a
cat
with
confidence
0.665
at
location
[
6.75
,
51
.9
6
,
326.62
,
473.13
]
```
## Resources
...
...
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