Update README.md
Browse files
README.md
CHANGED
@@ -38,25 +38,9 @@ You should use `TOK` to trigger the image generation.
|
|
38 |
from diffusers import AutoPipelineForText2Image
|
39 |
import torch
|
40 |
|
41 |
-
|
42 |
-
pipeline =
|
43 |
-
|
44 |
-
torch_dtype=torch.float16
|
45 |
-
).to("cuda")
|
46 |
-
|
47 |
-
# 2. LoRA'yı zorla yükle (alpha=0.5 ile gücünü azaltın)
|
48 |
-
pipeline.load_lora_weights(
|
49 |
-
"codermert/gamzekocc_fluxx",
|
50 |
-
weight_name="lora.safetensors",
|
51 |
-
adapter_name="fluxx",
|
52 |
-
cross_attention_scale=0.5 # LoRA etkisini hafiflet
|
53 |
-
)
|
54 |
-
|
55 |
-
# 3. Promptta hem trigger hem stil vurgusu yapın
|
56 |
-
image = pipeline(
|
57 |
-
prompt="portrait of TOK, <fluxx>, photorealistic, 8K", # TOK + adapter_name
|
58 |
-
negative_prompt="blurry, deformed"
|
59 |
-
).images[0]
|
60 |
```
|
61 |
|
62 |
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)
|
|
|
38 |
from diffusers import AutoPipelineForText2Image
|
39 |
import torch
|
40 |
|
41 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('prithivMLmods/Canopus-LoRA-Flux-UltraRealism-2.0', torch_dtype=torch.float16).to('cuda')
|
42 |
+
pipeline.load_lora_weights('codermert/gamzekocc_fluxx', weight_name='lora.safetensors')
|
43 |
+
image = pipeline('your prompt').images[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
```
|
45 |
|
46 |
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)
|