Yasunori Ozaki
commited on
Commit
•
40087b8
1
Parent(s):
c0667c6
first
Browse files- .gitattributes +39 -0
- README.md +26 -0
- control_picasso11_openpose.ckpt +3 -0
- control_picasso11_openpose.yaml +85 -0
- girl_1.png +3 -0
- pose_1.png +3 -0
- sample_poses/bone_0.png +3 -0
- sample_poses/bone_1.png +3 -0
- sample_poses/bone_10.png +3 -0
- sample_poses/bone_11.png +3 -0
- sample_poses/bone_12.png +3 -0
- sample_poses/bone_13.png +3 -0
- sample_poses/bone_14.png +3 -0
- sample_poses/bone_15.png +3 -0
- sample_poses/bone_16.png +3 -0
- sample_poses/bone_17.png +3 -0
- sample_poses/bone_18.png +3 -0
- sample_poses/bone_19.png +3 -0
- sample_poses/bone_2.png +3 -0
- sample_poses/bone_20.png +3 -0
- sample_poses/bone_21.png +3 -0
- sample_poses/bone_22.png +3 -0
- sample_poses/bone_23.png +3 -0
- sample_poses/bone_24.png +3 -0
- sample_poses/bone_25.png +3 -0
- sample_poses/bone_26.png +3 -0
- sample_poses/bone_27.png +3 -0
- sample_poses/bone_28.png +3 -0
- sample_poses/bone_29.png +3 -0
- sample_poses/bone_3.png +3 -0
- sample_poses/bone_30.png +3 -0
- sample_poses/bone_31.png +3 -0
- sample_poses/bone_32.png +3 -0
- sample_poses/bone_33.png +3 -0
- sample_poses/bone_34.png +3 -0
- sample_poses/bone_35.png +3 -0
- sample_poses/bone_4.png +3 -0
- sample_poses/bone_5.png +3 -0
- sample_poses/bone_6.png +3 -0
- sample_poses/bone_7.png +3 -0
- sample_poses/bone_8.png +3 -0
- sample_poses/bone_9.png +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,42 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
control_picasso11_openpose.ckpt filter=lfs diff=lfs merge=lfs -text
|
36 |
+
pose_1.png filter=lfs diff=lfs merge=lfs -text
|
37 |
+
girl_1.png filter=lfs diff=lfs merge=lfs -text
|
38 |
+
sample_poses/bone_17.png filter=lfs diff=lfs merge=lfs -text
|
39 |
+
sample_poses/bone_30.png filter=lfs diff=lfs merge=lfs -text
|
40 |
+
sample_poses/bone_0.png filter=lfs diff=lfs merge=lfs -text
|
41 |
+
sample_poses/bone_21.png filter=lfs diff=lfs merge=lfs -text
|
42 |
+
sample_poses/bone_2.png filter=lfs diff=lfs merge=lfs -text
|
43 |
+
sample_poses/bone_34.png filter=lfs diff=lfs merge=lfs -text
|
44 |
+
sample_poses/bone_6.png filter=lfs diff=lfs merge=lfs -text
|
45 |
+
sample_poses/bone_12.png filter=lfs diff=lfs merge=lfs -text
|
46 |
+
sample_poses/bone_14.png filter=lfs diff=lfs merge=lfs -text
|
47 |
+
sample_poses/bone_19.png filter=lfs diff=lfs merge=lfs -text
|
48 |
+
sample_poses/bone_23.png filter=lfs diff=lfs merge=lfs -text
|
49 |
+
sample_poses/bone_33.png filter=lfs diff=lfs merge=lfs -text
|
50 |
+
sample_poses/bone_5.png filter=lfs diff=lfs merge=lfs -text
|
51 |
+
sample_poses/bone_13.png filter=lfs diff=lfs merge=lfs -text
|
52 |
+
sample_poses/bone_16.png filter=lfs diff=lfs merge=lfs -text
|
53 |
+
sample_poses/bone_18.png filter=lfs diff=lfs merge=lfs -text
|
54 |
+
sample_poses/bone_24.png filter=lfs diff=lfs merge=lfs -text
|
55 |
+
sample_poses/bone_27.png filter=lfs diff=lfs merge=lfs -text
|
56 |
+
sample_poses/bone_29.png filter=lfs diff=lfs merge=lfs -text
|
57 |
+
sample_poses/bone_31.png filter=lfs diff=lfs merge=lfs -text
|
58 |
+
sample_poses/bone_10.png filter=lfs diff=lfs merge=lfs -text
|
59 |
+
sample_poses/bone_15.png filter=lfs diff=lfs merge=lfs -text
|
60 |
+
sample_poses/bone_1.png filter=lfs diff=lfs merge=lfs -text
|
61 |
+
sample_poses/bone_20.png filter=lfs diff=lfs merge=lfs -text
|
62 |
+
sample_poses/bone_32.png filter=lfs diff=lfs merge=lfs -text
|
63 |
+
sample_poses/bone_3.png filter=lfs diff=lfs merge=lfs -text
|
64 |
+
sample_poses/bone_7.png filter=lfs diff=lfs merge=lfs -text
|
65 |
+
sample_poses/bone_11.png filter=lfs diff=lfs merge=lfs -text
|
66 |
+
sample_poses/bone_25.png filter=lfs diff=lfs merge=lfs -text
|
67 |
+
sample_poses/bone_26.png filter=lfs diff=lfs merge=lfs -text
|
68 |
+
sample_poses/bone_28.png filter=lfs diff=lfs merge=lfs -text
|
69 |
+
sample_poses/bone_4.png filter=lfs diff=lfs merge=lfs -text
|
70 |
+
sample_poses/bone_9.png filter=lfs diff=lfs merge=lfs -text
|
71 |
+
sample_poses/bone_22.png filter=lfs diff=lfs merge=lfs -text
|
72 |
+
sample_poses/bone_35.png filter=lfs diff=lfs merge=lfs -text
|
73 |
+
sample_poses/bone_8.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1 |
---
|
2 |
license: openrail++
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: openrail++
|
3 |
---
|
4 |
+
|
5 |
+
# ControlNet for Stable Diffusion 2.1
|
6 |
+
|
7 |
+
## Picasso Diffusion 1.1 (OpenPose)
|
8 |
+
|
9 |
+
**Note: This model is a proof of concept. You can test the model with sample poses only. Give me more training data.**
|
10 |
+
|
11 |
+
1. Install [Web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui).
|
12 |
+
1. Install [ControlNet extention](https://github.com/Mikubill/sd-webui-controlnet).
|
13 |
+
1. Download [Picasso Diffusion 1.1](https://huggingface.co/alfredplpl/picasso-diffusion-1-1/blob/main/v1-1.safetensors)
|
14 |
+
1. Move it into the folder: models -> Stable-diffusion .
|
15 |
+
1. Download the [model](control_picasso11_openpose.ckpt) and the [config](control_picasso11_openpose.yaml).
|
16 |
+
1. Move them into the folder: extentions -> sd-webui-controlnet -> models.
|
17 |
+
1. Use it in the web ui with the sample pose.
|
18 |
+
|
19 |
+
## Examples
|
20 |
+
|
21 |
+
![girl_1](girl_1.png)
|
22 |
+
```
|
23 |
+
anime, a girl
|
24 |
+
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 3038848424, Size: 768x768, Model hash: 5eb33121a0, Model: picasso_diffusion, ControlNet Enabled: True, ControlNet Module: none, ControlNet Model: control_picasso11_openpose [80042ed5], ControlNet Weight: 1, ControlNet Guidance Strength: 1
|
25 |
+
```
|
26 |
+
![pose_1](pose_1.png)
|
27 |
+
|
28 |
+
|
29 |
+
|
control_picasso11_openpose.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4845d4d1faea6d754beb110514f8e615d5ca0e6b4812eeb3b3bd475139d6ce75
|
3 |
+
size 3336262761
|
control_picasso11_openpose.yaml
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
model:
|
2 |
+
target: cldm.cldm.ControlLDM
|
3 |
+
params:
|
4 |
+
linear_start: 0.00085
|
5 |
+
linear_end: 0.0120
|
6 |
+
num_timesteps_cond: 1
|
7 |
+
log_every_t: 200
|
8 |
+
timesteps: 1000
|
9 |
+
first_stage_key: "jpg"
|
10 |
+
cond_stage_key: "txt"
|
11 |
+
control_key: "hint"
|
12 |
+
image_size: 64
|
13 |
+
channels: 4
|
14 |
+
cond_stage_trainable: false
|
15 |
+
conditioning_key: crossattn
|
16 |
+
monitor: val/loss_simple_ema
|
17 |
+
scale_factor: 0.18215
|
18 |
+
use_ema: False
|
19 |
+
only_mid_control: False
|
20 |
+
|
21 |
+
control_stage_config:
|
22 |
+
target: cldm.cldm.ControlNet
|
23 |
+
params:
|
24 |
+
use_checkpoint: True
|
25 |
+
image_size: 32 # unused
|
26 |
+
in_channels: 4
|
27 |
+
hint_channels: 3
|
28 |
+
model_channels: 320
|
29 |
+
attention_resolutions: [ 4, 2, 1 ]
|
30 |
+
num_res_blocks: 2
|
31 |
+
channel_mult: [ 1, 2, 4, 4 ]
|
32 |
+
num_head_channels: 64 # need to fix for flash-attn
|
33 |
+
use_spatial_transformer: True
|
34 |
+
use_linear_in_transformer: True
|
35 |
+
transformer_depth: 1
|
36 |
+
context_dim: 1024
|
37 |
+
legacy: False
|
38 |
+
|
39 |
+
unet_config:
|
40 |
+
target: cldm.cldm.ControlledUnetModel
|
41 |
+
params:
|
42 |
+
use_checkpoint: True
|
43 |
+
image_size: 32 # unused
|
44 |
+
in_channels: 4
|
45 |
+
out_channels: 4
|
46 |
+
model_channels: 320
|
47 |
+
attention_resolutions: [ 4, 2, 1 ]
|
48 |
+
num_res_blocks: 2
|
49 |
+
channel_mult: [ 1, 2, 4, 4 ]
|
50 |
+
num_head_channels: 64 # need to fix for flash-attn
|
51 |
+
use_spatial_transformer: True
|
52 |
+
use_linear_in_transformer: True
|
53 |
+
transformer_depth: 1
|
54 |
+
context_dim: 1024
|
55 |
+
legacy: False
|
56 |
+
|
57 |
+
first_stage_config:
|
58 |
+
target: ldm.models.autoencoder.AutoencoderKL
|
59 |
+
params:
|
60 |
+
embed_dim: 4
|
61 |
+
monitor: val/rec_loss
|
62 |
+
ddconfig:
|
63 |
+
#attn_type: "vanilla-xformers"
|
64 |
+
double_z: true
|
65 |
+
z_channels: 4
|
66 |
+
resolution: 256
|
67 |
+
in_channels: 3
|
68 |
+
out_ch: 3
|
69 |
+
ch: 128
|
70 |
+
ch_mult:
|
71 |
+
- 1
|
72 |
+
- 2
|
73 |
+
- 4
|
74 |
+
- 4
|
75 |
+
num_res_blocks: 2
|
76 |
+
attn_resolutions: []
|
77 |
+
dropout: 0.0
|
78 |
+
lossconfig:
|
79 |
+
target: torch.nn.Identity
|
80 |
+
|
81 |
+
cond_stage_config:
|
82 |
+
target: ldm.modules.encoders.modules.FrozenOpenCLIPEmbedder
|
83 |
+
params:
|
84 |
+
freeze: True
|
85 |
+
layer: "penultimate"
|
girl_1.png
ADDED
Git LFS Details
|
pose_1.png
ADDED
Git LFS Details
|
sample_poses/bone_0.png
ADDED
Git LFS Details
|
sample_poses/bone_1.png
ADDED
Git LFS Details
|
sample_poses/bone_10.png
ADDED
Git LFS Details
|
sample_poses/bone_11.png
ADDED
Git LFS Details
|
sample_poses/bone_12.png
ADDED
Git LFS Details
|
sample_poses/bone_13.png
ADDED
Git LFS Details
|
sample_poses/bone_14.png
ADDED
Git LFS Details
|
sample_poses/bone_15.png
ADDED
Git LFS Details
|
sample_poses/bone_16.png
ADDED
Git LFS Details
|
sample_poses/bone_17.png
ADDED
Git LFS Details
|
sample_poses/bone_18.png
ADDED
Git LFS Details
|
sample_poses/bone_19.png
ADDED
Git LFS Details
|
sample_poses/bone_2.png
ADDED
Git LFS Details
|
sample_poses/bone_20.png
ADDED
Git LFS Details
|
sample_poses/bone_21.png
ADDED
Git LFS Details
|
sample_poses/bone_22.png
ADDED
Git LFS Details
|
sample_poses/bone_23.png
ADDED
Git LFS Details
|
sample_poses/bone_24.png
ADDED
Git LFS Details
|
sample_poses/bone_25.png
ADDED
Git LFS Details
|
sample_poses/bone_26.png
ADDED
Git LFS Details
|
sample_poses/bone_27.png
ADDED
Git LFS Details
|
sample_poses/bone_28.png
ADDED
Git LFS Details
|
sample_poses/bone_29.png
ADDED
Git LFS Details
|
sample_poses/bone_3.png
ADDED
Git LFS Details
|
sample_poses/bone_30.png
ADDED
Git LFS Details
|
sample_poses/bone_31.png
ADDED
Git LFS Details
|
sample_poses/bone_32.png
ADDED
Git LFS Details
|
sample_poses/bone_33.png
ADDED
Git LFS Details
|
sample_poses/bone_34.png
ADDED
Git LFS Details
|
sample_poses/bone_35.png
ADDED
Git LFS Details
|
sample_poses/bone_4.png
ADDED
Git LFS Details
|
sample_poses/bone_5.png
ADDED
Git LFS Details
|
sample_poses/bone_6.png
ADDED
Git LFS Details
|
sample_poses/bone_7.png
ADDED
Git LFS Details
|
sample_poses/bone_8.png
ADDED
Git LFS Details
|
sample_poses/bone_9.png
ADDED
Git LFS Details
|