LeonardoBenitez commited on
Commit
46cd8be
·
verified ·
1 Parent(s): 57c122d

Upload folder using huggingface_hub

Browse files
Files changed (18) hide show
  1. models/people_Colin_Farrell_distil_400/README.md +207 -0
  2. models/people_Colin_Farrell_distil_400/images/Forget - An image of Colin Farrell.png +3 -0
  3. models/people_Colin_Farrell_distil_400/images/Forget - An picture of Colin Farrell in the rain.png +3 -0
  4. models/people_Colin_Farrell_distil_400/images/Forget - An picture of Colin Farrell running.png +3 -0
  5. models/people_Colin_Farrell_distil_400/images/Forget - Photograph of Colin Farrell; high definition.png +3 -0
  6. models/people_Colin_Farrell_distil_400/images/Retain - An image of a child.png +3 -0
  7. models/people_Colin_Farrell_distil_400/images/Retain - An picture of a child in the rain.png +3 -0
  8. models/people_Colin_Farrell_distil_400/images/Retain - An picture of a child running.png +3 -0
  9. models/people_Colin_Farrell_distil_400/images/Retain - Photograph of a child; high definition.png +3 -0
  10. models/people_Colin_Farrell_distil_400/images/tst_prompt_399_01.png +3 -0
  11. models/people_Colin_Farrell_distil_400/images/val_prompt_00_01.png +3 -0
  12. models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/1770408707.5800452/events.out.tfevents.1770408707.erdos.cl.itk.ppke.hu.2991670.1 +3 -0
  13. models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/1770408707.5835385/hparams.yml +59 -0
  14. models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/1770409042.4645815/events.out.tfevents.1770409042.erdos.cl.itk.ppke.hu.3004673.1 +3 -0
  15. models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/1770409042.468625/hparams.yml +59 -0
  16. models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/events.out.tfevents.1770408707.erdos.cl.itk.ppke.hu.2991670.0 +3 -0
  17. models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/events.out.tfevents.1770409042.erdos.cl.itk.ppke.hu.3004673.0 +3 -0
  18. models/people_Colin_Farrell_distil_400/pytorch_lora_weights.safetensors +3 -0
