Skip to content

Commit

Permalink
update readme example with vit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jul 16, 2022
1 parent 4a6dbcc commit d70417d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ pip install coca-pytorch
First install the `vit-pytorch` for the image encoder, which needs to be pretrained

```bash
$ pip install vit-pytorch
$ pip install vit-pytorch>=0.35.8
```

Then
Expand All @@ -40,7 +40,7 @@ vit = ViT(
mlp_dim = 2048
)

vit = Extractor(vit, return_embeddings_only = True)
vit = Extractor(vit, return_embeddings_only = True, detach = False)

# extractor will enable it so the vision transformer returns its embeddings

Expand Down

0 comments on commit d70417d

Please sign in to comment.