mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-20 07:18:14 +00:00
44 lines
3.2 KiB
Markdown
44 lines
3.2 KiB
Markdown
# Image Synthesis
|
|
|
|
Image synthesis is the base feature of DiffSynth Studio.
|
|
|
|
### Example: Stable Diffusion
|
|
|
|
We can generate images with very high resolution. Please see [`sd_text_to_image.py`](./sd_text_to_image.py) for more details.
|
|
|
|
|512*512|1024*1024|2048*2048|4096*4096|
|
|
|-|-|-|-|
|
|
|||||
|
|
|
|
### Example: Stable Diffusion XL
|
|
|
|
Generate images with Stable Diffusion XL. Please see [`sdxl_text_to_image.py`](./sdxl_text_to_image.py) for more details.
|
|
|
|
|1024*1024|2048*2048|
|
|
|-|-|
|
|
|||
|
|
|
|
### Example: Stable Diffusion XL Turbo
|
|
|
|
Generate images with Stable Diffusion XL Turbo. You can see [`sdxl_turbo.py`](./sdxl_turbo.py) for more details, but we highly recommend you to use it in the WebUI.
|
|
|
|
|"black car"|"red car"|
|
|
|-|-|
|
|
|||
|
|
|
|
### Example: Prompt Processing
|
|
|
|
If you are not native English user, we provide translation service for you. Our prompter can translate other language to English and refine it using "BeautifulPrompt" models. Please see [`sd_prompt_refining.py`](./sd_prompt_refining.py) for more details.
|
|
|
|
Prompt: "一个漂亮的女孩". The [translation model](https://huggingface.co/Helsinki-NLP/opus-mt-en-zh) will translate it to English.
|
|
|
|
|seed=0|seed=1|seed=2|seed=3|
|
|
|-|-|-|-|
|
|
|||||
|
|
|
|
Prompt: "一个漂亮的女孩". The [translation model](https://huggingface.co/Helsinki-NLP/opus-mt-en-zh) will translate it to English. Then the [refining model](https://huggingface.co/alibaba-pai/pai-bloom-1b1-text2prompt-sd) will refine the translated prompt for better visual quality.
|
|
|
|
|seed=0|seed=1|seed=2|seed=3|
|
|
|-|-|-|-|
|
|
|||||
|