models/people_Colin_Farrell_distil_400/README.md ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ hyperparameters:
3
+ lora_r: 16
4
+ lora_alpha: 4
5
+ is_lora_negated: false
6
+ seed: 42
7
+ model_name_or_path: CompVis/stable-diffusion-v1-4
8
+ revision: null
9
+ variant: null
10
+ dataset_forget_name: assets/datasets/lfw_splits_filtered/Colin_Farrell/train_forget
11
+ dataset_retain_name: assets/datasets/lfw_splits_filtered/Colin_Farrell/train_retain
12
+ dataset_forget_config_name: null
13
+ dataset_retain_config_name: null
14
+ image_column: image
15
+ caption_column: text
16
+ validation_prompt: An image of Colin Farrell
17
+ num_validation_images: 1
18
+ validation_epochs: 401
19
+ resolution: 512
20
+ center_crop: false
21
+ random_flip: true
22
+ max_train_samples: null
23
+ dataloader_num_workers: 2
24
+ prediction_type: null
25
+ per_device_train_batch_size: 2
26
+ gradient_accumulation_steps: 2
27
+ num_train_epochs: 400
28
+ learning_rate: 0.0006
29
+ lr_scheduler_type: constant
30
+ should_log: true
31
+ local_rank: -1
32
+ device: cuda
33
+ n_gpu: 1
34
+ output_dir: assets/models/people_Colin_Farrell_distil_400
35
+ cache_dir: null
36
+ hub_token: null
37
+ hub_model_id: null
38
+ logging_dir: logs
39
+ logging_steps: 20
40
+ save_strategy: epoch
41
+ save_total_limit: 2
42
+ gradient_checkpointing: false
43
+ enable_xformers_memory_efficient_attention: false
44
+ mixed_precision: 'no'
45
+ allow_tf32: false
46
+ use_8bit_adam: false
47
+ report_to: tensorboard
48
+ compute_gradient_conflict: false
49
+ compute_runtimes: true
50
+ max_train_steps: 800
51
+ lr_warmup_steps: 0
52
+ adam_beta1: 0.9
53
+ adam_beta2: 0.999
54
+ adam_weight_decay: 0.01
55
+ adam_epsilon: 1.0e-08
56
+ max_grad_norm: 5.0
57
+ checkpointing_steps: 10000
58
+ checkpoints_total_limit: null
59
+ resume_from_checkpoint: null
60
+ noise_offset: 0.0
61
+ overwritting_concept: a child
62
+ model-index:
63
+ - name: None
64
+ results:
65
+ - task:
66
+ type: text-to-image
67
+ dataset:
68
+ name: Forget set
69
+ type: inline-prompts
70
+ metrics:
71
+ - type: clip
72
+ value: 37.13457012176514
73
+ name: ForgetSet clip score of original model mean (~↑)
74
+ - type: clip
75
+ value: 3.285168481071348
76
+ name: ForgetSet clip score of original model std (~↓)
77
+ - type: clip
78
+ value: 20.72600507736206
79
+ name: ForgetSet clip score of learned model mean (~↑)
80
+ - type: clip
81
+ value: 0.8682377256583532
82
+ name: ForgetSet clip score of learned model std (~↓)
83
+ - type: clip
84
+ value: 20.83757257461548
85
+ name: ForgetSet clip score of unlearned model mean (↓)
86
+ - type: clip
87
+ value: 3.3262248516053434
88
+ name: ForgetSet clip score of unlearned model std (~↓)
89
+ - type: clip
90
+ value: -0.11156749725341797
91
+ name: ForgetSet clip score difference between learned and unlearned mean (↑)
92
+ - type: clip
93
+ value: 3.021114030108384
94
+ name: ForgetSet clip score difference between learned and unlearned std (~↓)
95
+ - type: clip
96
+ value: 16.296997547149658
97
+ name: ForgetSet clip score difference between original and unlearned mean (↑)
98
+ - type: clip
99
+ value: 2.7830549091562675
100
+ name: ForgetSet clip score difference between original and unlearned std (~↓)
101
+ - type: clip
102
+ value: 16.408565044403076
103
+ name: ForgetSet clip score difference between original and learned mean (↓)
104
+ - type: clip
105
+ value: 3.127413070188775
106
+ name: ForgetSet clip score difference between original and learned std (~↓)
107
+ - type: clip
108
+ value: 31.09067440032959
109
+ name: RetainSet clip score of original model mean (~↑)
110
+ - type: clip
111
+ value: 2.3280465098326126
112
+ name: RetainSet clip score of original model std (~↓)
113
+ - type: clip
114
+ value: 30.772010326385498
115
+ name: RetainSet clip score of learned model mean (~↓)
116
+ - type: clip
117
+ value: 2.335580018208555
118
+ name: RetainSet clip score of learned model std (~↓)
119
+ - type: clip
120
+ value: 30.857609272003174
121
+ name: RetainSet clip score of unlearned model mean (↑)
122
+ - type: clip
123
+ value: 2.7347593227026437
124
+ name: RetainSet clip score of unlearned model std (~↓)
125
+ - type: clip
126
+ value: -0.08559894561767578
127
+ name: RetainSet clip score difference between learned and unlearned mean (↓)
128
+ - type: clip
129
+ value: 0.7968417429781275
130
+ name: RetainSet clip score difference between learned and unlearned std (~↓)
131
+ - type: clip
132
+ value: 0.23306512832641602
133
+ name: RetainSet clip score difference between original and unlearned mean (↓)
134
+ - type: clip
135
+ value: 1.042281669315777
136
+ name: RetainSet clip score difference between original and unlearned std (~↓)
137
+ - type: clip
138
+ value: 0.3186640739440918
139
+ name: RetainSet clip score difference between original and learned mean (↑)
140
+ - type: clip
141
+ value: 1.467366402602095
142
+ name: RetainSet clip score difference between original and learned std (~↓)
143
+ - type: runtime
144
+ value: 7.2181995908419285
145
+ name: Inference latency seconds mean (↓)
146
+ - type: runtime
147
+ value: 0.09390563094525213
148
+ name: Inference latency seconds std (~↓)
149
+ - task:
150
+ type: text-to-image
151
+ dataset:
152
+ name: assets/datasets/lfw_splits_filtered/Colin_Farrell/train_forget (forget)
153
+ and assets/datasets/lfw_splits_filtered/Colin_Farrell/train_retain (retain)
154
+ sets
155
+ type: forget-and-retain-together
156
+ metrics:
157
+ - type: runtime
158
+ value: 3.2350125312805176
159
+ name: Runtime init seconds (~↓)
160
+ - type: runtime
161
+ value: 0.8134787082672119
162
+ name: Runtime data loading seconds (~↓)
163
+ - type: runtime
164
+ value: 3849.363010406494
165
+ name: Runtime training seconds (↓)
166
+ - type: runtime
167
+ value: 185.6189956665039
168
+ name: Runtime eval seconds (~↓)
169
+ ---
170
+
171
+ <!-- This model card has been generated automatically according to the information the training script had access to. You
172
+ should probably proofread and complete it, then remove this comment. -->
173
+
174
+
175
+ # LoRA text2image fine-tuning - None
176
+ These are LoRA adaption weights for CompVis/stable-diffusion-v1-4.
177
+ The weights were fine-tuned for forgetting assets/datasets/lfw_splits_filtered/Colin_Farrell/train_forget dataset, while retaining assets/datasets/lfw_splits_filtered/Colin_Farrell/train_retain.
178
+ You can find some example images in the following.
179
+
180
+ ![img](images/val_prompt_00_01.png)
181
+ ![img](images/tst_prompt_399_01.png)
182
+ ![img](images/Forget - An image of Colin Farrell.png)
183
+ ![img](images/Forget - Photograph of Colin Farrell; high definition.png)
184
+ ![img](images/Forget - An picture of Colin Farrell in the rain.png)
185
+ ![img](images/Forget - An picture of Colin Farrell running.png)
186
+ ![img](images/Retain - An image of a child.png)
187
+ ![img](images/Retain - Photograph of a child; high definition.png)
188
+ ![img](images/Retain - An picture of a child in the rain.png)
189
+ ![img](images/Retain - An picture of a child running.png)
190
+
191
+
192
+
193
+ ## Intended uses & limitations
194
+
195
+ #### How to use
196
+
197
+ ```python
198
+ # TODO: add an example code snippet for running this diffusion pipeline
199
+ ```
200
+
201
+ #### Limitations and bias
202
+
203
+ [TODO: provide examples of latent issues and potential remediations]
204
+
205
+ ## Training details
206
+
207
+ [TODO: describe the data used to train the model]
models/people_Colin_Farrell_distil_400/images/Forget - An image of Colin Farrell.png ADDED

