Text-to-Image
Diffusers
English
flux
lora
replicate
janannfndnd commited on
Commit
7677d80
·
verified ·
1 Parent(s): e920759

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -31,9 +31,9 @@ You should use `SABA` to trigger the image generation.
31
  from diffusers import AutoPipelineForText2Image
32
  import torch
33
 
34
- pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
35
  pipeline.load_lora_weights('janannfndnd/SABA', weight_name='lora.safetensors')
36
- image = pipeline('your prompt', height=768, width=512).images[0]
37
  ```
38
 
39
  For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
 
31
  from diffusers import AutoPipelineForText2Image
32
  import torch
33
 
34
+ pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
35
  pipeline.load_lora_weights('janannfndnd/SABA', weight_name='lora.safetensors')
36
+ image = pipeline('your prompt').images[0]
37
  ```
38
 
39
  For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)