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:
@ -37,12 +37,13 @@ This checkpoint is a 8-step distilled Lora, trained based on FLUX.1-dev model. W
|
||||
## diffusers
|
||||
This model can be used ditrectly with diffusers
|
||||
|
||||
```json
|
||||
```python
|
||||
import torch
|
||||
from diffusers.pipelines import FluxPipeline
|
||||
from modelscope import snapshot_download
|
||||
|
||||
model_id = "black-forest-labs/FLUX.1-dev"
|
||||
adapter_id = "alimama-creative/FLUX.1-Turbo-Alpha"
|
||||
model_id = snapshot_download("AI-ModelScope/FLUX.1-dev")
|
||||
adapter_id = snapshot_download("alimama-creative/FLUX.1-Turbo-Alpha")
|
||||
|
||||
pipe = FluxPipeline.from_pretrained(
|
||||
model_id,
|
||||
|
||||
Reference in New Issue
Block a user