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
f5d3bb1d
"tests/generation/test_generation_utils.py" did not exist on "e47765d884673e7ee420ed06b4551bfc3d755c8c"
Unverified
Commit
f5d3bb1d
authored
Sep 08, 2021
by
Suraj Patil
Committed by
GitHub
Sep 08, 2021
Browse files
fix CLIP conversion script (#13474)
parent
4be082ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/clip/convert_clip_original_pytorch_to_hf.py
...ormers/models/clip/convert_clip_original_pytorch_to_hf.py
+1
-1
No files found.
src/transformers/models/clip/convert_clip_original_pytorch_to_hf.py
View file @
f5d3bb1d
...
...
@@ -117,7 +117,7 @@ def convert_clip_checkpoint(checkpoint_path, pytorch_dump_folder_path, config_pa
hf_model
=
CLIPModel
(
config
).
eval
()
pt_model
,
_
=
load
(
checkpoint_path
,
jit
=
False
)
pt_model
,
_
=
load
(
checkpoint_path
,
device
=
"cpu"
,
jit
=
False
)
pt_model
=
pt_model
.
eval
()
copy_text_model_and_projection
(
hf_model
,
pt_model
)
...
...
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