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
feec5695
Unverified
Commit
feec5695
authored
Sep 05, 2023
by
Yih-Dar
Committed by
GitHub
Sep 05, 2023
Browse files
Fix Detr CI (#25972)
fix Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
404ff8fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/detr/test_modeling_detr.py
tests/models/detr/test_modeling_detr.py
+1
-1
No files found.
tests/models/detr/test_modeling_detr.py
View file @
feec5695
...
@@ -606,7 +606,7 @@ class DetrModelIntegrationTestsTimmBackbone(unittest.TestCase):
...
@@ -606,7 +606,7 @@ class DetrModelIntegrationTestsTimmBackbone(unittest.TestCase):
torch_device
torch_device
)
)
expected_number_of_segments
=
5
expected_number_of_segments
=
5
expected_first_segment
=
{
"id"
:
1
,
"label_id"
:
17
,
"was_fused"
:
False
,
"score"
:
0.99409
7
}
expected_first_segment
=
{
"id"
:
1
,
"label_id"
:
17
,
"was_fused"
:
False
,
"score"
:
0.99409
6
}
number_of_unique_segments
=
len
(
torch
.
unique
(
results
[
"segmentation"
]))
number_of_unique_segments
=
len
(
torch
.
unique
(
results
[
"segmentation"
]))
self
.
assertTrue
(
self
.
assertTrue
(
...
...
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