Yasunori Ozaki commited on
Commit
0290b51
โ€ข
1 Parent(s): 64416f8

Update README

Browse files
Files changed (2) hide show
  1. README.md +8 -9
  2. README_en.md +9 -10
README.md CHANGED
@@ -86,20 +86,19 @@ pip install --upgrade git+https://github.com/huggingface/diffusers.git transform
86
  ๆฌกใฎใ‚นใ‚ฏใƒชใƒ—ใƒˆใ‚’ๅฎŸ่กŒใ—ใ€็”ปๅƒใ‚’็”Ÿๆˆใ—ใฆใใ ใ•ใ„ใ€‚
87
 
88
  ```python
89
- from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
90
  import torch
91
 
92
- model_id = "aipicasso/cool-japan-diffusion-2-1-1-beta"
93
 
94
- scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
95
- pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
96
  pipe = pipe.to("cuda")
97
 
98
- prompt = "anime, a portrait of a girl with black short hair and red eyes, kimono, full color illustration, official art, 4k, detailed"
99
- negative_prompt="low quality, bad face, bad anatomy, bad hand, lowres, jpeg artifacts, 2d, 3d, cg, text"
100
- image = pipe(prompt,negative_prompt=negative_prompt).images[0]
101
-
102
- image.save("girl.png")
103
 
104
  ```
105
 
 
86
  ๆฌกใฎใ‚นใ‚ฏใƒชใƒ—ใƒˆใ‚’ๅฎŸ่กŒใ—ใ€็”ปๅƒใ‚’็”Ÿๆˆใ—ใฆใใ ใ•ใ„ใ€‚
87
 
88
  ```python
89
+ from diffusers import StableDiffusionPipeline, EulerAncestralDiscreteScheduler
90
  import torch
91
 
92
+ model_id = "aipicasso/cool-japan-diffusion-2-1-1"
93
 
94
+ scheduler = EulerAncestralDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
95
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)#,use_auth_token="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")
96
  pipe = pipe.to("cuda")
97
 
98
+ prompt = "anime, masterpiece, a portrait of a girl, good pupil, 4k, detailed"
99
+ negative_prompt="deformed, blurry, bad anatomy, bad pupil, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, bad hands, fused fingers, messy drawing, broken legs censor, low quality, mutated hands and fingers, long body, mutation, poorly drawn, bad eyes, ui, error, missing fingers, fused fingers, one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit, one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit, long body, uncoordinated body, unnatural body, lowres, jpeg artifacts, 3d, cg, text, japanese kanji"
100
+ images = pipe(prompt,negative_prompt=negative_prompt, num_inference_steps=20).images
101
+ images[0].save("girl.png")
 
102
 
103
  ```
104
 
README_en.md CHANGED
@@ -56,20 +56,19 @@ pip install --upgrade git+https://github.com/huggingface/diffusers.git transform
56
  Running the pipeline (if you don't swap the scheduler it will run with the default DDIM, in this example we are swapping it to EulerDiscreteScheduler):
57
 
58
  ```python
59
- from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
60
  import torch
61
 
62
- model_id = "aipicasso/cool-japan-diffusion-2-1-1-beta"
63
 
64
- scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
65
- pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
66
  pipe = pipe.to("cuda")
67
 
68
- prompt = "anime, a portrait of a girl with black short hair and red eyes, kimono, full color illustration, official art, 4k, detailed"
69
- negative_prompt="low quality, bad face, bad anatomy, bad hand, lowres, jpeg artifacts, 2d, 3d, cg, text"
70
- image = pipe(prompt,negative_prompt=negative_prompt).images[0]
71
-
72
- image.save("girl.png")
73
 
74
  ```
75
 
@@ -78,4 +77,4 @@ image.save("girl.png")
78
  - If you have low GPU RAM available, make sure to add a `pipe.enable_attention_slicing()` after sending it to `cuda` for less VRAM usage (to the cost of speed)
79
 
80
 
81
- *This model card was written by: Alfred Increment and is based on the [Stable Diffusion v2](https://huggingface.co/stabilityai/stable-diffusion-2/raw/main/README.md)
 
56
  Running the pipeline (if you don't swap the scheduler it will run with the default DDIM, in this example we are swapping it to EulerDiscreteScheduler):
57
 
58
  ```python
59
+ from diffusers import StableDiffusionPipeline, EulerAncestralDiscreteScheduler
60
  import torch
61
 
62
+ model_id = "aipicasso/cool-japan-diffusion-2-1-1"
63
 
64
+ scheduler = EulerAncestralDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
65
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)#,use_auth_token="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")
66
  pipe = pipe.to("cuda")
67
 
68
+ prompt = "anime, masterpiece, a portrait of a girl, good pupil, 4k, detailed"
69
+ negative_prompt="deformed, blurry, bad anatomy, bad pupil, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, bad hands, fused fingers, messy drawing, broken legs censor, low quality, mutated hands and fingers, long body, mutation, poorly drawn, bad eyes, ui, error, missing fingers, fused fingers, one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit, one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit, long body, uncoordinated body, unnatural body, lowres, jpeg artifacts, 3d, cg, text, japanese kanji"
70
+ images = pipe(prompt,negative_prompt=negative_prompt, num_inference_steps=20).images
71
+ images[0].save("girl.png")
 
72
 
73
  ```
74
 
 
77
  - If you have low GPU RAM available, make sure to add a `pipe.enable_attention_slicing()` after sending it to `cuda` for less VRAM usage (to the cost of speed)
78
 
79
 
80
+ *This model card was written by: Alfred Increment and is based on the [Stable Diffusion v2](https://huggingface.co/stabilityai/stable-diffusion-2/raw/main/README.md)