davidfant commited on
Commit
a874546
1 Parent(s): 5312300

Upload with huggingface_hub

Browse files
args.json ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "pretrained_model_name_or_path": "runwayml/stable-diffusion-inpainting",
3
+ "pretrained_vae_name_or_path": "stabilityai/sd-vae-ft-mse",
4
+ "tokenizer_name": null,
5
+ "instance_data_dir": null,
6
+ "class_data_dir": null,
7
+ "instance_prompt": null,
8
+ "class_prompt": null,
9
+ "save_sample_prompt": "woman wearing a sks bikini on the beach|woman wearing a rkx bikini on the beach|woman wearing aptf bikini on the beach|woman wearing a qwe bikini on the beach|woman wearing a kxy bikini on thebeach|woman wearing a yzu bikini on the beach",
10
+ "save_sample_negative_prompt": null,
11
+ "n_save_sample": 4,
12
+ "save_guidance_scale": 7.5,
13
+ "save_infer_steps": 50,
14
+ "with_prior_preservation": false,
15
+ "prior_loss_weight": 1.0,
16
+ "num_class_images": 50,
17
+ "output_dir": "data/output/model",
18
+ "seed": 1337,
19
+ "resolution": 512,
20
+ "center_crop": true,
21
+ "train_text_encoder": true,
22
+ "train_batch_size": 1,
23
+ "sample_batch_size": 4,
24
+ "num_train_epochs": 160,
25
+ "max_train_steps": 4800,
26
+ "gradient_accumulation_steps": 1,
27
+ "gradient_checkpointing": false,
28
+ "learning_rate": 1e-06,
29
+ "scale_lr": false,
30
+ "lr_scheduler": "constant",
31
+ "lr_warmup_steps": 0,
32
+ "use_8bit_adam": true,
33
+ "adam_beta1": 0.9,
34
+ "adam_beta2": 0.999,
35
+ "adam_weight_decay": 0.01,
36
+ "adam_epsilon": 1e-08,
37
+ "max_grad_norm": 1.0,
38
+ "push_to_hub": false,
39
+ "hub_token": null,
40
+ "hub_model_id": null,
41
+ "logging_dir": "logs",
42
+ "log_interval": 10,
43
+ "save_interval": 2400,
44
+ "save_min_steps": 0,
45
+ "mixed_precision": "fp16",
46
+ "not_cache_latents": false,
47
+ "local_rank": -1,
48
+ "concepts_list": [
49
+ {
50
+ "url": "https://www.brightswimwear.com/products/maui-top-flower-garden",
51
+ "class_name": "bikini",
52
+ "image_background": "pool and green bushes",
53
+ "model": {
54
+ "gender": "woman",
55
+ "ethnicity": "white",
56
+ "hair": "long dark brown"
57
+ },
58
+ "image_urls": [
59
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/1_72461194-d55a-4695-9e10-6e67f0834b7f.png?v=1627642383",
60
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/3_849aad81-ebf2-4925-ae13-2b2c3cf70c0a.png?v=1627642364",
61
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/2_fa361236-eb1c-462c-886d-5cb042ab311a.png?v=1627642364"
62
+ ],
63
+ "class_prompt": "a woman wearing a bikini",
64
+ "class_data_dir": "./class/woman/bikini",
65
+ "instance_name": "sks",
66
+ "instance_prompt": "a white woman wearing a sks bikini, long dark brown hair, pool and green bushes background",
67
+ "instance_data_dir": "./instance/sks",
68
+ "class_mask_data_dir": "./class/woman/bikini-mask",
69
+ "instance_mask_data_dir": "./instance/sks-mask"
70
+ },
71
+ {
72
+ "url": "https://www.brightswimwear.com/products/tual-top-ribbed-green",
73
+ "class_name": "bikini",
74
+ "image_background": "beach",
75
+ "model": {
76
+ "gender": "woman",
77
+ "ethnicity": "white",
78
+ "hair": "long dark brown"
79
+ },
80
+ "image_urls": [
81
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/1_470afb11-8e2b-4d82-8121-4f4707cf7ea9.png?v=1643747143",
82
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/3_37328d6c-5819-4079-8891-0c9e899898a6.png?v=1643747146",
83
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/2_8d7e30e3-dc86-4f3c-a42c-aaa142f5588c.png?v=1643747146",
84
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/E-commerceProductImages_2_7e67be77-cb27-4f7b-a294-67486ba0ac99.png?v=1643747146"
85
+ ],
86
+ "class_prompt": "a woman wearing a bikini",
87
+ "class_data_dir": "./class/woman/bikini",
88
+ "instance_name": "rkx",
89
+ "instance_prompt": "a white woman wearing a rkx bikini, long dark brown hair, beach background",
90
+ "instance_data_dir": "./instance/rkx",
91
+ "class_mask_data_dir": "./class/woman/bikini-mask",
92
+ "instance_mask_data_dir": "./instance/rkx-mask"
93
+ },
94
+ {
95
+ "url": "https://www.brightswimwear.com/products/tual-top-peach-stripe",
96
+ "class_name": "bikini",
97
+ "image_background": "beach",
98
+ "model": {
99
+ "gender": "woman",
100
+ "ethnicity": "white",
101
+ "hair": "long dark brown"
102
+ },
103
+ "image_urls": [
104
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/1_42d509f9-fa05-406f-b543-aced871a21fe.png?v=1644855913",
105
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/3_ecd3665a-3699-4ddd-9966-0cf33edf2bf7.png?v=1644855913",
106
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/2_04b9110a-a18f-4cb7-a794-66a677160e61.png?v=1644855913",
107
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/E-commerceProductImages_4.png?v=1644855913",
108
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/4_87598809-81b5-4284-b612-3ae9ccb41149.png?v=1644855868"
109
+ ],
110
+ "class_prompt": "a woman wearing a bikini",
111
+ "class_data_dir": "./class/woman/bikini",
112
+ "instance_name": "ptf",
113
+ "instance_prompt": "a white woman wearing a ptf bikini, long dark brown hair, beach background",
114
+ "instance_data_dir": "./instance/ptf",
115
+ "class_mask_data_dir": "./class/woman/bikini-mask",
116
+ "instance_mask_data_dir": "./instance/ptf-mask"
117
+ },
118
+ {
119
+ "url": "https://www.brightswimwear.com/products/bali-top-ocean-dream",
120
+ "class_name": "bikini",
121
+ "model": {
122
+ "gender": "woman",
123
+ "ethnicity": "white",
124
+ "hair": "long dark brown"
125
+ },
126
+ "image_urls": [
127
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/DSC1658.jpg?v=1666613045",
128
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/DSC1664.jpg?v=1666613045",
129
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/DSC1671.jpg?v=1666613045",
130
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/DSC1680.jpg?v=1666613045",
131
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/StudioSession-296.jpg?v=1666613045",
132
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/StudioSession-297.jpg?v=1666613045",
133
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/StudioSession-299.jpg?v=1666613045",
134
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/StudioSession-289.jpg?v=1666613045",
135
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/StudioSession-298.jpg?v=1666613042"
136
+ ],
137
+ "class_prompt": "a woman wearing a bikini",
138
+ "class_data_dir": "./class/woman/bikini",
139
+ "instance_name": "qwe",
140
+ "instance_prompt": "a white woman wearing a qwe bikini, long dark brown hair",
141
+ "instance_data_dir": "./instance/qwe",
142
+ "class_mask_data_dir": "./class/woman/bikini-mask",
143
+ "instance_mask_data_dir": "./instance/qwe-mask"
144
+ },
145
+ {
146
+ "url": "https://www.brightswimwear.com/products/bali-top-lime",
147
+ "class_name": "bikini",
148
+ "model": {
149
+ "gender": "woman",
150
+ "ethnicity": "white",
151
+ "hair": "long dark brown"
152
+ },
153
+ "image_urls": [
154
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/DSC0869.jpg?v=1654035999",
155
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/Bright_studio-442.jpg?v=1654035999",
156
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/Bright_studio-458.jpg?v=1654035999",
157
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/DSC0818.jpg?v=1654035999"
158
+ ],
159
+ "class_prompt": "a woman wearing a bikini",
160
+ "class_data_dir": "./class/woman/bikini",
161
+ "instance_name": "kxy",
162
+ "instance_prompt": "a white woman wearing a kxy bikini, long dark brown hair",
163
+ "instance_data_dir": "./instance/kxy",
164
+ "class_mask_data_dir": "./class/woman/bikini-mask",
165
+ "instance_mask_data_dir": "./instance/kxy-mask"
166
+ },
167
+ {
168
+ "url": "https://www.brightswimwear.com/products/maria-top-lime",
169
+ "class_name": "bikini",
170
+ "model": {
171
+ "gender": "woman",
172
+ "ethnicity": "white",
173
+ "hair": "long dark brown"
174
+ },
175
+ "image_urls": [
176
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/E-COMMERCEIMAGES-x3_1400x2100px_5.jpg?v=1654025565",
177
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/Bright_studio-085.jpg?v=1654025565",
178
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/Bright_studio-077.jpg?v=1654025565",
179
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/Bright_studio-089.jpg?v=1654025565",
180
+ "https://cdn.shopify.com/s/files/1/2148/0245/products/E-COMMERCEIMAGES-x3_1400x2100px_4.jpg?v=1654025565"
181
+ ],
182
+ "class_prompt": "a woman wearing a bikini",
183
+ "class_data_dir": "./class/woman/bikini",
184
+ "instance_name": "yzu",
185
+ "instance_prompt": "a white woman wearing a yzu bikini, long dark brown hair",
186
+ "instance_data_dir": "./instance/yzu",
187
+ "class_mask_data_dir": "./class/woman/bikini-mask",
188
+ "instance_mask_data_dir": "./instance/yzu-mask"
189
+ }
190
+ ]
191
+ }
feature_extractor/preprocessor_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 224,
3
+ "do_center_crop": true,
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_resize": true,
7
+ "feature_extractor_type": "CLIPFeatureExtractor",
8
+ "image_mean": [
9
+ 0.48145466,
10
+ 0.4578275,
11
+ 0.40821073
12
+ ],
13
+ "image_std": [
14
+ 0.26862954,
15
+ 0.26130258,
16
+ 0.27577711
17
+ ],
18
+ "resample": 3,
19
+ "size": 224
20
+ }
model_index.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "StableDiffusionInpaintPipeline",
3
+ "_diffusers_version": "0.7.0.dev0",
4
+ "feature_extractor": [
5
+ "transformers",
6
+ "CLIPFeatureExtractor"
7
+ ],
8
+ "scheduler": [
9
+ "diffusers",
10
+ "DDIMScheduler"
11
+ ],
12
+ "text_encoder": [
13
+ "transformers",
14
+ "CLIPTextModel"
15
+ ],
16
+ "tokenizer": [
17
+ "transformers",
18
+ "CLIPTokenizer"
19
+ ],
20
+ "unet": [
21
+ "diffusers",
22
+ "UNet2DConditionModel"
23
+ ],
24
+ "vae": [
25
+ "diffusers",
26
+ "AutoencoderKL"
27
+ ]
28
+ }
samples/0/0.png ADDED
samples/0/1.png ADDED
samples/0/2.png ADDED
samples/0/3.png ADDED
samples/1/0.png ADDED
samples/1/1.png ADDED
samples/1/2.png ADDED
samples/1/3.png ADDED
samples/2/0.png ADDED
samples/2/1.png ADDED
samples/2/2.png ADDED
samples/2/3.png ADDED
samples/3/0.png ADDED
samples/3/1.png ADDED
samples/3/2.png ADDED
samples/3/3.png ADDED
samples/4/0.png ADDED
samples/4/1.png ADDED
samples/4/2.png ADDED
samples/4/3.png ADDED
samples/5/0.png ADDED
samples/5/1.png ADDED
samples/5/2.png ADDED
samples/5/3.png ADDED
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDIMScheduler",
3
+ "_diffusers_version": "0.7.0.dev0",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "clip_sample": false,
8
+ "num_train_timesteps": 1000,
9
+ "set_alpha_to_one": false,
10
+ "steps_offset": 1,
11
+ "trained_betas": null
12
+ }
text_encoder/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "runwayml/stable-diffusion-inpainting",
3
+ "architectures": [
4
+ "CLIPTextModel"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dropout": 0.0,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "quick_gelu",
11
+ "hidden_size": 768,
12
+ "initializer_factor": 1.0,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 77,
17
+ "model_type": "clip_text_model",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "projection_dim": 768,
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.23.1",
24
+ "vocab_size": 49408
25
+ }
text_encoder/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d4ac6f19870cf98689f05aa626ce1a98df373c4f4aa26ac33f333f995a34593
3
+ size 492308087
tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|endoftext|>",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<|startoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "do_lower_case": true,
12
+ "eos_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "errors": "replace",
21
+ "model_max_length": 77,
22
+ "name_or_path": "/home/fant/.cache/huggingface/diffusers/models--runwayml--stable-diffusion-inpainting/snapshots/e5fae204b8239db36f2cdc2c8b773d10c457a567/tokenizer",
23
+ "pad_token": "<|endoftext|>",
24
+ "special_tokens_map_file": "./special_tokens_map.json",
25
+ "tokenizer_class": "CLIPTokenizer",
26
+ "unk_token": {
27
+ "__type": "AddedToken",
28
+ "content": "<|endoftext|>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
unet/config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.7.0.dev0",
4
+ "_name_or_path": "runwayml/stable-diffusion-inpainting",
5
+ "act_fn": "silu",
6
+ "attention_head_dim": 8,
7
+ "block_out_channels": [
8
+ 320,
9
+ 640,
10
+ 1280,
11
+ 1280
12
+ ],
13
+ "center_input_sample": false,
14
+ "cross_attention_dim": 768,
15
+ "down_block_types": [
16
+ "CrossAttnDownBlock2D",
17
+ "CrossAttnDownBlock2D",
18
+ "CrossAttnDownBlock2D",
19
+ "DownBlock2D"
20
+ ],
21
+ "downsample_padding": 1,
22
+ "flip_sin_to_cos": true,
23
+ "freq_shift": 0,
24
+ "in_channels": 9,
25
+ "layers_per_block": 2,
26
+ "mid_block_scale_factor": 1,
27
+ "norm_eps": 1e-05,
28
+ "norm_num_groups": 32,
29
+ "out_channels": 4,
30
+ "sample_size": 32,
31
+ "up_block_types": [
32
+ "UpBlock2D",
33
+ "CrossAttnUpBlock2D",
34
+ "CrossAttnUpBlock2D",
35
+ "CrossAttnUpBlock2D"
36
+ ]
37
+ }
unet/diffusion_pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:386ecba940c9a136e1d7d6451838d251280ef8efbe8b198e43a9a2346253b225
3
+ size 3438421925
vae/config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.7.0.dev0",
4
+ "_name_or_path": "stabilityai/sd-vae-ft-mse",
5
+ "act_fn": "silu",
6
+ "block_out_channels": [
7
+ 128,
8
+ 256,
9
+ 512,
10
+ 512
11
+ ],
12
+ "down_block_types": [
13
+ "DownEncoderBlock2D",
14
+ "DownEncoderBlock2D",
15
+ "DownEncoderBlock2D",
16
+ "DownEncoderBlock2D"
17
+ ],
18
+ "in_channels": 3,
19
+ "latent_channels": 4,
20
+ "layers_per_block": 2,
21
+ "norm_num_groups": 32,
22
+ "out_channels": 3,
23
+ "sample_size": 256,
24
+ "up_block_types": [
25
+ "UpDecoderBlock2D",
26
+ "UpDecoderBlock2D",
27
+ "UpDecoderBlock2D",
28
+ "UpDecoderBlock2D"
29
+ ]
30
+ }
vae/diffusion_pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b4889b6b1d4ce7ae320a02dedaeff1780ad77d415ea0d744b476155c6377ddc
3
+ size 334707217