mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-20 10:14:19 +01:00
show example of using SOTA open sourced open clip
This commit is contained in:
@@ -634,10 +634,12 @@ Alternatively, you can also use <a href="https://github.com/mlfoundations/open_c
|
|||||||
$ pip install open-clip-torch
|
$ pip install open-clip-torch
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Ex. using the <a href="https://laion.ai/blog/large-openclip/">SOTA Open Clip</a> model trained by <a href="https://github.com/rom1504">Romain</a>
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from dalle2_pytorch import OpenClipAdapter
|
from dalle2_pytorch import OpenClipAdapter
|
||||||
|
|
||||||
clip = OpenClipAdapter()
|
clip = OpenClipAdapter('ViT-H/14')
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you'll just have to worry about training the Prior and the Decoder!
|
Now you'll just have to worry about training the Prior and the Decoder!
|
||||||
|
|||||||
Reference in New Issue
Block a user