Chan-Y commited on
Commit
d524fa4
1 Parent(s): 7bb4fa0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -9
README.md CHANGED
@@ -6,13 +6,22 @@ tags:
6
  - diffusers
7
  - lora
8
  - template:sd-lora
9
- widget:
10
-
11
- - text: 'in the style of TOK'
12
-
13
  base_model: stabilityai/stable-diffusion-xl-base-1.0
14
  instance_prompt: in the style of TOK
15
  license: openrail++
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ---
17
 
18
  # SDXL LoRA DreamBooth - boldlinemanga
@@ -35,13 +44,12 @@ license: openrail++
35
  ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
36
 
37
  ```py
38
- from diffusers import AutoPipelineForText2Image
39
- import torch
40
-
41
- pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
42
- pipeline.load_lora_weights('boldlinemanga', weight_name='pytorch_lora_weights.safetensors')
43
 
 
 
44
  image = pipeline('in the style of TOK').images[0]
 
45
  ```
46
 
47
  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)
 
6
  - diffusers
7
  - lora
8
  - template:sd-lora
 
 
 
 
9
  base_model: stabilityai/stable-diffusion-xl-base-1.0
10
  instance_prompt: in the style of TOK
11
  license: openrail++
12
+ widget:
13
+ - text: A bold line portrait of a man
14
+ output:
15
+ url: 000.png
16
+ - text: A vase of camellias
17
+ output:
18
+ url: 001.png
19
+ - text: in the style of TOK
20
+ output:
21
+ url: 002.png
22
+ - text: Manga style, Chinese background
23
+ output:
24
+ url: 003.png
25
  ---
26
 
27
  # SDXL LoRA DreamBooth - boldlinemanga
 
44
  ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
45
 
46
  ```py
47
+ from diffusers import DiffusionPipeline
 
 
 
 
48
 
49
+ pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0").to("cuda")
50
+ pipeline.load_lora_weights("Chan-Y/BoldLine-Manga")
51
  image = pipeline('in the style of TOK').images[0]
52
+ image
53
  ```
54
 
55
  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)