Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
-
- text-to-
|
| 4 |
- lora
|
| 5 |
- diffusers
|
| 6 |
- template:sd-lora
|
| 7 |
- ai-toolkit
|
| 8 |
-
base_model:
|
| 9 |
license: creativeml-openrail-m
|
| 10 |
inference:
|
| 11 |
parameters:
|
|
@@ -36,8 +36,8 @@ Weights for this model are available in Safetensors format.
|
|
| 36 |
from diffusers import AutoPipelineForText2Image
|
| 37 |
import torch
|
| 38 |
|
| 39 |
-
pipeline = AutoPipelineForText2Image.from_pretrained('
|
| 40 |
-
pipeline.load_lora_weights('zazee/my_first_lora_v1-lora', weight_name='
|
| 41 |
image = pipeline('syahirahmz').images[0]
|
| 42 |
image.save("my_image.png")
|
| 43 |
```
|
|
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
+
- text-to-image
|
| 4 |
- lora
|
| 5 |
- diffusers
|
| 6 |
- template:sd-lora
|
| 7 |
- ai-toolkit
|
| 8 |
+
base_model: Qwen/Qwen-Image
|
| 9 |
license: creativeml-openrail-m
|
| 10 |
inference:
|
| 11 |
parameters:
|
|
|
|
| 36 |
from diffusers import AutoPipelineForText2Image
|
| 37 |
import torch
|
| 38 |
|
| 39 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('Qwen/Qwen-Image', torch_dtype=torch.bfloat16).to('cuda')
|
| 40 |
+
pipeline.load_lora_weights('zazee/my_first_lora_v1-lora', weight_name='my_first_lora_v1_000001000.safetensors')
|
| 41 |
image = pipeline('syahirahmz').images[0]
|
| 42 |
image.save("my_image.png")
|
| 43 |
```
|