Add files via upload

上一次上传到docs文件夹中了,修改一下
This commit is contained in:
yrk111222
2024-10-22 09:52:12 +08:00
committed by GitHub
parent 70c4ff4121
commit 1a004ffe81
8 changed files with 15 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
# ControlNet、LoRA、IP-Adapter——Precision Control Technology
Based on the VinVL model, various adapter-based models can be used to control the generation process.
Based on the text-to-images model, various adapter-based models can be used to control the generation process.
Let's download the models we'll be using in the upcoming examples:

View File

@@ -4,7 +4,7 @@ When generating images, we need to write prompt words to describe the content of
## Translation
Most text-to-image models currently only support English prompt words, which can be challenging for users who are not native English speakers. To address this, we can use open-source translation models to translate the prompt words into English. In the following example, we take "一个女孩" (a girl) as the prompt word and use the model opus-mt-zh-en for translation(which can be downloaded from [HuggingFace](https://huggingface.co/Helsinki-NLP/opus-mt-zh-en) or [ModelScope](https://modelscope.cn/models/moxying/opus-mt-zh-en)).
Most text-to-image models currently only support English prompt words, which can be challenging for users who are not native English speakers. To address this, we can use open-source translation models to translate the prompt words into English. In the following example, we take "一个女孩" (a girl) as the prompt word and use the model opus-mt-zh-en (which can be downloaded from [HuggingFace](https://huggingface.co/Helsinki-NLP/opus-mt-zh-en) or [ModelScope](https://modelscope.cn/models/moxying/opus-mt-zh-en)) for translation.
```python
from diffsynth import ModelManager, SDXLImagePipeline, Translator
import torch