Hack337 commited on
Commit
c514933
·
verified ·
1 Parent(s): 3171a03

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -49,3 +49,19 @@ You should use `Komaru` to trigger the image generation.
49
  Weights for this model are available in Safetensors format.
50
 
51
  [Download](/Hack337/flux-lora-Komaru/tree/main) them in the Files & versions tab.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  Weights for this model are available in Safetensors format.
50
 
51
  [Download](/Hack337/flux-lora-Komaru/tree/main) them in the Files & versions tab.
52
+
53
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
54
+
55
+ ```py
56
+ from diffusers import AutoPipelineForText2Image
57
+ import torch
58
+
59
+ pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
60
+ pipeline.load_lora_weights('Hack337/flux-lora-Komaru', weight_name='komaru')
61
+ image = pipeline('a Komaru cat sitting in a box of corn on top of a couch, with a white cloth draped over it').images[0]
62
+ image.save("my_image.png")
63
+ ```
64
+
65
+ 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)
66
+
67
+