Yasunori Ozaki
commited on
Commit
•
e18e339
1
Parent(s):
30e0445
Add diffusers model
Browse files
README.md
CHANGED
@@ -4,17 +4,17 @@ tags:
|
|
4 |
- stable-diffusion
|
5 |
- text-to-image
|
6 |
widget:
|
7 |
-
- text: "anime, a
|
8 |
example_title: "Girl (Anime)"
|
9 |
-
- text: "manga, monochrome, a
|
10 |
example_title: "Girl (Manga)"
|
11 |
-
- text: "anime, buildings in Tokyo, 4k, detailed"
|
12 |
example_title: "Bldgs. (Anime)"
|
13 |
-
- text: "manga, monochrome, buildings in Tokyo, highly detailed"
|
14 |
example_title: "Bldgs. (Manga)"
|
15 |
---
|
16 |
|
17 |
-
# Cool Japan Diffusion 2.1.0 Model Card
|
18 |
|
19 |
![アイキャッチ](eyecatch.jpg)
|
20 |
|
@@ -90,13 +90,13 @@ pip install --upgrade git+https://github.com/huggingface/diffusers.git transform
|
|
90 |
from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
|
91 |
import torch
|
92 |
|
93 |
-
model_id = "aipicasso/cool-japan-diffusion-2-1-0"
|
94 |
|
95 |
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
96 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
|
97 |
pipe = pipe.to("cuda")
|
98 |
|
99 |
-
prompt = "anime, a portrait of a girl with black short hair and red eyes, full color illustration, official art, 4k, detailed"
|
100 |
negative_prompt="low quality, bad face, bad anatomy, bad hand, lowres, jpeg artifacts, 2d, 3d, cg, text"
|
101 |
image = pipe(prompt,negative_prompt=negative_prompt).images[0]
|
102 |
|
|
|
4 |
- stable-diffusion
|
5 |
- text-to-image
|
6 |
widget:
|
7 |
+
- text: "anime, a portrait of a girl with black short hair and red eyes, kimono, full color illustration, official art, 4k, detailed"
|
8 |
example_title: "Girl (Anime)"
|
9 |
+
- text: "manga, monochrome, a portrait of a girl with black short hair and white eyes, kimono, full color illustration, official art, 4k, detailed"
|
10 |
example_title: "Girl (Manga)"
|
11 |
+
- text: "anime, buildings in Tokyo, buildings in Tokyo, 4k, 8k, highly detailed"
|
12 |
example_title: "Bldgs. (Anime)"
|
13 |
+
- text: "manga, monochrome, buildings in Tokyo, 4k, 8k, highly detailed"
|
14 |
example_title: "Bldgs. (Manga)"
|
15 |
---
|
16 |
|
17 |
+
# Cool Japan Diffusion 2.1.0 Beta Model Card
|
18 |
|
19 |
![アイキャッチ](eyecatch.jpg)
|
20 |
|
|
|
90 |
from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
|
91 |
import torch
|
92 |
|
93 |
+
model_id = "aipicasso/cool-japan-diffusion-2-1-0-beta"
|
94 |
|
95 |
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
96 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
|
97 |
pipe = pipe.to("cuda")
|
98 |
|
99 |
+
prompt = "anime, a portrait of a girl with black short hair and red eyes, kimono, full color illustration, official art, 4k, detailed"
|
100 |
negative_prompt="low quality, bad face, bad anatomy, bad hand, lowres, jpeg artifacts, 2d, 3d, cg, text"
|
101 |
image = pipe(prompt,negative_prompt=negative_prompt).images[0]
|
102 |
|