Git LFS Details

  • SHA256: d807e8632ec71a1ffbbfad05f2155d097193a90cd62edf1eddf6d456d6fa411b
  • Pointer size: 131 Bytes
  • Size of remote file: 789 kB
models/people_Colin_Farrell_distil_400/images/Forget - An picture of Colin Farrell in the rain.png ADDED

Git LFS Details

  • SHA256: 36a686c695d1906f83cf1d4f80fc595f15b476922e24f58d9ea72b0b55a8f3d5
  • Pointer size: 131 Bytes
  • Size of remote file: 753 kB
models/people_Colin_Farrell_distil_400/images/Forget - An picture of Colin Farrell running.png ADDED

Git LFS Details

  • SHA256: 5a972d13476697ebf9b94573fddc0186cf49c62a996306e987be49422230f10e
  • Pointer size: 131 Bytes
  • Size of remote file: 643 kB
models/people_Colin_Farrell_distil_400/images/Forget - Photograph of Colin Farrell; high definition.png ADDED

Git LFS Details

  • SHA256: 80b54ee403f2032c30377c1db15c668a1bc74c0b40ba40055f08f454ae57afc2
  • Pointer size: 131 Bytes
  • Size of remote file: 777 kB
models/people_Colin_Farrell_distil_400/images/Retain - An image of a child.png ADDED

