Add example for text2image (#920)

Signed-off-by: Ye, Xinyu <xinyu.ye@intel.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
XinyuYe-Intel
2024-10-24 11:43:44 +08:00
committed by GitHub
parent 15cc457cea
commit 085d859a70
5 changed files with 201 additions and 0 deletions

21
Text2Image/README.md Normal file
View File

@@ -0,0 +1,21 @@
# Text-to-Image Microservice
Text-to-Image is a task that generate image conditioning on the provided text. This microservice supports text-to-image task by using Stable Diffusion (SD) model.
## Deploy Text-to-Image Service
### Deploy Text-to-Image Service on Xeon
Refer to the [Xeon Guide](./docker_compose/intel/cpu/xeon/README.md) for detail.
### Deploy Text-to-Image Service on Gaudi
Refer to the [Gaudi Guide](./docker_compose/intel/hpu/gaudi/README.md) for detail.
## Consume Text-to-Image Service
Use below command to generate image.
```bash
http_proxy="" curl http://localhost:9379/v1/text2image -XPOST -d '{"prompt":"An astronaut riding a green horse", "num_images_per_prompt":1}' -H 'Content-Type: application/json'
```