Update README.md

This commit is contained in:
ai-modelscope
2025-02-26 20:20:00 +08:00
parent f4c79b0340
commit a1f0914713

View File

@ -15,7 +15,7 @@ pipeline_tag: text-to-image
<div style="display: flex; justify-content: center; align-items: center;">
<img src="./images/images_alibaba.png" alt="alibaba" style="width: 20%; height: auto; margin-right: 5%;">
<img src="./images/alimama_new.png" alt="alimama" style="width: 20%; height: auto;">
<img src="./images/images_alimama.png" alt="alimama" style="width: 20%; height: auto;">
</div>
[中文版Readme](./README_ZH.md)
@ -40,10 +40,9 @@ This model can be used ditrectly with diffusers
```python
import torch
from diffusers.pipelines import FluxPipeline
from modelscope import snapshot_download
model_id = snapshot_download("AI-ModelScope/FLUX.1-dev")
adapter_id = snapshot_download("alimama-creative/FLUX.1-Turbo-Alpha")
model_id = "black-forest-labs/FLUX.1-dev"
adapter_id = "alimama-creative/FLUX.1-Turbo-Alpha"
pipe = FluxPipeline.from_pretrained(
model_id,
@ -62,7 +61,6 @@ image = pipe(
width=1024,
num_inference_steps=8,
max_sequence_length=512).images[0]
image.save("image.png")
```
## comfyui