"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "4469010c1be3a94f74d6448497051468f617baf2"
Unverified Commit f93c90d2 authored by Bartosz Szmelczynski's avatar Bartosz Szmelczynski Committed by GitHub
Browse files

fix levit timm conversion file (#20938)

* fix levit timm conversion file

* remove set_defaults
parent c29bec48
...@@ -167,12 +167,12 @@ if __name__ == "__main__": ...@@ -167,12 +167,12 @@ if __name__ == "__main__":
required=False, required=False,
help="Path to the output PyTorch model directory.", 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( parser.add_argument(
"--push_to_hub", "--no-push_to_hub",
default=True, dest="push_to_hub",
type=bool, action="store_false",
required=False, help="Do not push model and feature extractor to the hub",
help="If True, push model and feature extractor to the hub.",
) )
args = parser.parse_args() args = parser.parse_args()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment