LeonardoBenitez commited on
Commit
eaea0b8
·
verified ·
1 Parent(s): 89b14a0

Upload folder using huggingface_hub

Browse files
Files changed (15) hide show
  1. models/breeds_american water spaniel dog_munba_050/README.md +212 -0
  2. models/breeds_american water spaniel dog_munba_050/images/Forget - An image of an american water spaniel dog.png +3 -0
  3. models/breeds_american water spaniel dog_munba_050/images/Forget - An picture of an american water spaniel dog in the rain.png +3 -0
  4. models/breeds_american water spaniel dog_munba_050/images/Forget - An picture of an american water spaniel dog running.png +3 -0
  5. models/breeds_american water spaniel dog_munba_050/images/Forget - Photograph of an american water spaniel dog; high definition.png +3 -0
  6. models/breeds_american water spaniel dog_munba_050/images/Retain - An image of a sealyham terrier dog.png +3 -0
  7. models/breeds_american water spaniel dog_munba_050/images/Retain - An picture of a sealyham terrier dog in the rain.png +3 -0
  8. models/breeds_american water spaniel dog_munba_050/images/Retain - An picture of a sealyham terrier dog running.png +3 -0
  9. models/breeds_american water spaniel dog_munba_050/images/Retain - Photograph of a sealyham terrier dog; high definition.png +3 -0
  10. models/breeds_american water spaniel dog_munba_050/images/tst_prompt_49_01.png +3 -0
  11. models/breeds_american water spaniel dog_munba_050/images/val_prompt_00_01.png +3 -0
  12. models/breeds_american water spaniel dog_munba_050/logs/text2image-fine-tune/1780639944.3877344/events.out.tfevents.1780639944.wald.cl.itk.ppke.hu.2140494.3 +3 -0
  13. models/breeds_american water spaniel dog_munba_050/logs/text2image-fine-tune/1780639944.3904238/hparams.yml +61 -0
  14. models/breeds_american water spaniel dog_munba_050/logs/text2image-fine-tune/events.out.tfevents.1780639944.wald.cl.itk.ppke.hu.2140494.2 +3 -0
  15. models/breeds_american water spaniel dog_munba_050/pytorch_lora_weights.safetensors +3 -0
models/breeds_american water spaniel dog_munba_050/README.md ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ hyperparameters:
3
+ lora_r: 16
4
+ lora_alpha: 4
5
+ is_lora_negated: true
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/taras_breeds_splits_filtered/american water
11
+ spaniel dog/train_forget
12
+ dataset_retain_name: assets/datasets/taras_breeds_splits_filtered/american water
13
+ spaniel dog/train_retain
14
+ dataset_forget_config_name: null
15
+ dataset_retain_config_name: null
16
+ image_column: image
17
+ caption_column: text
18
+ validation_prompt: An image of an american water spaniel dog
19
+ num_validation_images: 1
20
+ validation_epochs: 51
21
+ resolution: 512
22
+ center_crop: false
23
+ random_flip: true
24
+ max_train_samples: null
25
+ dataloader_num_workers: 2
26
+ prediction_type: null
27
+ per_device_train_batch_size: 2
28
+ gradient_accumulation_steps: 2
29
+ num_train_epochs: 50
30
+ learning_rate: 0.0004
31
+ lr_scheduler_type: constant
32
+ should_log: true
33
+ local_rank: -1
34
+ device: cuda
35
+ n_gpu: 1
36
+ output_dir: assets/models/breeds_american water spaniel dog_munba_050
37
+ cache_dir: null
38
+ hub_token: null
39
+ hub_model_id: null
40
+ logging_dir: logs
41
+ logging_steps: 20
42
+ save_strategy: epoch
43
+ save_total_limit: 2
44
+ gradient_checkpointing: false
45
+ enable_xformers_memory_efficient_attention: false
46
+ mixed_precision: 'no'
47
+ allow_tf32: false
48
+ use_8bit_adam: false
49
+ report_to: tensorboard
50
+ compute_gradient_conflict: false
51
+ compute_runtimes: true
52
+ compute_memory: true
53
+ max_train_steps: 450
54
+ lr_warmup_steps: 0
55
+ adam_beta1: 0.9
56
+ adam_beta2: 0.999
57
+ adam_weight_decay: 0.01
58
+ adam_epsilon: 1.0e-08
59
+ max_grad_norm: 1.5
60
+ checkpointing_steps: 10000
61
+ checkpoints_total_limit: null
62
+ resume_from_checkpoint: null
63
+ noise_offset: 0.0
64
+ model-index:
65
+ - name: None
66
+ results:
67
+ - task:
68
+ type: text-to-image
69
+ dataset:
70
+ name: Forget set
71
+ type: inline-prompts
72
+ metrics:
73
+ - type: clip
74
+ value: 37.19873332977295
75
+ name: ForgetSet clip score of original model mean (~↑)
76
+ - type: clip
77
+ value: 2.0067097480929195
78
+ name: ForgetSet clip score of original model std (~↓)
79
+ - type: clip
80
+ value: 21.743590831756592
81
+ name: ForgetSet clip score of learned model mean (~↑)
82
+ - type: clip
83
+ value: 1.13475175827423
84
+ name: ForgetSet clip score of learned model std (~↓)
85
+ - type: clip
86
+ value: 26.336106777191162
87
+ name: ForgetSet clip score of unlearned model mean (↓)
88
+ - type: clip
89
+ value: 3.9171443662075
90
+ name: ForgetSet clip score of unlearned model std (~↓)
91
+ - type: clip
92
+ value: -4.59251594543457
93
+ name: ForgetSet clip score difference between learned and unlearned mean (↑)
94
+ - type: clip
95
+ value: 4.8063191709704025
96
+ name: ForgetSet clip score difference between learned and unlearned std (~↓)
97
+ - type: clip
98
+ value: 10.862626552581787
99
+ name: ForgetSet clip score difference between original and unlearned mean (↑)
100
+ - type: clip
101
+ value: 5.373879680547634
102
+ name: ForgetSet clip score difference between original and unlearned std (~↓)
103
+ - type: clip
104
+ value: 15.455142498016357
105
+ name: ForgetSet clip score difference between original and learned mean (↓)
106
+ - type: clip
107
+ value: 0.988702572635266
108
+ name: ForgetSet clip score difference between original and learned std (~↓)
109
+ - type: clip
110
+ value: 35.713871002197266
111
+ name: RetainSet clip score of original model mean (~↑)
112
+ - type: clip
113
+ value: 1.8079891847772123
114
+ name: RetainSet clip score of original model std (~↓)
115
+ - type: clip
116
+ value: 18.735678672790527
117
+ name: RetainSet clip score of learned model mean (~↓)
118
+ - type: clip
119
+ value: 1.3234329568815053
120
+ name: RetainSet clip score of learned model std (~↓)
121
+ - type: clip
122
+ value: 26.849785804748535
123
+ name: RetainSet clip score of unlearned model mean (↑)
124
+ - type: clip
125
+ value: 2.265064775285683
126
+ name: RetainSet clip score of unlearned model std (~↓)
127
+ - type: clip
128
+ value: -8.114107131958008
129
+ name: RetainSet clip score difference between learned and unlearned mean (↓)
130
+ - type: clip
131
+ value: 2.928231759764153
132
+ name: RetainSet clip score difference between learned and unlearned std (~↓)
133
+ - type: clip
134
+ value: 8.86408519744873
135
+ name: RetainSet clip score difference between original and unlearned mean (↓)
136
+ - type: clip
137
+ value: 2.6146511582800973
138
+ name: RetainSet clip score difference between original and unlearned std (~↓)
139
+ - type: clip
140
+ value: 16.97819232940674
141
+ name: RetainSet clip score difference between original and learned mean (↑)
142
+ - type: clip
143
+ value: 0.9139145501244565
144
+ name: RetainSet clip score difference between original and learned std (~↓)
145
+ - type: runtime
146
+ value: 6.177328070004781
147
+ name: Inference latency seconds mean (↓)
148
+ - type: runtime
149
+ value: 0.12499621754806164
150
+ name: Inference latency seconds std (~↓)
151
+ - task:
152
+ type: text-to-image
153
+ dataset:
154
+ name: assets/datasets/taras_breeds_splits_filtered/american water spaniel dog/train_forget
155
+ (forget) and assets/datasets/taras_breeds_splits_filtered/american water spaniel
156
+ dog/train_retain (retain) sets
157
+ type: forget-and-retain-together
158
+ metrics:
159
+ - type: runtime
160
+ value: 3.1343159675598145
161
+ name: Runtime init seconds (~↓)
162
+ - type: runtime
163
+ value: 33.06040668487549
164
+ name: Runtime data loading seconds (~↓)
165
+ - type: runtime
166
+ value: 2473.5920486450195
167
+ name: Runtime training seconds (↓)
168
+ - type: runtime
169
+ value: 163.05546045303345
170
+ name: Runtime eval seconds (~↓)
171
+ - type: memory
172
+ value: 0
173
+ name: Peak memory usage in training (~↓)
174
+ ---
175
+
176
+ <!-- This model card has been generated automatically according to the information the training script had access to. You
177
+ should probably proofread and complete it, then remove this comment. -->
178
+
179
+
180
+ # LoRA text2image fine-tuning - None
181
+ These are LoRA adaption weights for CompVis/stable-diffusion-v1-4.
182
+ The weights were fine-tuned for forgetting assets/datasets/taras_breeds_splits_filtered/american water spaniel dog/train_forget dataset, while retaining assets/datasets/taras_breeds_splits_filtered/american water spaniel dog/train_retain.
183
+ You can find some example images in the following.
184
+
185
+ ![img](images/val_prompt_00_01.png)
186
+ ![img](images/tst_prompt_49_01.png)
187
+ ![img](images/Forget - An image of an american water spaniel dog.png)
188
+ ![img](images/Forget - Photograph of an american water spaniel dog; high definition.png)
189
+ ![img](images/Forget - An picture of an american water spaniel dog in the rain.png)
190
+ ![img](images/Forget - An picture of an american water spaniel dog running.png)
191
+ ![img](images/Retain - An image of a sealyham terrier dog.png)
192
+ ![img](images/Retain - Photograph of a sealyham terrier dog; high definition.png)
193
+ ![img](images/Retain - An picture of a sealyham terrier dog in the rain.png)
194
+ ![img](images/Retain - An picture of a sealyham terrier dog running.png)
195
+
196
+
197
+
198
+ ## Intended uses & limitations
199
+
200
+ #### How to use
201
+
202
+ ```python
203
+ # TODO: add an example code snippet for running this diffusion pipeline
204
+ ```
205
+
206
+ #### Limitations and bias
207
+
208
+ [TODO: provide examples of latent issues and potential remediations]
209
+
210
+ ## Training details
211
+
212
+ [TODO: describe the data used to train the model]
models/breeds_american water spaniel dog_munba_050/images/Forget - An image of an american water spaniel dog.png ADDED

