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
bc2adb01
Unverified
Commit
bc2adb01
authored
Jul 23, 2024
by
Sai-Suraj-27
Committed by
GitHub
Jul 23, 2024
Browse files
fix: Fixed an if condition that is always evaluating to true (#32160)
Fixed an if condition always evaluating to true.
parent
23f6a43f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/dpt/convert_dpt_hybrid_to_pytorch.py
src/transformers/models/dpt/convert_dpt_hybrid_to_pytorch.py
+1
-1
No files found.
src/transformers/models/dpt/convert_dpt_hybrid_to_pytorch.py
View file @
bc2adb01
...
...
@@ -43,7 +43,7 @@ def get_dpt_config(checkpoint_url):
config
.
neck_hidden_sizes
=
[
256
,
512
,
1024
,
1024
]
expected_shape
=
(
1
,
384
,
384
)
if
"nyu"
or
"midas"
in
checkpoint_url
:
if
"nyu"
in
checkpoint_url
or
"midas"
in
checkpoint_url
:
config
.
hidden_size
=
768
config
.
reassemble_factors
=
[
1
,
1
,
1
,
0.5
]
config
.
neck_hidden_sizes
=
[
256
,
512
,
768
,
768
]
...
...
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