Update README.md
Browse files
README.md
CHANGED
@@ -39,22 +39,17 @@ Weights for this model are available in Safetensors format.
|
|
39 |
|
40 |
## How to Use
|
41 |
|
42 |
-
### Using Diffusers (Python Library)
|
43 |
-
|
44 |
-
To use this model and load the **Midjourney FLUX LoRA**, follow these steps:
|
45 |
-
|
46 |
-
```python
|
47 |
from diffusers import StableDiffusionPipeline
|
48 |
from safetensors.torch import load_file
|
49 |
|
50 |
# Load the base pipeline
|
51 |
-
pipe = StableDiffusionPipeline.from_pretrained("
|
52 |
|
53 |
-
# Load
|
54 |
-
pipe.load_lora_weights("aidmaMJ61-FLUX-v05.safetensors")
|
55 |
-
pipe.load_lora_weights("
|
56 |
|
57 |
# Generate an image
|
58 |
-
prompt = "
|
59 |
image = pipe(prompt).images[0]
|
60 |
image.save("output.png")
|
|
|
39 |
|
40 |
## How to Use
|
41 |
|
|
|
|
|
|
|
|
|
|
|
42 |
from diffusers import StableDiffusionPipeline
|
43 |
from safetensors.torch import load_file
|
44 |
|
45 |
# Load the base pipeline
|
46 |
+
pipe = StableDiffusionPipeline.from_pretrained("Xena18284/Xena")
|
47 |
|
48 |
+
# Load both LoRA weights
|
49 |
+
pipe.load_lora_weights("aidmaMJ61-FLUX-v05.safetensors") # Midjourney to Flux
|
50 |
+
pipe.load_lora_weights("racing_car_style_v1.safetensors") # Racing Car Style
|
51 |
|
52 |
# Generate an image
|
53 |
+
prompt = "A futuristic racing car on a neon-lit street, ultra-detailed, cyberpunk"
|
54 |
image = pipe(prompt).images[0]
|
55 |
image.save("output.png")
|