From 8133eac4eb20157dcf1e4aa12da7d37df81a400d Mon Sep 17 00:00:00 2001 From: Cherrytest Date: Tue, 15 Oct 2024 13:18:08 +0000 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a183724..b40a0d8 100644 --- a/README.md +++ b/README.md @@ -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,