Nitin9sitare commited on
Commit
ced6d1e
·
verified ·
1 Parent(s): bf0dd24

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -13,7 +13,24 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
13
  # Flux_finetune_with_swami_Vivekananda final
14
 
15
  <Gallery />
 
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  ## Model description
19
 
 
13
  # Flux_finetune_with_swami_Vivekananda final
14
 
15
  <Gallery />
16
+ ## Inference
17
 
18
+ import torch
19
+ from diffusers import FluxPipeline
20
+
21
+ pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
22
+ pipe.load_lora_weights("bekushal/Flux_finetune_swami_vevikananda", weight_name="Flux_finetune_swami_vevikananda.safetensors")
23
+ pipe.fuse_lora(lora_scale=1.0)
24
+ pipe.to("cuda")
25
+
26
+ prompt = "A young Indian monk with sunglasses in a cricket ground, holding a bat in his hand."
27
+
28
+ image = pipe(prompt,
29
+ num_inference_steps=24,
30
+ guidance_scale=3.5,
31
+ width=512, height=512,
32
+ ).images[0]
33
+ image.save(f"example.png")
34
 
35
  ## Model description
36