tarfandoon commited on
Commit
071a0c5
·
verified ·
1 Parent(s): e1e80a6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -15
README.md CHANGED
@@ -30,20 +30,9 @@ You should use FRSCHIAN style to trigger the image generation.
30
  ## Creating images using a diffusers
31
 
32
  ```py
33
- import torch
34
  from diffusers import AutoPipelineForText2Image
35
- pipe = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16).to("cuda")
36
- pipe.unload_lora_weights()
37
- pipe.load_lora_weights("tarfandoon/farshchian_flux", weight_name="flux-lora.safetensors", adapter_name="fas-v2")
38
- pipe.set_adapters(["fas-v2"], adapter_weights=[0.8])
39
- prompt = "Rumi,in gang style , behind the ocean , whith a whale in the space that he talking with rumi ! use FRSCHIAN style "
40
- image = pipe(
41
- prompt=prompt,
42
- guidance_scale=3.5,
43
- height=1024,
44
- width=1024,
45
- num_inference_steps=15,
46
- # generator=torch.Generator(device="cpu").manual_seed(208070), # for reproducibility
47
- ).images[0]
48
- image.save("s4.png")
49
  ```
 
30
  ## Creating images using a diffusers
31
 
32
  ```py
 
33
  from diffusers import AutoPipelineForText2Image
34
+ import torch
35
+ pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
36
+ pipeline.load_lora_weights('tarfandoon/farshchian_flux', weight_name='flux_lora.safetensors')
37
+ image = pipeline('Rumi,in gang style , behind the ocean , whith a whale in the space that he talking with rumi ! use FRSCHIAN style').images[0]
 
 
 
 
 
 
 
 
 
 
38
  ```