Git LFS Details

  • SHA256: 77c3ff39c3e8812a388cef9b7e6703d1a91526593e92fb74f784380aa265eeb2
  • Pointer size: 131 Bytes
  • Size of remote file: 773 kB
models/breeds_american water spaniel dog_munba_050/images/Forget - An picture of an american water spaniel dog in the rain.png ADDED

Git LFS Details

  • SHA256: 251c1551e742f0262290da63598a2b559d998b405533588d3343b3bea7610e79
  • Pointer size: 131 Bytes
  • Size of remote file: 791 kB
models/breeds_american water spaniel dog_munba_050/images/Forget - An picture of an american water spaniel dog running.png ADDED

Git LFS Details

  • SHA256: cc9c345e210c89d3f848507d7627c9dd3889eead4ee5bb8c0565532e325cc1f8
  • Pointer size: 131 Bytes
  • Size of remote file: 760 kB
models/breeds_american water spaniel dog_munba_050/images/Forget - Photograph of an american water spaniel dog; high definition.png ADDED

Git LFS Details

  • SHA256: 3d036ae6ec37fb4c34d7e9874e0e2b667c61d9223b5e3f80c00001bef820f908
  • Pointer size: 131 Bytes
  • Size of remote file: 795 kB
models/breeds_american water spaniel dog_munba_050/images/Retain - An image of a sealyham terrier dog.png ADDED

Git LFS Details

  • SHA256: f31e2d35c5fcd3a6a1a11996a7213401419129697c41812db8f1aad59a6ccf6f
  • Pointer size: 131 Bytes
  • Size of remote file: 819 kB
models/breeds_american water spaniel dog_munba_050/images/Retain - An picture of a sealyham terrier dog in the rain.png ADDED

Git LFS Details

  • SHA256: c26a29f6a5554109b7669ee7b5320d5998a6b0f1aba86e1b3fbb5036da8925b8
  • Pointer size: 131 Bytes
  • Size of remote file: 816 kB
