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
f93c90d2
Unverified
Commit
f93c90d2
authored
Jan 06, 2023
by
Bartosz Szmelczynski
Committed by
GitHub
Jan 06, 2023
Browse files
fix levit timm conversion file (#20938)
* fix levit timm conversion file * remove set_defaults
parent
c29bec48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/transformers/models/levit/convert_levit_timm_to_pytorch.py
...ransformers/models/levit/convert_levit_timm_to_pytorch.py
+5
-5
No files found.
src/transformers/models/levit/convert_levit_timm_to_pytorch.py
View file @
f93c90d2
...
...
@@ -167,12 +167,12 @@ if __name__ == "__main__":
required
=
False
,
help
=
"Path to the output PyTorch model directory."
,
)
parser
.
add_argument
(
"--push_to_hub"
,
action
=
"store_true"
,
help
=
"Push model and feature extractor to the hub"
)
parser
.
add_argument
(
"--push_to_hub"
,
default
=
True
,
type
=
bool
,
required
=
False
,
help
=
"If True, push model and feature extractor to the hub."
,
"--no-push_to_hub"
,
dest
=
"push_to_hub"
,
action
=
"store_false"
,
help
=
"Do not push model and feature extractor to the hub"
,
)
args
=
parser
.
parse_args
()
...
...
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