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
751f17aa
Unverified
Commit
751f17aa
authored
Feb 16, 2023
by
regisss
Committed by
GitHub
Feb 16, 2023
Browse files
Fix typos in contrastive-image-text example README (#21665)
parent
9d1116e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/pytorch/contrastive-image-text/README.md
examples/pytorch/contrastive-image-text/README.md
+2
-2
No files found.
examples/pytorch/contrastive-image-text/README.md
View file @
751f17aa
...
...
@@ -50,9 +50,9 @@ COCO_DIR = os.path.join(os.getcwd(), "data")
ds
=
datasets
.
load_dataset
(
"ydshieh/coco_dataset_script"
,
"2017"
,
data_dir
=
COCO_DIR
)
```
### Create a model from a vision encoder model and a text
d
ecoder model
### Create a model from a vision encoder model and a text e
n
coder model
Next, we create a
[
VisionTextDualEncoderModel
](
https://huggingface.co/docs/transformers/model_doc/vision-text-dual-encoder#visiontextdualencoder
)
.
The
`VisionTextDualEncoderModel`
class let
'
s you load any vision and text encoder model to create a dual encoder.
The
`VisionTextDualEncoderModel`
class lets you load any vision and text encoder model to create a dual encoder.
Here is an example of how to load the model using pre-trained vision and text models.
```
python3
...
...
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