You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: use new clip server
* fix: use new clip server
* fix: address comment
Co-authored-by: Ziniu Yu <[email protected]>
* fix: address comment
Co-authored-by: Ziniu Yu <[email protected]>
* fix: use new clip server
* fix: add cas token env in flow parser
* fix: add cas token env in flow parser
* fix: add cas token env in flow parser
* fix: disable external
Co-authored-by: Ziniu Yu <[email protected]>
Copy file name to clipboardexpand all lines: README.md
+48-4
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ DALL·E Flow is in client-server architecture.
29
29
30
30
## Updates
31
31
32
+
- ⚠️ **2022/10/26** To use CLIP-as-service available at `grpcs://api.clip.jina.ai:2096` (requires `jina >= v3.11.0`), you need first get an access token from [here](https://console.clip.jina.ai/get_started). See [Use the CLIP-as-service](#use-the-clip-as-service) for more details.
32
33
- 🌟 **2022/9/25** Automated [CLIP-based segmentation](https://github.com/timojl/clipseg) from a prompt has been added.
33
34
- 🌟 **2022/8/17** Text to image for [Stable Diffusion](https://github.com/CompVis/stable-diffusion) has been added. In order to use it you will need to agree to their ToS, download the weights, then enable the flag in docker or `flow_parser.py`.
34
35
- ⚠️ **2022/8/8** Started using CLIP-as-service as an [external executor](https://docs.jina.ai/fundamentals/flow/add-executors/#external-executors). Now you can easily [deploy your own CLIP executor](#run-your-own-clip) if you want. There is [a small breaking change](https://github.com/jina-ai/dalle-flow/pull/74/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R103) as a result of this improvement, so [please _reopen_ the notebook in Google Colab](https://colab.research.google.com/github/jina-ai/dalle-flow/blob/main/client.ipynb).
@@ -170,7 +171,7 @@ DALL·E Flow needs one GPU with 21GB VRAM at its peak. All services are squeezed
170
171
171
172
The following reasonable tricks can be used for further reducing VRAM:
172
173
- SwinIR can be moved to CPU (-3GB)
173
-
- CLIP can be delegated to [CLIP-as-service demo server](https://github.com/jina-ai/clip-as-service#text--image-embedding) (-3GB)
174
+
- CLIP can be delegated to [CLIP-as-service free server](https://console.clip.jina.ai/get_started) (-3GB)
174
175
175
176
176
177
It requires at least 50GB free space on the hard drive, mostly for downloading pretrained models.
@@ -399,10 +400,53 @@ Congrats! Now you should be able to [run the client](#client).
399
400
400
401
You can modify and extend the server flow as you like, e.g. changing the model, adding persistence, or even auto-posting to Instagram/OpenSea. With Jina and DocArray, you can easily make DALL·E Flow [cloud-native and ready for production](https://github.com/jina-ai/jina).
401
402
402
-
### Run your own CLIP
403
403
404
-
By default [`CLIPTorchEncoder`](https://hub.jina.ai/executor/gzpbl8jh) runs as an [external executor](https://docs.jina.ai/fundamentals/flow/add-executors/#external-executors).
405
-
If you want to run your own CLIP, you can do that by removing external executor related configs (`host, port, tls and external`) from [`flow.yml`](./flow.yml).
404
+
### Use the CLIP-as-service
405
+
406
+
To reduce the usage of vRAM, you can use the `CLIP-as-service` as an external executor freely available at `grpcs://api.clip.jina.ai:2096`.
407
+
First, make sure you have created an access token from [console website](https://console.clip.jina.ai/get_started), or CLI as following
408
+
409
+
```bash
410
+
jina auth token create <name of PAT> -e <expiration days>
411
+
```
412
+
413
+
Then, you need to change the executor related configs (`host`, `port`, `external`, `tls` and `grpc_metadata`) from [`flow.yml`](./flow.yml).
0 commit comments