AisingioroHao0 commited on
Commit
4881d00
1 Parent(s): e8420c6
Files changed (1) hide show
  1. README.md +52 -6
README.md CHANGED
@@ -1,11 +1,57 @@
 
1
  title: Stable Diffusion Reference Only
2
- emoji:🔥
3
- colorFrom: indigo
4
- colorTo: pink
5
  sdk: gradio
6
- sdk_version: 3.1.4
7
  app_file: app.py
8
- pinned: false
9
  license: apache-2.0
10
  models:
11
- - AisingioroHao0/stable-diffusion-reference-only-automatic-coloring-0.1.2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
  title: Stable Diffusion Reference Only
3
+ emoji: 🔥
4
+ colorFrom: yellow
5
+ colorTo: gray
6
  sdk: gradio
7
+ sdk_version: 3.20.0
8
  app_file: app.py
9
+ pinned: true
10
  license: apache-2.0
11
  models:
12
+ - AisingioroHao0/stable-diffusion-reference-only-automatic-coloring-0.1.2
13
+ ---
14
+
15
+ # StableDiffusionReferenceOnly
16
+
17
+ A general model for secondary creation.
18
+
19
+ No training is needed to achieve style transfer of any anime character and line drawing coloring.
20
+
21
+ Code: https://github.com/aihao2000/StableDiffusionReferenceOnly
22
+
23
+ Model: https://huggingface.co/AisingioroHao0/stable-diffusion-reference-only-automatic-coloring-0.1.2
24
+
25
+ | prompt | blueprint | result |
26
+ | :---------------------------------: | :------------------------------------: | :---------------------------------: |
27
+ | ![](./README.assets/3x9_prompt.png) | ![](./README.assets/3x9_blueprint.png) | ![](./README.assets/3x9_result.png) |
28
+
29
+
30
+
31
+ ### Instructions
32
+
33
+ Secondary creation requires two images.
34
+
35
+ One is prompt image. It is a reference image that you wish to migrate to the new image. We provide the ```character segment``` function to clear the background, which often brings better results.
36
+
37
+ The other is blueprint image. It will control the picture structure of the new picture. It is also recommended to use ```character segment``` to enhance the effect. And there are two other buttons. If the blueprint you input is manual line drawing, you only need to click the ```color inversion``` button to ensure a black background and white lines. If you are entering a color image of another character, you need to click the ```get line art``` button and then click the ```color inversion``` button. Then click the inference button to get the results.
38
+
39
+
40
+
41
+ You can also directly upload reference images and line art image and click ```automatic coloring``` to get the results without the above operations.
42
+
43
+ You can also directly upload two color character pictures to try ```style transfer```
44
+
45
+ ## 介绍
46
+
47
+ 二次创作需要两张图片。
48
+
49
+ 一是提示图像。 它是您希望迁移到新图像的参考图像。 我们提供了角色分割```character segment```功能来清除背景,这往往会带来更好的效果。
50
+
51
+ 另一种是蓝图图像。 它将控制新图片的图片结构。还建议使用```character segment```来增强效果。 还有另外两个按钮。 如果您输入的图纸是人工线稿,则只需点击```color inversion```按钮即可保证黑底白线。 如果您要输入另一个角色的彩色图像,则需要单击```get line art```按钮,然后单击```color inversion```按钮。 然后点击```inference```按钮即可得到结果。
52
+
53
+
54
+
55
+ 您也可以直接上传参考图和线稿图,点击```automatic coloring```即可得到结果,无需进行上述操作。
56
+
57
+ 也可以直接上传两张彩色人物图片来试试风格迁移```style transfer```。