ParrotG commited on
Commit
499d728
·
verified ·
1 Parent(s): 716d2fa

Upload resolved_config.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. resolved_config.yaml +409 -0
resolved_config.yaml ADDED
@@ -0,0 +1,409 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ project:
2
+ seed: 2026
3
+ run_name: clip_b16_multilayer_residual_consistency_v5
4
+ data:
5
+ repo_id: Shanmuk4622/ai-image-detection-dataset
6
+ revision: 8f1f536676f96cbc58bffd520ed50d1e7b9e894a
7
+ metadata_file: metadata/manifest.parquet
8
+ source_config_file: metadata/config.json
9
+ shard_cache_dir: data/cache/ai_image_detection_shards
10
+ output_dir: data/processed/mixed_aigc_80k
11
+ manifest_path: data/processed/mixed_aigc_80k/manifest.jsonl
12
+ audit_path: data/processed/mixed_aigc_80k/audit.json
13
+ state_path: data/processed/mixed_aigc_80k/selection_state.json
14
+ nuisance_report_path: data/processed/mixed_aigc_80k/nuisance_report.json
15
+ hf_auth: required
16
+ generators:
17
+ - sd15
18
+ - sdxl
19
+ - flux_schnell
20
+ - kandinsky22
21
+ - pixart_sigma
22
+ - wuerstchen
23
+ expected_parent_count: 10000
24
+ expected_pipeline_version: '1.2'
25
+ expected_image_size: 512
26
+ download_workers: 2
27
+ checkpoint_every_shards: 10
28
+ network_max_retries: 5
29
+ network_retry_base_seconds: 5.0
30
+ max_download_gb: 28.0
31
+ max_shard_cache_gb: 3.0
32
+ max_image_pixels: 50000000
33
+ exact_deduplication: true
34
+ perceptual_deduplication: true
35
+ perceptual_hash_size: 16
36
+ official_leakage_manifest: data/evaluation/wildfake_official/manifest.jsonl
37
+ official_leakage_root: data/evaluation/wildfake_official
38
+ leakage_phash_distance: 8
39
+ leakage_dhash_distance: 8
40
+ standardization:
41
+ enabled: true
42
+ application_probability: 0.75
43
+ resize_weight: 0.3
44
+ codec_weight: 0.3
45
+ resize_codec_weight: 0.4
46
+ resize_scale_min: 0.75
47
+ resize_scale_max: 1.0
48
+ jpeg_weight: 0.8
49
+ webp_weight: 0.2
50
+ quality_min: 85
51
+ quality_max: 100
52
+ nuisance_audit:
53
+ enabled: true
54
+ random_state: 2026
55
+ feature_size: 128
56
+ max_iter: 150
57
+ learning_rate: 0.08
58
+ max_leaf_nodes: 15
59
+ min_samples_leaf: 20
60
+ permutation_repeats: 5
61
+ max_train_samples: 12000
62
+ max_evaluation_samples: 4000
63
+ feature_workers: 4
64
+ mixed_data:
65
+ enabled: true
66
+ output_dir: data/processed/mixed_aigc_80k
67
+ manifest_path: data/processed/mixed_aigc_80k/manifest.jsonl
68
+ audit_path: data/processed/mixed_aigc_80k/audit.json
69
+ state_path: data/processed/mixed_aigc_80k/selection_state.json
70
+ dedup_report_path: data/processed/mixed_aigc_80k/dedup_report.json
71
+ distribution_report_path: data/processed/mixed_aigc_80k/distribution_report.json
72
+ cache_dir: data/cache/mixed_aigc_80k
73
+ shanmuk_root: data/processed/ai_image_detection_20k
74
+ community_root: data/processed/community_forensics_20k
75
+ shanmuk_repo_id: Shanmuk4622/ai-image-detection-dataset
76
+ shanmuk_revision: 8f1f536676f96cbc58bffd520ed50d1e7b9e894a
77
+ community_repo_id: OwensLab/CommunityForensics-Small
78
+ community_revision: 6c539a534c07917307c381f5af4053c6091b5278
79
+ tiny_genimage_repo_id: TheKernel01/Tiny-GenImage
80
+ tiny_genimage_revision: 89c4fe9efd0ebc7ce5c7641ef57d578ccd639c69
81
+ wildfake_repo_id: hy2628982280/WildFake
82
+ wildfake_revision: 18f53ff36ad9da60644039f0452b0e7b3907af6f
83
+ wildfake_train_metadata_file: split_train_test/csv_file/total_split/train_metadata.csv
84
+ wildfake_train_metadata_sha256: 26c6eacf6a34b7c61e7a1a3230c97624f58f857553cb525fe7f95dfbd5858be5
85
+ target_total: 80000
86
+ target_real: 40000
87
+ target_fake: 40000
88
+ reserve_multiplier: 1.25
89
+ max_network_gb: 80.0
90
+ storage_warning_min_gb: 25.0
91
+ storage_warning_max_gb: 45.0
92
+ download_workers: 4
93
+ hash_workers: 4
94
+ hash_checkpoint_every: 5000
95
+ checkpoint_every: 100
96
+ network_max_retries: 5
97
+ network_retry_base_seconds: 2.0
98
+ request_timeout_seconds: 60.0
99
+ max_image_pixels: 50000000
100
+ phash_size: 16
101
+ phash_distance: 8
102
+ dhash_distance: 8
103
+ crop_phash_distance: 8
104
+ source_quotas:
105
+ shanmuk:
106
+ train:
107
+ '0': 4000
108
+ '1': 4000
109
+ val_id:
110
+ '0': 1000
111
+ '1': 1000
112
+ val_dg:
113
+ '0': 0
114
+ '1': 0
115
+ wildfake:
116
+ train:
117
+ '0': 9000
118
+ '1': 9000
119
+ val_id:
120
+ '0': 0
121
+ '1': 0
122
+ val_dg:
123
+ '0': 4000
124
+ '1': 2000
125
+ community_forensics:
126
+ train:
127
+ '0': 13000
128
+ '1': 13000
129
+ val_id:
130
+ '0': 1000
131
+ '1': 2000
132
+ val_dg:
133
+ '0': 0
134
+ '1': 1000
135
+ tiny_genimage:
136
+ train:
137
+ '0': 6000
138
+ '1': 6000
139
+ val_id:
140
+ '0': 2000
141
+ '1': 1000
142
+ val_dg:
143
+ '0': 0
144
+ '1': 1000
145
+ external_deny_manifests:
146
+ - data/evaluation/wildfake_official/manifest.jsonl
147
+ - data/evaluation/wildfake_broad_6k/manifest.jsonl
148
+ - data/evaluation/sid_set_4k/manifest.jsonl
149
+ wildfake_train_real_sources:
150
+ - laion5b
151
+ - imagenet
152
+ - ffhq
153
+ - celebahq
154
+ wildfake_dg_real_sources:
155
+ - afhq
156
+ - church
157
+ wildfake_dg_fake_architectures:
158
+ - DDPM
159
+ - GALIP
160
+ - MAGE
161
+ global_heldout_generator_aliases:
162
+ - ddpm
163
+ - galip
164
+ - mage
165
+ - wukong
166
+ community_subset_weights:
167
+ Systematic: 0.5
168
+ Manual: 0.4
169
+ Commercial: 0.1
170
+ community_architecture_weights:
171
+ LatDiff: 0.5
172
+ GAN: 0.2
173
+ PixDiff: 0.15
174
+ other: 0.15
175
+ community_systematic_model_cap: 8
176
+ community_other_model_cap: 200
177
+ tiny_expected_rows: 35000
178
+ tiny_expected_license: cc-by-nc-sa-4.0
179
+ tiny_generators:
180
+ - ADM
181
+ - BigGAN
182
+ - GLIDE
183
+ - Midjourney
184
+ - SD14
185
+ - SD15
186
+ - VQDM
187
+ - Wukong
188
+ tiny_allowed_empty_generators:
189
+ - SD14
190
+ views:
191
+ input_size: 224
192
+ global_crop_scale_min: 0.9
193
+ global_crop_scale_max: 1.0
194
+ local_scale_min: 0.5
195
+ local_scale_max: 0.9
196
+ padding_color: 127
197
+ random_interpolation: true
198
+ augmentations:
199
+ transformed_clean_probability: 0.25
200
+ single_operation_probability: 0.5
201
+ double_operation_probability: 0.25
202
+ jpeg_quality_min: 30
203
+ jpeg_quality_max: 95
204
+ blur_sigma_min: 0.1
205
+ blur_sigma_max: 2.0
206
+ resize_scale_min: 0.25
207
+ resize_scale_max: 1.0
208
+ gaussian_noise_sigma_min: 0.0
209
+ gaussian_noise_sigma_max: 0.1
210
+ color_jitter_strength: 0.2
211
+ center_crop_min_fraction: 0.7
212
+ center_crop_max_fraction: 1.0
213
+ double_jpeg_weight: 0.08
214
+ webp_weight: 0.05
215
+ enable_double_jpeg: true
216
+ enable_webp: true
217
+ model:
218
+ backbone_name: ViT-B-16-quickgelu
219
+ pretrained: openai
220
+ embedding_dim: 512
221
+ intermediate_layers:
222
+ - 3
223
+ - 6
224
+ - 9
225
+ - 11
226
+ intermediate_dim: 768
227
+ head_dim: 256
228
+ projection_dim: 128
229
+ dropout: 0.1
230
+ residual_statistics_enabled: true
231
+ residual_statistics_dim: 24
232
+ residual_hidden_dim: 64
233
+ loss:
234
+ classification_weight: 1.0
235
+ consistency_weight: 0.5
236
+ consistency_rampup_epochs: 1
237
+ contrastive_weight: 0.05
238
+ contrastive_temperature: 0.1
239
+ training:
240
+ epochs: 8
241
+ batch_size: 64
242
+ gradient_accumulation_steps: 1
243
+ learning_rate: 0.0001
244
+ weight_decay: 0.001
245
+ warmup_fraction: 0.05
246
+ num_workers: 12
247
+ prefetch_factor: 1
248
+ persistent_workers: false
249
+ amp: true
250
+ amp_dtype: fp16
251
+ device: auto
252
+ gradient_clip_norm: 1.0
253
+ early_stopping_patience: 3
254
+ threshold: 0.5
255
+ resume_from: null
256
+ pin_memory: true
257
+ output:
258
+ root_dir: artifacts/runs
259
+ save_last: true
260
+ keep_best_only: false
261
+ feature_cache:
262
+ root_dir: data/processed/feature_cache
263
+ use_for_training: true
264
+ train_variants: 2
265
+ shard_size: 2048
266
+ batch_size: 64
267
+ num_workers: 12
268
+ prefetch_factor: 1
269
+ pin_memory: true
270
+ dtype: float16
271
+ official_evaluation:
272
+ repo_id: hy2628982280/WildFake
273
+ revision: master
274
+ output_dir: data/evaluation/wildfake_official
275
+ manifest_path: data/evaluation/wildfake_official/manifest.jsonl
276
+ audit_path: data/evaluation/wildfake_official/audit.json
277
+ metadata_dir: data/cache/wildfake_official_metadata
278
+ results_path: artifacts/evaluations/wildfake_official/results.json
279
+ predictions_path: artifacts/evaluations/wildfake_official/predictions.jsonl
280
+ dalle_metadata_file: label_csv_files/dalle3.csv
281
+ coco_metadata_file: label_csv_files/real_coco.csv
282
+ dalle_archive_file: Images/Diffusion_based/DALLE.zip
283
+ coco_archive_file: Images/Real/coco.zip
284
+ dalle_archive_sha256: 5e4ebc56daa06ebeec99711b9cc204571558d3e17366f2df992a8cfd4f251d4c
285
+ coco_archive_sha256: 0b4dda0968e5f0d3cb60434c24204fcdac1cc0b40018093f15307edd545905b3
286
+ expected_real_count: 4998
287
+ expected_fake_count: 8843
288
+ max_download_gb: 4.0
289
+ checkpoint_every: 100
290
+ request_timeout_seconds: 60.0
291
+ network_max_retries: 5
292
+ network_retry_backoff: 1.0
293
+ evaluation:
294
+ checkpoint_path: artifacts/runs/clip_b16_multilayer_v3/best.pt
295
+ batch_size: 32
296
+ num_workers: 8
297
+ prefetch_factor: 2
298
+ save_predictions: true
299
+ calibration_path: null
300
+ external_feature_cache_enabled: true
301
+ external_feature_cache_dir: data/processed/external_feature_cache
302
+ external_feature_cache_dtype: float16
303
+ fast_max_samples: 2000
304
+ fast_scenarios:
305
+ - clean
306
+ - jpeg_30
307
+ - blur_2.0
308
+ - resize_0.25
309
+ - noise_0.10
310
+ - color_jitter_0.20
311
+ - center_crop_0.80
312
+ - combo_stress_crop_0.80_blur_1.0_resize_0.25_jpeg_30
313
+ enable_composed_scenarios: true
314
+ scenarios:
315
+ - clean
316
+ - jpeg_90
317
+ - jpeg_70
318
+ - jpeg_50
319
+ - jpeg_30
320
+ - blur_0.5
321
+ - blur_1.0
322
+ - blur_2.0
323
+ - resize_0.5
324
+ - resize_0.25
325
+ - noise_0.02
326
+ - noise_0.05
327
+ - noise_0.10
328
+ - color_jitter_0.20
329
+ - center_crop_0.80
330
+ composed_scenarios:
331
+ - combo_social_resize_0.5_jpeg_70
332
+ - combo_repost_jpeg_90_resize_0.5_jpeg_70
333
+ - combo_crop_0.80_resize_0.5_jpeg_70
334
+ - combo_blur_1.0_resize_0.5_jpeg_50
335
+ - combo_edit_color_0.20_noise_0.02_jpeg_70
336
+ - combo_stress_crop_0.80_blur_1.0_resize_0.25_jpeg_30
337
+ wildfake_evaluation:
338
+ repo_id: hy2628982280/WildFake
339
+ revision: master
340
+ metadata_file: split_train_test/csv_file/total_split/test_metadata.csv
341
+ metadata_sha256: 0cec85fcec02e6e262f5b9726560b0355ab1293a30d29f063bf10a3c9d1b16c3
342
+ metadata_dir: data/cache/wildfake_broad_metadata
343
+ integrity_cache_path: data/cache/wildfake_broad_metadata/archive_integrity.json
344
+ output_dir: data/evaluation/wildfake_broad_6k
345
+ manifest_path: data/evaluation/wildfake_broad_6k/manifest.jsonl
346
+ audit_path: data/evaluation/wildfake_broad_6k/audit.json
347
+ state_path: data/evaluation/wildfake_broad_6k/preparation_state.json
348
+ results_path: artifacts/evaluations/wildfake_broad_6k/results.json
349
+ predictions_path: artifacts/evaluations/wildfake_broad_6k/predictions.jsonl
350
+ target_real: 3000
351
+ target_fake: 3000
352
+ fake_families:
353
+ - GAN_based
354
+ - Diffusion_based
355
+ - Other_based
356
+ fake_architectures:
357
+ - BigGAN
358
+ - DF-GAN
359
+ - GALIP
360
+ - GigaGAN
361
+ - starGAN
362
+ - styleGAN
363
+ - ADM
364
+ - DDIM
365
+ - DDPM
366
+ - Imagen
367
+ - VQDM
368
+ - MAE
369
+ - MAGE
370
+ - VQGAN
371
+ - VQVAE
372
+ real_sources:
373
+ - afhq
374
+ - celebahq
375
+ - church
376
+ - ffhq
377
+ - imagenet
378
+ - laion5b
379
+ excluded_source_paths:
380
+ - GAN_based/Advanced/GigaGAN/fake_images/18598.png
381
+ detect_extreme_zip_compression: true
382
+ extreme_zip_compression_ratio: 0.02
383
+ download_workers: 4
384
+ checkpoint_every: 100
385
+ request_timeout_seconds: 60.0
386
+ network_max_retries: 5
387
+ network_retry_backoff: 1.0
388
+ max_download_gb: 12.0
389
+ sid_evaluation:
390
+ repo_id: saberzl/SID_Set
391
+ revision: dc03ead57929879319ce30a82bfcfb8d317b10bd
392
+ split: validation
393
+ shard_prefix: data/validation-
394
+ shard_cache_dir: data/cache/sid_set_validation_shards
395
+ output_dir: data/evaluation/sid_set_4k
396
+ manifest_path: data/evaluation/sid_set_4k/manifest.jsonl
397
+ audit_path: data/evaluation/sid_set_4k/audit.json
398
+ state_path: data/evaluation/sid_set_4k/preparation_state.json
399
+ results_path: artifacts/evaluations/sid_set_4k/results.json
400
+ predictions_path: artifacts/evaluations/sid_set_4k/predictions.jsonl
401
+ hf_auth: auto
402
+ target_real: 2000
403
+ target_fake: 2000
404
+ download_workers: 3
405
+ checkpoint_every_shards: 1
406
+ network_max_retries: 5
407
+ network_retry_base_seconds: 5.0
408
+ max_download_gb: 18.0
409
+ max_shard_cache_gb: 2.0