models/breeds_american water spaniel dog_munba_050/images/Retain - An picture of a sealyham terrier dog running.png ADDED

Git LFS Details

  • SHA256: 2cc9dd7081c85362cc1a4a4a8939d7162e5e3c1e9fc272b14d9e2ecde5aef9b1
  • Pointer size: 131 Bytes
  • Size of remote file: 826 kB
models/breeds_american water spaniel dog_munba_050/images/Retain - Photograph of a sealyham terrier dog; high definition.png ADDED

Git LFS Details

  • SHA256: 4643a186478de5ac2fdbd352941ee64911ee50eb8253b76b9fdf86be46cb7262
  • Pointer size: 131 Bytes
  • Size of remote file: 858 kB
models/breeds_american water spaniel dog_munba_050/images/tst_prompt_49_01.png ADDED

Git LFS Details

  • SHA256: 1c8772e806235d72709de83592aa9eb3fab3e635c8edbcbc9f2faec78baffe47
  • Pointer size: 131 Bytes
  • Size of remote file: 601 kB
models/breeds_american water spaniel dog_munba_050/images/val_prompt_00_01.png ADDED

Git LFS Details

  • SHA256: cb014581f1b9110cb2024a72f60a2fdddc6a509950665250020b27aeeb65d53b
  • Pointer size: 131 Bytes
  • Size of remote file: 529 kB
models/breeds_american water spaniel dog_munba_050/logs/text2image-fine-tune/1780639944.3877344/events.out.tfevents.1780639944.wald.cl.itk.ppke.hu.2140494.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9942b54bd16a7f923aca674bc7fd1504e9b280f98d096cf346c0f6eeacda588
3
+ size 2993
models/breeds_american water spaniel dog_munba_050/logs/text2image-fine-tune/1780639944.3904238/hparams.yml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_memory: true
13
+ compute_runtimes: true
14
+ dataloader_num_workers: 2
15
+ dataset_forget_config_name: null
16
+ dataset_forget_name: assets/datasets/taras_breeds_splits_filtered/american water spaniel
17
+ dog/train_forget
18
+ dataset_retain_config_name: null
19
+ dataset_retain_name: assets/datasets/taras_breeds_splits_filtered/american water spaniel
20
+ dog/train_retain
21
+ device: cuda
22
+ enable_xformers_memory_efficient_attention: false
23
+ gradient_accumulation_steps: 2
24
+ gradient_checkpointing: false
25
+ hub_model_id: null
26
+ hub_token: null
27
+ image_column: image
28
+ is_lora_negated: true
29
+ learning_rate: 0.0004
30
+ local_rank: -1
31
+ logging_dir: logs
32
+ logging_steps: 20
33
+ lora_alpha: 4
34
+ lora_r: 16
35
+ lr_scheduler_type: constant
36
+ lr_warmup_steps: 0
37
+ max_grad_norm: 1.5
38
+ max_train_samples: null
39
+ max_train_steps: 450
40
+ mixed_precision: 'no'
41
+ model_name_or_path: CompVis/stable-diffusion-v1-4
42
+ n_gpu: 1
43
+ noise_offset: 0.0
44
+ num_train_epochs: 50
45
+ num_validation_images: 1
46
+ output_dir: assets/models/breeds_american water spaniel dog_munba_050
47
+ per_device_train_batch_size: 2
48
+ prediction_type: null
49
+ random_flip: true
50
+ report_to: tensorboard
51
+ resolution: 512
52
+ resume_from_checkpoint: null
53
+ revision: null
54
+ save_strategy: epoch
55
+ save_total_limit: 2
56
+ seed: 42
57
+ should_log: true
58
+ use_8bit_adam: false
59
+ validation_epochs: 51
60
+ validation_prompt: An image of an american water spaniel dog
61
+ variant: null
models/breeds_american water spaniel dog_munba_050/logs/text2image-fine-tune/events.out.tfevents.1780639944.wald.cl.itk.ppke.hu.2140494.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e52998d56c1f3d3629a6812ae4777848d32bfb9ce3b43cf5592902d7104b986
3
+ size 1180255
models/breeds_american water spaniel dog_munba_050/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:926a8b695f703cc9a78c3cf95b2ab5794d7e282ac1afd2888109c249fa806358
3
+ size 12792952