mirror of
https://www.modelscope.cn/alimama-creative/FLUX.1-Turbo-Alpha.git
synced 2026-04-02 13:32:53 +08:00
Update README.md
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user