Git LFS Details

  • SHA256: db7b8fdf5cf4dc0995c4330fdb8954f5c69db4ad92fac16f40edecb387ba3b6e
  • Pointer size: 131 Bytes
  • Size of remote file: 602 kB
models/people_Colin_Farrell_distil_400/images/Retain - An picture of a child in the rain.png ADDED

Git LFS Details

  • SHA256: 5ad6a1aab2fa4ff9c386e616a538db0f13abba914de6d5ec17ca8af360495d74
  • Pointer size: 131 Bytes
  • Size of remote file: 697 kB
models/people_Colin_Farrell_distil_400/images/Retain - An picture of a child running.png ADDED

Git LFS Details

  • SHA256: 2627b3e9d45a54abf6ef05e2b34dbabd36eb56c6ae6169278d1e7258a535dfd0
  • Pointer size: 131 Bytes
  • Size of remote file: 811 kB
models/people_Colin_Farrell_distil_400/images/Retain - Photograph of a child; high definition.png ADDED

Git LFS Details

  • SHA256: 734b85e870d92f57fb1adcc7fb50b22129f85440283b57c6242a0a89173acbf2
  • Pointer size: 131 Bytes
  • Size of remote file: 587 kB
models/people_Colin_Farrell_distil_400/images/tst_prompt_399_01.png ADDED

Git LFS Details

  • SHA256: 6cf321f4c3d8759b53bdce6516a27318f97b799867f4072794ba8cddece6b154
  • Pointer size: 131 Bytes
  • Size of remote file: 555 kB
models/people_Colin_Farrell_distil_400/images/val_prompt_00_01.png ADDED

Git LFS Details

  • SHA256: e032a2b77d680b15f22963f8e8feaa5f5f204cb390ffe1458efb4d436994a33b
  • Pointer size: 131 Bytes
  • Size of remote file: 443 kB
models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/1770408707.5800452/events.out.tfevents.1770408707.erdos.cl.itk.ppke.hu.2991670.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97259a49f0ccebcf5c374fb405417997dc43ad5f1bdd66032102165c73671ca2
3
+ size 2933
models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/1770408707.5835385/hparams.yml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ adam_beta1: 0.9
2
+ adam_beta2: 0.999
3
+ adam_epsilon: 1.0e-08
4
+ adam_weight_decay: 0.01
5
+ allow_tf32: false
6
+ cache_dir: null
7
+ caption_column: text
8
+ center_crop: false
9
+ checkpointing_steps: 10000
10
+ checkpoints_total_limit: null
11
+ compute_gradient_conflict: false
12
+ compute_runtimes: true
13
+ dataloader_num_workers: 2
14
+ dataset_forget_config_name: null
15
+ dataset_forget_name: assets/datasets/lfw_splits_filtered/Colin_Farrell/train_forget
16
+ dataset_retain_config_name: null
17
+ dataset_retain_name: assets/datasets/lfw_splits_filtered/Colin_Farrell/train_retain
18
+ device: cuda
19
+ enable_xformers_memory_efficient_attention: false
20
+ gradient_accumulation_steps: 2
21
+ gradient_checkpointing: false
22
+ hub_model_id: null
23
+ hub_token: null
24
+ image_column: image
25
+ is_lora_negated: false
26
+ learning_rate: 0.0006
27
+ local_rank: -1
28
+ logging_dir: logs
29
+ logging_steps: 20
30
+ lora_alpha: 4
31
+ lora_r: 16
32
+ lr_scheduler_type: constant
33
+ lr_warmup_steps: 0
34
+ max_grad_norm: 5.0
35
+ max_train_samples: null
36
+ max_train_steps: 800
37
+ mixed_precision: 'no'
38
+ model_name_or_path: CompVis/stable-diffusion-v1-4
39
+ n_gpu: 1
40
+ noise_offset: 0.0
41
+ num_train_epochs: 400
42
+ num_validation_images: 1
43
+ output_dir: assets/models/people_Colin_Farrell_distil_400
44
+ overwritting_concept: a child
45
+ per_device_train_batch_size: 2
46
+ prediction_type: null
47
+ random_flip: true
48
+ report_to: tensorboard
49
+ resolution: 512
50
+ resume_from_checkpoint: null
51
+ revision: null
52
+ save_strategy: epoch
53
+ save_total_limit: 2
54
+ seed: 42
55
+ should_log: true
56
+ use_8bit_adam: false
57
+ validation_epochs: 401
58
+ validation_prompt: An image of Colin Farrell
59
+ variant: null
models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/1770409042.4645815/events.out.tfevents.1770409042.erdos.cl.itk.ppke.hu.3004673.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9dc4ae82e1aeb6418657427213245d76a6a168510f24c16e309370de4531993c
3
+ size 2933
models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/1770409042.468625/hparams.yml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ adam_beta1: 0.9
2
+ adam_beta2: 0.999
3
+ adam_epsilon: 1.0e-08
4
+ adam_weight_decay: 0.01
5
+ allow_tf32: false
6
+ cache_dir: null
7
+ caption_column: text
8
+ center_crop: false
9
+ checkpointing_steps: 10000
10
+ checkpoints_total_limit: null
11
+ compute_gradient_conflict: false
12
+ compute_runtimes: true
13
+ dataloader_num_workers: 2
14
+ dataset_forget_config_name: null
15
+ dataset_forget_name: assets/datasets/lfw_splits_filtered/Colin_Farrell/train_forget
16
+ dataset_retain_config_name: null
17
+ dataset_retain_name: assets/datasets/lfw_splits_filtered/Colin_Farrell/train_retain
18
+ device: cuda
19
+ enable_xformers_memory_efficient_attention: false
20
+ gradient_accumulation_steps: 2
21
+ gradient_checkpointing: false
22
+ hub_model_id: null
23
+ hub_token: null
24
+ image_column: image
25
+ is_lora_negated: false
26
+ learning_rate: 0.0006
27
+ local_rank: -1
28
+ logging_dir: logs
29
+ logging_steps: 20
30
+ lora_alpha: 4
31
+ lora_r: 16
32
+ lr_scheduler_type: constant
33
+ lr_warmup_steps: 0
34
+ max_grad_norm: 5.0
35
+ max_train_samples: null
36
+ max_train_steps: 800
37
+ mixed_precision: 'no'
38
+ model_name_or_path: CompVis/stable-diffusion-v1-4
39
+ n_gpu: 1
40
+ noise_offset: 0.0
41
+ num_train_epochs: 400
42
+ num_validation_images: 1
43
+ output_dir: assets/models/people_Colin_Farrell_distil_400
44
+ overwritting_concept: a child
45
+ per_device_train_batch_size: 2
46
+ prediction_type: null
47
+ random_flip: true
48
+ report_to: tensorboard
49
+ resolution: 512
50
+ resume_from_checkpoint: null
51
+ revision: null
52
+ save_strategy: epoch
53
+ save_total_limit: 2
54
+ seed: 42
55
+ should_log: true
56
+ use_8bit_adam: false
57
+ validation_epochs: 401
58
+ validation_prompt: An image of Colin Farrell
59
+ variant: null
models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/events.out.tfevents.1770408707.erdos.cl.itk.ppke.hu.2991670.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d667db29396accef0e7c3a16619a60e11a2019e579f63750be36792d685467b
3
+ size 1087048
models/people_Colin_Farrell_distil_400/logs/text2image-fine-tune/events.out.tfevents.1770409042.erdos.cl.itk.ppke.hu.3004673.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ce2aeaa0143f54d2c7afd9c05d6bc29ff37fe05b37acd5a79dbef3eb0b0a8af
3
+ size 1087345
models/people_Colin_Farrell_distil_400/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d38a6715603be54714730719927c76af07123b951a3a13e135cbcae41872dc4a
3
+ size 12792952