DanielNguyen121 commited on
Commit
419c1e1
·
verified ·
1 Parent(s): 26baf62

Initialize SPC Caltech101 fine-tuning caltech101_disef_spc_20261006T125607Z_6c63e378

Browse files
Files changed (17) hide show
  1. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/config/environment.json +31 -0
  2. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/config/pets_to_caltech_comparison.json +106 -0
  3. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/config/resolved_config.json +69 -0
  4. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/class_mapping.json +702 -0
  5. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/fewshot_support.json +1809 -0
  6. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/real_dataset_manifest.json +127 -0
  7. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/split_coop_Caltech101.csv +0 -0
  8. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/split_metadata.json +12 -0
  9. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/synthetic_manifest.json +119 -0
  10. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/results/smoke_test.json +21 -0
  11. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/disef_spc_runner.py +311 -0
  12. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/disef_spc_supervisor.py +48 -0
  13. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/patch_notes.md +7 -0
  14. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/qwen_trainability.patch +12 -0
  15. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/spc_fixes.patch +401 -0
  16. finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/versions.json +8 -0
  17. finetune_runs/caltech101_disef_spc/latest.json +8 -0
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/config/environment.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cuda": "13.0",
3
+ "dataset_fingerprints": {
4
+ "real_archive_sha256": "331234750fc7f77520e50d9565e8b6907b03565e30320da1401130db08c61f91",
5
+ "split_sha256": "8d52725a2e4273ffbc03a1f6d923e5c01baf1595f9572b4f14f63046ada21110",
6
+ "support_selection_sha256": "2485b4a8b73946ebe11201185e99793660870dca862c05c73df902a1ca6f3942",
7
+ "synthetic_zip_sha256": "d8647f2d96bad27d5da67a6703ed49d861d90da22c3d49b31f78e53734fd0674"
8
+ },
9
+ "gpu": "NVIDIA RTX PRO 6000 Blackwell Server Edition",
10
+ "packages": {
11
+ "huggingface-hub": "1.33.0",
12
+ "munch": "4.0.0",
13
+ "peft": "0.21.2",
14
+ "tensorboard": "2.21.0",
15
+ "torchao": "0.16.0",
16
+ "torchvision": "0.26.0",
17
+ "transformers": "5.18.0"
18
+ },
19
+ "python": "3.13.11",
20
+ "run_id": "caltech101_disef_spc_20261006T125607Z_6c63e378",
21
+ "started_at": "2026-10-06T12:56:07.222882+00:00",
22
+ "torch": "2.11.0+cu130",
23
+ "versions": {
24
+ "official_disef_commit": "e06b55e0ffc55f1856b53797060dabae0ac6b942",
25
+ "pets_reference_run_id": "pets_disef_spc_20261006T095342Z_69107b0a",
26
+ "qwen_commit": "393e2978d27852b0d0230d6994f37f9c15bed73c",
27
+ "qwen_patch_sha256": "48373674607381f0a345a4da7e39eef0450c12c2e041e1293c5eb5232cc384f9",
28
+ "spc_commit": "96834b22d5e59c852e53d713d434cbabb2f0d165",
29
+ "spc_patch_sha256": "339f9b87dcfb4f64ee03d85f46056dd9946f3a8040aa7c20d704a0281db3d1ed"
30
+ }
31
+ }
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/config/pets_to_caltech_comparison.json ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": [
3
+ "Qwen/Qwen3-VL-Embedding-2B",
4
+ "Qwen/Qwen3-VL-Embedding-2B"
5
+ ],
6
+ "lora": [
7
+ {
8
+ "alpha": 32,
9
+ "bias": "none",
10
+ "dropout": 0.1,
11
+ "r": 16,
12
+ "target_modules": [
13
+ "qkv",
14
+ "proj",
15
+ "q_proj",
16
+ "v_proj"
17
+ ],
18
+ "task_type": "FEATURE_EXTRACTION"
19
+ },
20
+ {
21
+ "alpha": 32,
22
+ "bias": "none",
23
+ "dropout": 0.1,
24
+ "r": 16,
25
+ "target_modules": [
26
+ "qkv",
27
+ "proj",
28
+ "q_proj",
29
+ "v_proj"
30
+ ],
31
+ "task_type": "FEATURE_EXTRACTION"
32
+ }
33
+ ],
34
+ "optimizer": [
35
+ {
36
+ "lr": 0.0001,
37
+ "name": "AdamW",
38
+ "weight_decay": 0.01
39
+ },
40
+ {
41
+ "lr": 0.0001,
42
+ "name": "AdamW",
43
+ "weight_decay": 0.01
44
+ }
45
+ ],
46
+ "scheduler": [
47
+ "none",
48
+ "none"
49
+ ],
50
+ "epochs": [
51
+ 40,
52
+ 40
53
+ ],
54
+ "batch_size": [
55
+ 64,
56
+ 64
57
+ ],
58
+ "eval_batch_size": [
59
+ 128,
60
+ 128
61
+ ],
62
+ "shot": [
63
+ 16,
64
+ 16
65
+ ],
66
+ "seed": [
67
+ 0,
68
+ 0
69
+ ],
70
+ "split_seed": [
71
+ 1,
72
+ 1
73
+ ],
74
+ "loss": [
75
+ {
76
+ "lambda0": 0.8,
77
+ "lambda1": 0.2,
78
+ "lambda2": 0.04,
79
+ "lambda3": 0.02,
80
+ "num_samples": 30,
81
+ "use_l0": true,
82
+ "use_l1": true,
83
+ "use_l2": false,
84
+ "use_l3": false
85
+ },
86
+ {
87
+ "lambda0": 0.8,
88
+ "lambda1": 0.2,
89
+ "lambda2": 0.04,
90
+ "lambda3": 0.02,
91
+ "num_samples": 30,
92
+ "use_l0": true,
93
+ "use_l1": true,
94
+ "use_l2": false,
95
+ "use_l3": false
96
+ }
97
+ ],
98
+ "transform": [
99
+ "RGB conversion only (SPC Qwen)",
100
+ "RGB conversion only (SPC Qwen)"
101
+ ],
102
+ "checkpoint_selection": [
103
+ "maximum full validation accuracy",
104
+ "maximum full validation accuracy"
105
+ ]
106
+ }
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/config/resolved_config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "background_google_policy": "excluded by official split",
3
+ "batch_size": 64,
4
+ "checkpoint_selection": "maximum full validation accuracy",
5
+ "class_count": 100,
6
+ "class_mapping": "/marimo/runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/class_mapping.json",
7
+ "dataset": "caltech101",
8
+ "epochs": 40,
9
+ "eval_batch_size": 128,
10
+ "faces_easy_policy": "excluded by SPC/DISEF split",
11
+ "hf_repo": "DanielNguyen121/DisEF-Caltech",
12
+ "hf_run_prefix": "finetune_runs/caltech101_disef_spc",
13
+ "logit_scale": 15,
14
+ "lora": {
15
+ "alpha": 32,
16
+ "bias": "none",
17
+ "dropout": 0.1,
18
+ "r": 16,
19
+ "target_modules": [
20
+ "qkv",
21
+ "proj",
22
+ "q_proj",
23
+ "v_proj"
24
+ ],
25
+ "task_type": "FEATURE_EXTRACTION"
26
+ },
27
+ "loss": {
28
+ "lambda0": 0.8,
29
+ "lambda1": 0.2,
30
+ "lambda2": 0.04,
31
+ "lambda3": 0.02,
32
+ "num_samples": 30,
33
+ "use_l0": true,
34
+ "use_l1": true,
35
+ "use_l2": false,
36
+ "use_l3": false
37
+ },
38
+ "model_local_path": "/marimo/data/disef_caltech/models/Qwen3-VL-Embedding-2B",
39
+ "model_name": "Qwen/Qwen3-VL-Embedding-2B",
40
+ "num_workers": 4,
41
+ "official_disef_commit": "e06b55e0ffc55f1856b53797060dabae0ac6b942",
42
+ "optimizer": {
43
+ "lr": 0.0001,
44
+ "name": "AdamW",
45
+ "weight_decay": 0.01
46
+ },
47
+ "precision": "torch.amp.autocast(cuda) + GradScaler(cuda)",
48
+ "qwen_commit": "393e2978d27852b0d0230d6994f37f9c15bed73c",
49
+ "real_images_dir": "/marimo/data/disef_caltech/real/caltech101/101_ObjectCategories",
50
+ "real_path_layout": "class_subdirectories",
51
+ "run_id": "caltech101_disef_spc_20261006T125607Z_6c63e378",
52
+ "scheduler": "none",
53
+ "seed": 0,
54
+ "shot": 16,
55
+ "source_archive_sha256": "331234750fc7f77520e50d9565e8b6907b03565e30320da1401130db08c61f91",
56
+ "spc_commit": "96834b22d5e59c852e53d713d434cbabb2f0d165",
57
+ "split_csv": "/marimo/runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/split_coop_Caltech101.csv",
58
+ "split_seed": 1,
59
+ "support_manifest": "/marimo/runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/fewshot_support.json",
60
+ "support_selection_sha256": "2485b4a8b73946ebe11201185e99793660870dca862c05c73df902a1ca6f3942",
61
+ "synthetic_archive_sha256": "d8647f2d96bad27d5da67a6703ed49d861d90da22c3d49b31f78e53734fd0674",
62
+ "synthetic_dir": "/marimo/data/disef_caltech/synthetic/images",
63
+ "synthetic_per_class": 64,
64
+ "test_size": 2465,
65
+ "test_split": "official DISEF/CoOp test, 2465 images; evaluated once after best validation selection",
66
+ "transform": "RGB conversion only (SPC Qwen)",
67
+ "validation_size": 1649,
68
+ "validation_split": "official DISEF/CoOp val, 1649 images"
69
+ }
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/class_mapping.json ADDED
@@ -0,0 +1,702 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "normalized_class_name": "face",
4
+ "real_folder": "Faces",
5
+ "spc_class_name": "face",
6
+ "spc_index": 0,
7
+ "synthetic_folder": "face"
8
+ },
9
+ {
10
+ "normalized_class_name": "leopard",
11
+ "real_folder": "Leopards",
12
+ "spc_class_name": "leopard",
13
+ "spc_index": 1,
14
+ "synthetic_folder": "leopard"
15
+ },
16
+ {
17
+ "normalized_class_name": "motorbike",
18
+ "real_folder": "Motorbikes",
19
+ "spc_class_name": "motorbike",
20
+ "spc_index": 2,
21
+ "synthetic_folder": "motorbike"
22
+ },
23
+ {
24
+ "normalized_class_name": "accordion",
25
+ "real_folder": "accordion",
26
+ "spc_class_name": "accordion",
27
+ "spc_index": 3,
28
+ "synthetic_folder": "accordion"
29
+ },
30
+ {
31
+ "normalized_class_name": "airplane",
32
+ "real_folder": "airplanes",
33
+ "spc_class_name": "airplane",
34
+ "spc_index": 4,
35
+ "synthetic_folder": "airplane"
36
+ },
37
+ {
38
+ "normalized_class_name": "anchor",
39
+ "real_folder": "anchor",
40
+ "spc_class_name": "anchor",
41
+ "spc_index": 5,
42
+ "synthetic_folder": "anchor"
43
+ },
44
+ {
45
+ "normalized_class_name": "ant",
46
+ "real_folder": "ant",
47
+ "spc_class_name": "ant",
48
+ "spc_index": 6,
49
+ "synthetic_folder": "ant"
50
+ },
51
+ {
52
+ "normalized_class_name": "barrel",
53
+ "real_folder": "barrel",
54
+ "spc_class_name": "barrel",
55
+ "spc_index": 7,
56
+ "synthetic_folder": "barrel"
57
+ },
58
+ {
59
+ "normalized_class_name": "bass",
60
+ "real_folder": "bass",
61
+ "spc_class_name": "bass",
62
+ "spc_index": 8,
63
+ "synthetic_folder": "bass"
64
+ },
65
+ {
66
+ "normalized_class_name": "beaver",
67
+ "real_folder": "beaver",
68
+ "spc_class_name": "beaver",
69
+ "spc_index": 9,
70
+ "synthetic_folder": "beaver"
71
+ },
72
+ {
73
+ "normalized_class_name": "binocular",
74
+ "real_folder": "binocular",
75
+ "spc_class_name": "binocular",
76
+ "spc_index": 10,
77
+ "synthetic_folder": "binocular"
78
+ },
79
+ {
80
+ "normalized_class_name": "bonsai",
81
+ "real_folder": "bonsai",
82
+ "spc_class_name": "bonsai",
83
+ "spc_index": 11,
84
+ "synthetic_folder": "bonsai"
85
+ },
86
+ {
87
+ "normalized_class_name": "brain",
88
+ "real_folder": "brain",
89
+ "spc_class_name": "brain",
90
+ "spc_index": 12,
91
+ "synthetic_folder": "brain"
92
+ },
93
+ {
94
+ "normalized_class_name": "brontosaurus",
95
+ "real_folder": "brontosaurus",
96
+ "spc_class_name": "brontosaurus",
97
+ "spc_index": 13,
98
+ "synthetic_folder": "brontosaurus"
99
+ },
100
+ {
101
+ "normalized_class_name": "buddha",
102
+ "real_folder": "buddha",
103
+ "spc_class_name": "buddha",
104
+ "spc_index": 14,
105
+ "synthetic_folder": "buddha"
106
+ },
107
+ {
108
+ "normalized_class_name": "butterfly",
109
+ "real_folder": "butterfly",
110
+ "spc_class_name": "butterfly",
111
+ "spc_index": 15,
112
+ "synthetic_folder": "butterfly"
113
+ },
114
+ {
115
+ "normalized_class_name": "camera",
116
+ "real_folder": "camera",
117
+ "spc_class_name": "camera",
118
+ "spc_index": 16,
119
+ "synthetic_folder": "camera"
120
+ },
121
+ {
122
+ "normalized_class_name": "cannon",
123
+ "real_folder": "cannon",
124
+ "spc_class_name": "cannon",
125
+ "spc_index": 17,
126
+ "synthetic_folder": "cannon"
127
+ },
128
+ {
129
+ "normalized_class_name": "car side",
130
+ "real_folder": "car_side",
131
+ "spc_class_name": "car_side",
132
+ "spc_index": 18,
133
+ "synthetic_folder": "car_side"
134
+ },
135
+ {
136
+ "normalized_class_name": "ceiling fan",
137
+ "real_folder": "ceiling_fan",
138
+ "spc_class_name": "ceiling_fan",
139
+ "spc_index": 19,
140
+ "synthetic_folder": "ceiling_fan"
141
+ },
142
+ {
143
+ "normalized_class_name": "cellphone",
144
+ "real_folder": "cellphone",
145
+ "spc_class_name": "cellphone",
146
+ "spc_index": 20,
147
+ "synthetic_folder": "cellphone"
148
+ },
149
+ {
150
+ "normalized_class_name": "chair",
151
+ "real_folder": "chair",
152
+ "spc_class_name": "chair",
153
+ "spc_index": 21,
154
+ "synthetic_folder": "chair"
155
+ },
156
+ {
157
+ "normalized_class_name": "chandelier",
158
+ "real_folder": "chandelier",
159
+ "spc_class_name": "chandelier",
160
+ "spc_index": 22,
161
+ "synthetic_folder": "chandelier"
162
+ },
163
+ {
164
+ "normalized_class_name": "cougar body",
165
+ "real_folder": "cougar_body",
166
+ "spc_class_name": "cougar_body",
167
+ "spc_index": 23,
168
+ "synthetic_folder": "cougar_body"
169
+ },
170
+ {
171
+ "normalized_class_name": "cougar face",
172
+ "real_folder": "cougar_face",
173
+ "spc_class_name": "cougar_face",
174
+ "spc_index": 24,
175
+ "synthetic_folder": "cougar_face"
176
+ },
177
+ {
178
+ "normalized_class_name": "crab",
179
+ "real_folder": "crab",
180
+ "spc_class_name": "crab",
181
+ "spc_index": 25,
182
+ "synthetic_folder": "crab"
183
+ },
184
+ {
185
+ "normalized_class_name": "crayfish",
186
+ "real_folder": "crayfish",
187
+ "spc_class_name": "crayfish",
188
+ "spc_index": 26,
189
+ "synthetic_folder": "crayfish"
190
+ },
191
+ {
192
+ "normalized_class_name": "crocodile",
193
+ "real_folder": "crocodile",
194
+ "spc_class_name": "crocodile",
195
+ "spc_index": 27,
196
+ "synthetic_folder": "crocodile"
197
+ },
198
+ {
199
+ "normalized_class_name": "crocodile head",
200
+ "real_folder": "crocodile_head",
201
+ "spc_class_name": "crocodile_head",
202
+ "spc_index": 28,
203
+ "synthetic_folder": "crocodile_head"
204
+ },
205
+ {
206
+ "normalized_class_name": "cup",
207
+ "real_folder": "cup",
208
+ "spc_class_name": "cup",
209
+ "spc_index": 29,
210
+ "synthetic_folder": "cup"
211
+ },
212
+ {
213
+ "normalized_class_name": "dalmatian",
214
+ "real_folder": "dalmatian",
215
+ "spc_class_name": "dalmatian",
216
+ "spc_index": 30,
217
+ "synthetic_folder": "dalmatian"
218
+ },
219
+ {
220
+ "normalized_class_name": "dollar bill",
221
+ "real_folder": "dollar_bill",
222
+ "spc_class_name": "dollar_bill",
223
+ "spc_index": 31,
224
+ "synthetic_folder": "dollar_bill"
225
+ },
226
+ {
227
+ "normalized_class_name": "dolphin",
228
+ "real_folder": "dolphin",
229
+ "spc_class_name": "dolphin",
230
+ "spc_index": 32,
231
+ "synthetic_folder": "dolphin"
232
+ },
233
+ {
234
+ "normalized_class_name": "dragonfly",
235
+ "real_folder": "dragonfly",
236
+ "spc_class_name": "dragonfly",
237
+ "spc_index": 33,
238
+ "synthetic_folder": "dragonfly"
239
+ },
240
+ {
241
+ "normalized_class_name": "electric guitar",
242
+ "real_folder": "electric_guitar",
243
+ "spc_class_name": "electric_guitar",
244
+ "spc_index": 34,
245
+ "synthetic_folder": "electric_guitar"
246
+ },
247
+ {
248
+ "normalized_class_name": "elephant",
249
+ "real_folder": "elephant",
250
+ "spc_class_name": "elephant",
251
+ "spc_index": 35,
252
+ "synthetic_folder": "elephant"
253
+ },
254
+ {
255
+ "normalized_class_name": "emu",
256
+ "real_folder": "emu",
257
+ "spc_class_name": "emu",
258
+ "spc_index": 36,
259
+ "synthetic_folder": "emu"
260
+ },
261
+ {
262
+ "normalized_class_name": "euphonium",
263
+ "real_folder": "euphonium",
264
+ "spc_class_name": "euphonium",
265
+ "spc_index": 37,
266
+ "synthetic_folder": "euphonium"
267
+ },
268
+ {
269
+ "normalized_class_name": "ewer",
270
+ "real_folder": "ewer",
271
+ "spc_class_name": "ewer",
272
+ "spc_index": 38,
273
+ "synthetic_folder": "ewer"
274
+ },
275
+ {
276
+ "normalized_class_name": "ferry",
277
+ "real_folder": "ferry",
278
+ "spc_class_name": "ferry",
279
+ "spc_index": 39,
280
+ "synthetic_folder": "ferry"
281
+ },
282
+ {
283
+ "normalized_class_name": "flamingo",
284
+ "real_folder": "flamingo",
285
+ "spc_class_name": "flamingo",
286
+ "spc_index": 40,
287
+ "synthetic_folder": "flamingo"
288
+ },
289
+ {
290
+ "normalized_class_name": "flamingo head",
291
+ "real_folder": "flamingo_head",
292
+ "spc_class_name": "flamingo_head",
293
+ "spc_index": 41,
294
+ "synthetic_folder": "flamingo_head"
295
+ },
296
+ {
297
+ "normalized_class_name": "garfield",
298
+ "real_folder": "garfield",
299
+ "spc_class_name": "garfield",
300
+ "spc_index": 42,
301
+ "synthetic_folder": "garfield"
302
+ },
303
+ {
304
+ "normalized_class_name": "gerenuk",
305
+ "real_folder": "gerenuk",
306
+ "spc_class_name": "gerenuk",
307
+ "spc_index": 43,
308
+ "synthetic_folder": "gerenuk"
309
+ },
310
+ {
311
+ "normalized_class_name": "gramophone",
312
+ "real_folder": "gramophone",
313
+ "spc_class_name": "gramophone",
314
+ "spc_index": 44,
315
+ "synthetic_folder": "gramophone"
316
+ },
317
+ {
318
+ "normalized_class_name": "grand piano",
319
+ "real_folder": "grand_piano",
320
+ "spc_class_name": "grand_piano",
321
+ "spc_index": 45,
322
+ "synthetic_folder": "grand_piano"
323
+ },
324
+ {
325
+ "normalized_class_name": "hawksbill",
326
+ "real_folder": "hawksbill",
327
+ "spc_class_name": "hawksbill",
328
+ "spc_index": 46,
329
+ "synthetic_folder": "hawksbill"
330
+ },
331
+ {
332
+ "normalized_class_name": "headphone",
333
+ "real_folder": "headphone",
334
+ "spc_class_name": "headphone",
335
+ "spc_index": 47,
336
+ "synthetic_folder": "headphone"
337
+ },
338
+ {
339
+ "normalized_class_name": "hedgehog",
340
+ "real_folder": "hedgehog",
341
+ "spc_class_name": "hedgehog",
342
+ "spc_index": 48,
343
+ "synthetic_folder": "hedgehog"
344
+ },
345
+ {
346
+ "normalized_class_name": "helicopter",
347
+ "real_folder": "helicopter",
348
+ "spc_class_name": "helicopter",
349
+ "spc_index": 49,
350
+ "synthetic_folder": "helicopter"
351
+ },
352
+ {
353
+ "normalized_class_name": "ibis",
354
+ "real_folder": "ibis",
355
+ "spc_class_name": "ibis",
356
+ "spc_index": 50,
357
+ "synthetic_folder": "ibis"
358
+ },
359
+ {
360
+ "normalized_class_name": "inline skate",
361
+ "real_folder": "inline_skate",
362
+ "spc_class_name": "inline_skate",
363
+ "spc_index": 51,
364
+ "synthetic_folder": "inline_skate"
365
+ },
366
+ {
367
+ "normalized_class_name": "joshua tree",
368
+ "real_folder": "joshua_tree",
369
+ "spc_class_name": "joshua_tree",
370
+ "spc_index": 52,
371
+ "synthetic_folder": "joshua_tree"
372
+ },
373
+ {
374
+ "normalized_class_name": "kangaroo",
375
+ "real_folder": "kangaroo",
376
+ "spc_class_name": "kangaroo",
377
+ "spc_index": 53,
378
+ "synthetic_folder": "kangaroo"
379
+ },
380
+ {
381
+ "normalized_class_name": "ketch",
382
+ "real_folder": "ketch",
383
+ "spc_class_name": "ketch",
384
+ "spc_index": 54,
385
+ "synthetic_folder": "ketch"
386
+ },
387
+ {
388
+ "normalized_class_name": "lamp",
389
+ "real_folder": "lamp",
390
+ "spc_class_name": "lamp",
391
+ "spc_index": 55,
392
+ "synthetic_folder": "lamp"
393
+ },
394
+ {
395
+ "normalized_class_name": "laptop",
396
+ "real_folder": "laptop",
397
+ "spc_class_name": "laptop",
398
+ "spc_index": 56,
399
+ "synthetic_folder": "laptop"
400
+ },
401
+ {
402
+ "normalized_class_name": "llama",
403
+ "real_folder": "llama",
404
+ "spc_class_name": "llama",
405
+ "spc_index": 57,
406
+ "synthetic_folder": "llama"
407
+ },
408
+ {
409
+ "normalized_class_name": "lobster",
410
+ "real_folder": "lobster",
411
+ "spc_class_name": "lobster",
412
+ "spc_index": 58,
413
+ "synthetic_folder": "lobster"
414
+ },
415
+ {
416
+ "normalized_class_name": "lotus",
417
+ "real_folder": "lotus",
418
+ "spc_class_name": "lotus",
419
+ "spc_index": 59,
420
+ "synthetic_folder": "lotus"
421
+ },
422
+ {
423
+ "normalized_class_name": "mandolin",
424
+ "real_folder": "mandolin",
425
+ "spc_class_name": "mandolin",
426
+ "spc_index": 60,
427
+ "synthetic_folder": "mandolin"
428
+ },
429
+ {
430
+ "normalized_class_name": "mayfly",
431
+ "real_folder": "mayfly",
432
+ "spc_class_name": "mayfly",
433
+ "spc_index": 61,
434
+ "synthetic_folder": "mayfly"
435
+ },
436
+ {
437
+ "normalized_class_name": "menorah",
438
+ "real_folder": "menorah",
439
+ "spc_class_name": "menorah",
440
+ "spc_index": 62,
441
+ "synthetic_folder": "menorah"
442
+ },
443
+ {
444
+ "normalized_class_name": "metronome",
445
+ "real_folder": "metronome",
446
+ "spc_class_name": "metronome",
447
+ "spc_index": 63,
448
+ "synthetic_folder": "metronome"
449
+ },
450
+ {
451
+ "normalized_class_name": "minaret",
452
+ "real_folder": "minaret",
453
+ "spc_class_name": "minaret",
454
+ "spc_index": 64,
455
+ "synthetic_folder": "minaret"
456
+ },
457
+ {
458
+ "normalized_class_name": "nautilus",
459
+ "real_folder": "nautilus",
460
+ "spc_class_name": "nautilus",
461
+ "spc_index": 65,
462
+ "synthetic_folder": "nautilus"
463
+ },
464
+ {
465
+ "normalized_class_name": "octopus",
466
+ "real_folder": "octopus",
467
+ "spc_class_name": "octopus",
468
+ "spc_index": 66,
469
+ "synthetic_folder": "octopus"
470
+ },
471
+ {
472
+ "normalized_class_name": "okapi",
473
+ "real_folder": "okapi",
474
+ "spc_class_name": "okapi",
475
+ "spc_index": 67,
476
+ "synthetic_folder": "okapi"
477
+ },
478
+ {
479
+ "normalized_class_name": "pagoda",
480
+ "real_folder": "pagoda",
481
+ "spc_class_name": "pagoda",
482
+ "spc_index": 68,
483
+ "synthetic_folder": "pagoda"
484
+ },
485
+ {
486
+ "normalized_class_name": "panda",
487
+ "real_folder": "panda",
488
+ "spc_class_name": "panda",
489
+ "spc_index": 69,
490
+ "synthetic_folder": "panda"
491
+ },
492
+ {
493
+ "normalized_class_name": "pigeon",
494
+ "real_folder": "pigeon",
495
+ "spc_class_name": "pigeon",
496
+ "spc_index": 70,
497
+ "synthetic_folder": "pigeon"
498
+ },
499
+ {
500
+ "normalized_class_name": "pizza",
501
+ "real_folder": "pizza",
502
+ "spc_class_name": "pizza",
503
+ "spc_index": 71,
504
+ "synthetic_folder": "pizza"
505
+ },
506
+ {
507
+ "normalized_class_name": "platypus",
508
+ "real_folder": "platypus",
509
+ "spc_class_name": "platypus",
510
+ "spc_index": 72,
511
+ "synthetic_folder": "platypus"
512
+ },
513
+ {
514
+ "normalized_class_name": "pyramid",
515
+ "real_folder": "pyramid",
516
+ "spc_class_name": "pyramid",
517
+ "spc_index": 73,
518
+ "synthetic_folder": "pyramid"
519
+ },
520
+ {
521
+ "normalized_class_name": "revolver",
522
+ "real_folder": "revolver",
523
+ "spc_class_name": "revolver",
524
+ "spc_index": 74,
525
+ "synthetic_folder": "revolver"
526
+ },
527
+ {
528
+ "normalized_class_name": "rhino",
529
+ "real_folder": "rhino",
530
+ "spc_class_name": "rhino",
531
+ "spc_index": 75,
532
+ "synthetic_folder": "rhino"
533
+ },
534
+ {
535
+ "normalized_class_name": "rooster",
536
+ "real_folder": "rooster",
537
+ "spc_class_name": "rooster",
538
+ "spc_index": 76,
539
+ "synthetic_folder": "rooster"
540
+ },
541
+ {
542
+ "normalized_class_name": "saxophone",
543
+ "real_folder": "saxophone",
544
+ "spc_class_name": "saxophone",
545
+ "spc_index": 77,
546
+ "synthetic_folder": "saxophone"
547
+ },
548
+ {
549
+ "normalized_class_name": "schooner",
550
+ "real_folder": "schooner",
551
+ "spc_class_name": "schooner",
552
+ "spc_index": 78,
553
+ "synthetic_folder": "schooner"
554
+ },
555
+ {
556
+ "normalized_class_name": "scissors",
557
+ "real_folder": "scissors",
558
+ "spc_class_name": "scissors",
559
+ "spc_index": 79,
560
+ "synthetic_folder": "scissors"
561
+ },
562
+ {
563
+ "normalized_class_name": "scorpion",
564
+ "real_folder": "scorpion",
565
+ "spc_class_name": "scorpion",
566
+ "spc_index": 80,
567
+ "synthetic_folder": "scorpion"
568
+ },
569
+ {
570
+ "normalized_class_name": "sea horse",
571
+ "real_folder": "sea_horse",
572
+ "spc_class_name": "sea_horse",
573
+ "spc_index": 81,
574
+ "synthetic_folder": "sea_horse"
575
+ },
576
+ {
577
+ "normalized_class_name": "snoopy",
578
+ "real_folder": "snoopy",
579
+ "spc_class_name": "snoopy",
580
+ "spc_index": 82,
581
+ "synthetic_folder": "snoopy"
582
+ },
583
+ {
584
+ "normalized_class_name": "soccer ball",
585
+ "real_folder": "soccer_ball",
586
+ "spc_class_name": "soccer_ball",
587
+ "spc_index": 83,
588
+ "synthetic_folder": "soccer_ball"
589
+ },
590
+ {
591
+ "normalized_class_name": "stapler",
592
+ "real_folder": "stapler",
593
+ "spc_class_name": "stapler",
594
+ "spc_index": 84,
595
+ "synthetic_folder": "stapler"
596
+ },
597
+ {
598
+ "normalized_class_name": "starfish",
599
+ "real_folder": "starfish",
600
+ "spc_class_name": "starfish",
601
+ "spc_index": 85,
602
+ "synthetic_folder": "starfish"
603
+ },
604
+ {
605
+ "normalized_class_name": "stegosaurus",
606
+ "real_folder": "stegosaurus",
607
+ "spc_class_name": "stegosaurus",
608
+ "spc_index": 86,
609
+ "synthetic_folder": "stegosaurus"
610
+ },
611
+ {
612
+ "normalized_class_name": "stop sign",
613
+ "real_folder": "stop_sign",
614
+ "spc_class_name": "stop_sign",
615
+ "spc_index": 87,
616
+ "synthetic_folder": "stop_sign"
617
+ },
618
+ {
619
+ "normalized_class_name": "strawberry",
620
+ "real_folder": "strawberry",
621
+ "spc_class_name": "strawberry",
622
+ "spc_index": 88,
623
+ "synthetic_folder": "strawberry"
624
+ },
625
+ {
626
+ "normalized_class_name": "sunflower",
627
+ "real_folder": "sunflower",
628
+ "spc_class_name": "sunflower",
629
+ "spc_index": 89,
630
+ "synthetic_folder": "sunflower"
631
+ },
632
+ {
633
+ "normalized_class_name": "tick",
634
+ "real_folder": "tick",
635
+ "spc_class_name": "tick",
636
+ "spc_index": 90,
637
+ "synthetic_folder": "tick"
638
+ },
639
+ {
640
+ "normalized_class_name": "trilobite",
641
+ "real_folder": "trilobite",
642
+ "spc_class_name": "trilobite",
643
+ "spc_index": 91,
644
+ "synthetic_folder": "trilobite"
645
+ },
646
+ {
647
+ "normalized_class_name": "umbrella",
648
+ "real_folder": "umbrella",
649
+ "spc_class_name": "umbrella",
650
+ "spc_index": 92,
651
+ "synthetic_folder": "umbrella"
652
+ },
653
+ {
654
+ "normalized_class_name": "watch",
655
+ "real_folder": "watch",
656
+ "spc_class_name": "watch",
657
+ "spc_index": 93,
658
+ "synthetic_folder": "watch"
659
+ },
660
+ {
661
+ "normalized_class_name": "water lilly",
662
+ "real_folder": "water_lilly",
663
+ "spc_class_name": "water_lilly",
664
+ "spc_index": 94,
665
+ "synthetic_folder": "water_lilly"
666
+ },
667
+ {
668
+ "normalized_class_name": "wheelchair",
669
+ "real_folder": "wheelchair",
670
+ "spc_class_name": "wheelchair",
671
+ "spc_index": 95,
672
+ "synthetic_folder": "wheelchair"
673
+ },
674
+ {
675
+ "normalized_class_name": "wild cat",
676
+ "real_folder": "wild_cat",
677
+ "spc_class_name": "wild_cat",
678
+ "spc_index": 96,
679
+ "synthetic_folder": "wild_cat"
680
+ },
681
+ {
682
+ "normalized_class_name": "windsor chair",
683
+ "real_folder": "windsor_chair",
684
+ "spc_class_name": "windsor_chair",
685
+ "spc_index": 97,
686
+ "synthetic_folder": "windsor_chair"
687
+ },
688
+ {
689
+ "normalized_class_name": "wrench",
690
+ "real_folder": "wrench",
691
+ "spc_class_name": "wrench",
692
+ "spc_index": 98,
693
+ "synthetic_folder": "wrench"
694
+ },
695
+ {
696
+ "normalized_class_name": "yin yang",
697
+ "real_folder": "yin_yang",
698
+ "spc_class_name": "yin_yang",
699
+ "spc_index": 99,
700
+ "synthetic_folder": "yin_yang"
701
+ }
702
+ ]
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/fewshot_support.json ADDED
@@ -0,0 +1,1809 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "method": "Exact SPC Caltech generation load_sources; random.Random(1) sampled sequentially in CLASS_FOLDERS order from CoOp train rows",
3
+ "real_train_samples": 1600,
4
+ "selection_sha256": "2485b4a8b73946ebe11201185e99793660870dca862c05c73df902a1ca6f3942",
5
+ "shot": 16,
6
+ "split_seed": 1,
7
+ "support_relative_paths_by_class": {
8
+ "accordion": [
9
+ "accordion/image_0047.jpg",
10
+ "accordion/image_0033.jpg",
11
+ "accordion/image_0049.jpg",
12
+ "accordion/image_0016.jpg",
13
+ "accordion/image_0022.jpg",
14
+ "accordion/image_0024.jpg",
15
+ "accordion/image_0052.jpg",
16
+ "accordion/image_0015.jpg",
17
+ "accordion/image_0035.jpg",
18
+ "accordion/image_0021.jpg",
19
+ "accordion/image_0037.jpg",
20
+ "accordion/image_0029.jpg",
21
+ "accordion/image_0027.jpg",
22
+ "accordion/image_0043.jpg",
23
+ "accordion/image_0012.jpg",
24
+ "accordion/image_0032.jpg"
25
+ ],
26
+ "airplane": [
27
+ "airplanes/image_0713.jpg",
28
+ "airplanes/image_0321.jpg",
29
+ "airplanes/image_0580.jpg",
30
+ "airplanes/image_0076.jpg",
31
+ "airplanes/image_0143.jpg",
32
+ "airplanes/image_0779.jpg",
33
+ "airplanes/image_0184.jpg",
34
+ "airplanes/image_0602.jpg",
35
+ "airplanes/image_0400.jpg",
36
+ "airplanes/image_0616.jpg",
37
+ "airplanes/image_0701.jpg",
38
+ "airplanes/image_0024.jpg",
39
+ "airplanes/image_0405.jpg",
40
+ "airplanes/image_0132.jpg",
41
+ "airplanes/image_0111.jpg",
42
+ "airplanes/image_0271.jpg"
43
+ ],
44
+ "anchor": [
45
+ "anchor/image_0033.jpg",
46
+ "anchor/image_0034.jpg",
47
+ "anchor/image_0005.jpg",
48
+ "anchor/image_0029.jpg",
49
+ "anchor/image_0028.jpg",
50
+ "anchor/image_0007.jpg",
51
+ "anchor/image_0039.jpg",
52
+ "anchor/image_0011.jpg",
53
+ "anchor/image_0024.jpg",
54
+ "anchor/image_0040.jpg",
55
+ "anchor/image_0004.jpg",
56
+ "anchor/image_0035.jpg",
57
+ "anchor/image_0008.jpg",
58
+ "anchor/image_0019.jpg",
59
+ "anchor/image_0042.jpg",
60
+ "anchor/image_0037.jpg"
61
+ ],
62
+ "ant": [
63
+ "ant/image_0026.jpg",
64
+ "ant/image_0025.jpg",
65
+ "ant/image_0021.jpg",
66
+ "ant/image_0039.jpg",
67
+ "ant/image_0006.jpg",
68
+ "ant/image_0003.jpg",
69
+ "ant/image_0029.jpg",
70
+ "ant/image_0041.jpg",
71
+ "ant/image_0013.jpg",
72
+ "ant/image_0011.jpg",
73
+ "ant/image_0019.jpg",
74
+ "ant/image_0009.jpg",
75
+ "ant/image_0016.jpg",
76
+ "ant/image_0035.jpg",
77
+ "ant/image_0042.jpg",
78
+ "ant/image_0015.jpg"
79
+ ],
80
+ "barrel": [
81
+ "barrel/image_0020.jpg",
82
+ "barrel/image_0016.jpg",
83
+ "barrel/image_0031.jpg",
84
+ "barrel/image_0040.jpg",
85
+ "barrel/image_0035.jpg",
86
+ "barrel/image_0034.jpg",
87
+ "barrel/image_0018.jpg",
88
+ "barrel/image_0047.jpg",
89
+ "barrel/image_0024.jpg",
90
+ "barrel/image_0014.jpg",
91
+ "barrel/image_0044.jpg",
92
+ "barrel/image_0017.jpg",
93
+ "barrel/image_0011.jpg",
94
+ "barrel/image_0036.jpg",
95
+ "barrel/image_0038.jpg",
96
+ "barrel/image_0006.jpg"
97
+ ],
98
+ "bass": [
99
+ "bass/image_0038.jpg",
100
+ "bass/image_0035.jpg",
101
+ "bass/image_0009.jpg",
102
+ "bass/image_0030.jpg",
103
+ "bass/image_0004.jpg",
104
+ "bass/image_0013.jpg",
105
+ "bass/image_0020.jpg",
106
+ "bass/image_0007.jpg",
107
+ "bass/image_0001.jpg",
108
+ "bass/image_0031.jpg",
109
+ "bass/image_0048.jpg",
110
+ "bass/image_0012.jpg",
111
+ "bass/image_0019.jpg",
112
+ "bass/image_0032.jpg",
113
+ "bass/image_0014.jpg",
114
+ "bass/image_0050.jpg"
115
+ ],
116
+ "beaver": [
117
+ "beaver/image_0011.jpg",
118
+ "beaver/image_0023.jpg",
119
+ "beaver/image_0006.jpg",
120
+ "beaver/image_0043.jpg",
121
+ "beaver/image_0039.jpg",
122
+ "beaver/image_0001.jpg",
123
+ "beaver/image_0042.jpg",
124
+ "beaver/image_0038.jpg",
125
+ "beaver/image_0002.jpg",
126
+ "beaver/image_0016.jpg",
127
+ "beaver/image_0045.jpg",
128
+ "beaver/image_0020.jpg",
129
+ "beaver/image_0030.jpg",
130
+ "beaver/image_0029.jpg",
131
+ "beaver/image_0024.jpg",
132
+ "beaver/image_0004.jpg"
133
+ ],
134
+ "binocular": [
135
+ "binocular/image_0005.jpg",
136
+ "binocular/image_0021.jpg",
137
+ "binocular/image_0013.jpg",
138
+ "binocular/image_0025.jpg",
139
+ "binocular/image_0012.jpg",
140
+ "binocular/image_0009.jpg",
141
+ "binocular/image_0028.jpg",
142
+ "binocular/image_0022.jpg",
143
+ "binocular/image_0001.jpg",
144
+ "binocular/image_0033.jpg",
145
+ "binocular/image_0023.jpg",
146
+ "binocular/image_0027.jpg",
147
+ "binocular/image_0026.jpg",
148
+ "binocular/image_0010.jpg",
149
+ "binocular/image_0019.jpg",
150
+ "binocular/image_0032.jpg"
151
+ ],
152
+ "bonsai": [
153
+ "bonsai/image_0082.jpg",
154
+ "bonsai/image_0003.jpg",
155
+ "bonsai/image_0110.jpg",
156
+ "bonsai/image_0091.jpg",
157
+ "bonsai/image_0039.jpg",
158
+ "bonsai/image_0074.jpg",
159
+ "bonsai/image_0020.jpg",
160
+ "bonsai/image_0122.jpg",
161
+ "bonsai/image_0071.jpg",
162
+ "bonsai/image_0101.jpg",
163
+ "bonsai/image_0103.jpg",
164
+ "bonsai/image_0084.jpg",
165
+ "bonsai/image_0049.jpg",
166
+ "bonsai/image_0037.jpg",
167
+ "bonsai/image_0047.jpg",
168
+ "bonsai/image_0014.jpg"
169
+ ],
170
+ "brain": [
171
+ "brain/image_0059.jpg",
172
+ "brain/image_0052.jpg",
173
+ "brain/image_0082.jpg",
174
+ "brain/image_0028.jpg",
175
+ "brain/image_0011.jpg",
176
+ "brain/image_0047.jpg",
177
+ "brain/image_0018.jpg",
178
+ "brain/image_0098.jpg",
179
+ "brain/image_0035.jpg",
180
+ "brain/image_0090.jpg",
181
+ "brain/image_0029.jpg",
182
+ "brain/image_0065.jpg",
183
+ "brain/image_0056.jpg",
184
+ "brain/image_0077.jpg",
185
+ "brain/image_0012.jpg",
186
+ "brain/image_0058.jpg"
187
+ ],
188
+ "brontosaurus": [
189
+ "brontosaurus/image_0021.jpg",
190
+ "brontosaurus/image_0026.jpg",
191
+ "brontosaurus/image_0022.jpg",
192
+ "brontosaurus/image_0033.jpg",
193
+ "brontosaurus/image_0028.jpg",
194
+ "brontosaurus/image_0009.jpg",
195
+ "brontosaurus/image_0020.jpg",
196
+ "brontosaurus/image_0041.jpg",
197
+ "brontosaurus/image_0037.jpg",
198
+ "brontosaurus/image_0001.jpg",
199
+ "brontosaurus/image_0010.jpg",
200
+ "brontosaurus/image_0036.jpg",
201
+ "brontosaurus/image_0014.jpg",
202
+ "brontosaurus/image_0025.jpg",
203
+ "brontosaurus/image_0018.jpg",
204
+ "brontosaurus/image_0043.jpg"
205
+ ],
206
+ "buddha": [
207
+ "buddha/image_0049.jpg",
208
+ "buddha/image_0065.jpg",
209
+ "buddha/image_0019.jpg",
210
+ "buddha/image_0074.jpg",
211
+ "buddha/image_0081.jpg",
212
+ "buddha/image_0017.jpg",
213
+ "buddha/image_0055.jpg",
214
+ "buddha/image_0054.jpg",
215
+ "buddha/image_0024.jpg",
216
+ "buddha/image_0030.jpg",
217
+ "buddha/image_0038.jpg",
218
+ "buddha/image_0034.jpg",
219
+ "buddha/image_0039.jpg",
220
+ "buddha/image_0072.jpg",
221
+ "buddha/image_0037.jpg",
222
+ "buddha/image_0069.jpg"
223
+ ],
224
+ "butterfly": [
225
+ "butterfly/image_0011.jpg",
226
+ "butterfly/image_0059.jpg",
227
+ "butterfly/image_0003.jpg",
228
+ "butterfly/image_0021.jpg",
229
+ "butterfly/image_0039.jpg",
230
+ "butterfly/image_0063.jpg",
231
+ "butterfly/image_0032.jpg",
232
+ "butterfly/image_0013.jpg",
233
+ "butterfly/image_0028.jpg",
234
+ "butterfly/image_0027.jpg",
235
+ "butterfly/image_0090.jpg",
236
+ "butterfly/image_0084.jpg",
237
+ "butterfly/image_0023.jpg",
238
+ "butterfly/image_0083.jpg",
239
+ "butterfly/image_0025.jpg",
240
+ "butterfly/image_0073.jpg"
241
+ ],
242
+ "camera": [
243
+ "camera/image_0013.jpg",
244
+ "camera/image_0010.jpg",
245
+ "camera/image_0009.jpg",
246
+ "camera/image_0021.jpg",
247
+ "camera/image_0020.jpg",
248
+ "camera/image_0043.jpg",
249
+ "camera/image_0006.jpg",
250
+ "camera/image_0011.jpg",
251
+ "camera/image_0005.jpg",
252
+ "camera/image_0019.jpg",
253
+ "camera/image_0024.jpg",
254
+ "camera/image_0041.jpg",
255
+ "camera/image_0026.jpg",
256
+ "camera/image_0022.jpg",
257
+ "camera/image_0025.jpg",
258
+ "camera/image_0017.jpg"
259
+ ],
260
+ "cannon": [
261
+ "cannon/image_0003.jpg",
262
+ "cannon/image_0002.jpg",
263
+ "cannon/image_0019.jpg",
264
+ "cannon/image_0027.jpg",
265
+ "cannon/image_0042.jpg",
266
+ "cannon/image_0013.jpg",
267
+ "cannon/image_0031.jpg",
268
+ "cannon/image_0020.jpg",
269
+ "cannon/image_0014.jpg",
270
+ "cannon/image_0011.jpg",
271
+ "cannon/image_0009.jpg",
272
+ "cannon/image_0015.jpg",
273
+ "cannon/image_0001.jpg",
274
+ "cannon/image_0037.jpg",
275
+ "cannon/image_0043.jpg",
276
+ "cannon/image_0008.jpg"
277
+ ],
278
+ "car_side": [
279
+ "car_side/image_0023.jpg",
280
+ "car_side/image_0101.jpg",
281
+ "car_side/image_0031.jpg",
282
+ "car_side/image_0116.jpg",
283
+ "car_side/image_0083.jpg",
284
+ "car_side/image_0045.jpg",
285
+ "car_side/image_0071.jpg",
286
+ "car_side/image_0094.jpg",
287
+ "car_side/image_0026.jpg",
288
+ "car_side/image_0105.jpg",
289
+ "car_side/image_0070.jpg",
290
+ "car_side/image_0004.jpg",
291
+ "car_side/image_0035.jpg",
292
+ "car_side/image_0061.jpg",
293
+ "car_side/image_0100.jpg",
294
+ "car_side/image_0027.jpg"
295
+ ],
296
+ "ceiling_fan": [
297
+ "ceiling_fan/image_0007.jpg",
298
+ "ceiling_fan/image_0008.jpg",
299
+ "ceiling_fan/image_0013.jpg",
300
+ "ceiling_fan/image_0042.jpg",
301
+ "ceiling_fan/image_0029.jpg",
302
+ "ceiling_fan/image_0036.jpg",
303
+ "ceiling_fan/image_0003.jpg",
304
+ "ceiling_fan/image_0014.jpg",
305
+ "ceiling_fan/image_0025.jpg",
306
+ "ceiling_fan/image_0034.jpg",
307
+ "ceiling_fan/image_0047.jpg",
308
+ "ceiling_fan/image_0038.jpg",
309
+ "ceiling_fan/image_0011.jpg",
310
+ "ceiling_fan/image_0024.jpg",
311
+ "ceiling_fan/image_0027.jpg",
312
+ "ceiling_fan/image_0019.jpg"
313
+ ],
314
+ "cellphone": [
315
+ "cellphone/image_0027.jpg",
316
+ "cellphone/image_0004.jpg",
317
+ "cellphone/image_0026.jpg",
318
+ "cellphone/image_0044.jpg",
319
+ "cellphone/image_0037.jpg",
320
+ "cellphone/image_0030.jpg",
321
+ "cellphone/image_0022.jpg",
322
+ "cellphone/image_0046.jpg",
323
+ "cellphone/image_0045.jpg",
324
+ "cellphone/image_0049.jpg",
325
+ "cellphone/image_0023.jpg",
326
+ "cellphone/image_0059.jpg",
327
+ "cellphone/image_0003.jpg",
328
+ "cellphone/image_0005.jpg",
329
+ "cellphone/image_0057.jpg",
330
+ "cellphone/image_0016.jpg"
331
+ ],
332
+ "chair": [
333
+ "chair/image_0005.jpg",
334
+ "chair/image_0053.jpg",
335
+ "chair/image_0004.jpg",
336
+ "chair/image_0021.jpg",
337
+ "chair/image_0061.jpg",
338
+ "chair/image_0026.jpg",
339
+ "chair/image_0003.jpg",
340
+ "chair/image_0002.jpg",
341
+ "chair/image_0040.jpg",
342
+ "chair/image_0018.jpg",
343
+ "chair/image_0056.jpg",
344
+ "chair/image_0057.jpg",
345
+ "chair/image_0006.jpg",
346
+ "chair/image_0008.jpg",
347
+ "chair/image_0050.jpg",
348
+ "chair/image_0043.jpg"
349
+ ],
350
+ "chandelier": [
351
+ "chandelier/image_0005.jpg",
352
+ "chandelier/image_0030.jpg",
353
+ "chandelier/image_0084.jpg",
354
+ "chandelier/image_0104.jpg",
355
+ "chandelier/image_0042.jpg",
356
+ "chandelier/image_0032.jpg",
357
+ "chandelier/image_0093.jpg",
358
+ "chandelier/image_0062.jpg",
359
+ "chandelier/image_0075.jpg",
360
+ "chandelier/image_0102.jpg",
361
+ "chandelier/image_0106.jpg",
362
+ "chandelier/image_0080.jpg",
363
+ "chandelier/image_0014.jpg",
364
+ "chandelier/image_0006.jpg",
365
+ "chandelier/image_0098.jpg",
366
+ "chandelier/image_0022.jpg"
367
+ ],
368
+ "cougar_body": [
369
+ "cougar_body/image_0041.jpg",
370
+ "cougar_body/image_0035.jpg",
371
+ "cougar_body/image_0047.jpg",
372
+ "cougar_body/image_0046.jpg",
373
+ "cougar_body/image_0036.jpg",
374
+ "cougar_body/image_0037.jpg",
375
+ "cougar_body/image_0021.jpg",
376
+ "cougar_body/image_0007.jpg",
377
+ "cougar_body/image_0018.jpg",
378
+ "cougar_body/image_0033.jpg",
379
+ "cougar_body/image_0029.jpg",
380
+ "cougar_body/image_0044.jpg",
381
+ "cougar_body/image_0031.jpg",
382
+ "cougar_body/image_0043.jpg",
383
+ "cougar_body/image_0039.jpg",
384
+ "cougar_body/image_0001.jpg"
385
+ ],
386
+ "cougar_face": [
387
+ "cougar_face/image_0042.jpg",
388
+ "cougar_face/image_0062.jpg",
389
+ "cougar_face/image_0053.jpg",
390
+ "cougar_face/image_0033.jpg",
391
+ "cougar_face/image_0003.jpg",
392
+ "cougar_face/image_0039.jpg",
393
+ "cougar_face/image_0014.jpg",
394
+ "cougar_face/image_0064.jpg",
395
+ "cougar_face/image_0037.jpg",
396
+ "cougar_face/image_0056.jpg",
397
+ "cougar_face/image_0017.jpg",
398
+ "cougar_face/image_0051.jpg",
399
+ "cougar_face/image_0047.jpg",
400
+ "cougar_face/image_0019.jpg",
401
+ "cougar_face/image_0001.jpg",
402
+ "cougar_face/image_0013.jpg"
403
+ ],
404
+ "crab": [
405
+ "crab/image_0060.jpg",
406
+ "crab/image_0035.jpg",
407
+ "crab/image_0069.jpg",
408
+ "crab/image_0014.jpg",
409
+ "crab/image_0065.jpg",
410
+ "crab/image_0070.jpg",
411
+ "crab/image_0033.jpg",
412
+ "crab/image_0049.jpg",
413
+ "crab/image_0029.jpg",
414
+ "crab/image_0009.jpg",
415
+ "crab/image_0042.jpg",
416
+ "crab/image_0023.jpg",
417
+ "crab/image_0037.jpg",
418
+ "crab/image_0008.jpg",
419
+ "crab/image_0017.jpg",
420
+ "crab/image_0010.jpg"
421
+ ],
422
+ "crayfish": [
423
+ "crayfish/image_0003.jpg",
424
+ "crayfish/image_0019.jpg",
425
+ "crayfish/image_0030.jpg",
426
+ "crayfish/image_0024.jpg",
427
+ "crayfish/image_0045.jpg",
428
+ "crayfish/image_0016.jpg",
429
+ "crayfish/image_0062.jpg",
430
+ "crayfish/image_0023.jpg",
431
+ "crayfish/image_0025.jpg",
432
+ "crayfish/image_0027.jpg",
433
+ "crayfish/image_0041.jpg",
434
+ "crayfish/image_0060.jpg",
435
+ "crayfish/image_0068.jpg",
436
+ "crayfish/image_0065.jpg",
437
+ "crayfish/image_0037.jpg",
438
+ "crayfish/image_0040.jpg"
439
+ ],
440
+ "crocodile": [
441
+ "crocodile/image_0027.jpg",
442
+ "crocodile/image_0022.jpg",
443
+ "crocodile/image_0039.jpg",
444
+ "crocodile/image_0014.jpg",
445
+ "crocodile/image_0023.jpg",
446
+ "crocodile/image_0031.jpg",
447
+ "crocodile/image_0042.jpg",
448
+ "crocodile/image_0008.jpg",
449
+ "crocodile/image_0019.jpg",
450
+ "crocodile/image_0047.jpg",
451
+ "crocodile/image_0029.jpg",
452
+ "crocodile/image_0004.jpg",
453
+ "crocodile/image_0001.jpg",
454
+ "crocodile/image_0036.jpg",
455
+ "crocodile/image_0035.jpg",
456
+ "crocodile/image_0007.jpg"
457
+ ],
458
+ "crocodile_head": [
459
+ "crocodile_head/image_0003.jpg",
460
+ "crocodile_head/image_0036.jpg",
461
+ "crocodile_head/image_0018.jpg",
462
+ "crocodile_head/image_0039.jpg",
463
+ "crocodile_head/image_0033.jpg",
464
+ "crocodile_head/image_0031.jpg",
465
+ "crocodile_head/image_0006.jpg",
466
+ "crocodile_head/image_0015.jpg",
467
+ "crocodile_head/image_0042.jpg",
468
+ "crocodile_head/image_0032.jpg",
469
+ "crocodile_head/image_0024.jpg",
470
+ "crocodile_head/image_0048.jpg",
471
+ "crocodile_head/image_0034.jpg",
472
+ "crocodile_head/image_0027.jpg",
473
+ "crocodile_head/image_0029.jpg",
474
+ "crocodile_head/image_0023.jpg"
475
+ ],
476
+ "cup": [
477
+ "cup/image_0004.jpg",
478
+ "cup/image_0053.jpg",
479
+ "cup/image_0035.jpg",
480
+ "cup/image_0022.jpg",
481
+ "cup/image_0037.jpg",
482
+ "cup/image_0009.jpg",
483
+ "cup/image_0041.jpg",
484
+ "cup/image_0025.jpg",
485
+ "cup/image_0014.jpg",
486
+ "cup/image_0032.jpg",
487
+ "cup/image_0036.jpg",
488
+ "cup/image_0001.jpg",
489
+ "cup/image_0010.jpg",
490
+ "cup/image_0024.jpg",
491
+ "cup/image_0034.jpg",
492
+ "cup/image_0012.jpg"
493
+ ],
494
+ "dalmatian": [
495
+ "dalmatian/image_0066.jpg",
496
+ "dalmatian/image_0047.jpg",
497
+ "dalmatian/image_0014.jpg",
498
+ "dalmatian/image_0022.jpg",
499
+ "dalmatian/image_0050.jpg",
500
+ "dalmatian/image_0001.jpg",
501
+ "dalmatian/image_0010.jpg",
502
+ "dalmatian/image_0064.jpg",
503
+ "dalmatian/image_0016.jpg",
504
+ "dalmatian/image_0060.jpg",
505
+ "dalmatian/image_0027.jpg",
506
+ "dalmatian/image_0052.jpg",
507
+ "dalmatian/image_0019.jpg",
508
+ "dalmatian/image_0021.jpg",
509
+ "dalmatian/image_0053.jpg",
510
+ "dalmatian/image_0029.jpg"
511
+ ],
512
+ "dollar_bill": [
513
+ "dollar_bill/image_0025.jpg",
514
+ "dollar_bill/image_0019.jpg",
515
+ "dollar_bill/image_0013.jpg",
516
+ "dollar_bill/image_0016.jpg",
517
+ "dollar_bill/image_0042.jpg",
518
+ "dollar_bill/image_0048.jpg",
519
+ "dollar_bill/image_0043.jpg",
520
+ "dollar_bill/image_0044.jpg",
521
+ "dollar_bill/image_0011.jpg",
522
+ "dollar_bill/image_0018.jpg",
523
+ "dollar_bill/image_0032.jpg",
524
+ "dollar_bill/image_0017.jpg",
525
+ "dollar_bill/image_0035.jpg",
526
+ "dollar_bill/image_0036.jpg",
527
+ "dollar_bill/image_0051.jpg",
528
+ "dollar_bill/image_0046.jpg"
529
+ ],
530
+ "dolphin": [
531
+ "dolphin/image_0016.jpg",
532
+ "dolphin/image_0020.jpg",
533
+ "dolphin/image_0015.jpg",
534
+ "dolphin/image_0039.jpg",
535
+ "dolphin/image_0062.jpg",
536
+ "dolphin/image_0036.jpg",
537
+ "dolphin/image_0044.jpg",
538
+ "dolphin/image_0050.jpg",
539
+ "dolphin/image_0011.jpg",
540
+ "dolphin/image_0022.jpg",
541
+ "dolphin/image_0025.jpg",
542
+ "dolphin/image_0004.jpg",
543
+ "dolphin/image_0021.jpg",
544
+ "dolphin/image_0057.jpg",
545
+ "dolphin/image_0024.jpg",
546
+ "dolphin/image_0055.jpg"
547
+ ],
548
+ "dragonfly": [
549
+ "dragonfly/image_0051.jpg",
550
+ "dragonfly/image_0049.jpg",
551
+ "dragonfly/image_0019.jpg",
552
+ "dragonfly/image_0044.jpg",
553
+ "dragonfly/image_0039.jpg",
554
+ "dragonfly/image_0045.jpg",
555
+ "dragonfly/image_0055.jpg",
556
+ "dragonfly/image_0004.jpg",
557
+ "dragonfly/image_0010.jpg",
558
+ "dragonfly/image_0061.jpg",
559
+ "dragonfly/image_0026.jpg",
560
+ "dragonfly/image_0020.jpg",
561
+ "dragonfly/image_0063.jpg",
562
+ "dragonfly/image_0023.jpg",
563
+ "dragonfly/image_0012.jpg",
564
+ "dragonfly/image_0048.jpg"
565
+ ],
566
+ "electric_guitar": [
567
+ "electric_guitar/image_0016.jpg",
568
+ "electric_guitar/image_0038.jpg",
569
+ "electric_guitar/image_0066.jpg",
570
+ "electric_guitar/image_0007.jpg",
571
+ "electric_guitar/image_0026.jpg",
572
+ "electric_guitar/image_0029.jpg",
573
+ "electric_guitar/image_0052.jpg",
574
+ "electric_guitar/image_0036.jpg",
575
+ "electric_guitar/image_0018.jpg",
576
+ "electric_guitar/image_0064.jpg",
577
+ "electric_guitar/image_0021.jpg",
578
+ "electric_guitar/image_0046.jpg",
579
+ "electric_guitar/image_0042.jpg",
580
+ "electric_guitar/image_0055.jpg",
581
+ "electric_guitar/image_0067.jpg",
582
+ "electric_guitar/image_0020.jpg"
583
+ ],
584
+ "elephant": [
585
+ "elephant/image_0009.jpg",
586
+ "elephant/image_0018.jpg",
587
+ "elephant/image_0026.jpg",
588
+ "elephant/image_0057.jpg",
589
+ "elephant/image_0064.jpg",
590
+ "elephant/image_0063.jpg",
591
+ "elephant/image_0053.jpg",
592
+ "elephant/image_0030.jpg",
593
+ "elephant/image_0003.jpg",
594
+ "elephant/image_0032.jpg",
595
+ "elephant/image_0006.jpg",
596
+ "elephant/image_0027.jpg",
597
+ "elephant/image_0040.jpg",
598
+ "elephant/image_0033.jpg",
599
+ "elephant/image_0025.jpg",
600
+ "elephant/image_0049.jpg"
601
+ ],
602
+ "emu": [
603
+ "emu/image_0018.jpg",
604
+ "emu/image_0033.jpg",
605
+ "emu/image_0007.jpg",
606
+ "emu/image_0046.jpg",
607
+ "emu/image_0006.jpg",
608
+ "emu/image_0001.jpg",
609
+ "emu/image_0028.jpg",
610
+ "emu/image_0037.jpg",
611
+ "emu/image_0003.jpg",
612
+ "emu/image_0032.jpg",
613
+ "emu/image_0015.jpg",
614
+ "emu/image_0013.jpg",
615
+ "emu/image_0021.jpg",
616
+ "emu/image_0044.jpg",
617
+ "emu/image_0047.jpg",
618
+ "emu/image_0031.jpg"
619
+ ],
620
+ "euphonium": [
621
+ "euphonium/image_0009.jpg",
622
+ "euphonium/image_0026.jpg",
623
+ "euphonium/image_0003.jpg",
624
+ "euphonium/image_0016.jpg",
625
+ "euphonium/image_0005.jpg",
626
+ "euphonium/image_0025.jpg",
627
+ "euphonium/image_0051.jpg",
628
+ "euphonium/image_0062.jpg",
629
+ "euphonium/image_0048.jpg",
630
+ "euphonium/image_0015.jpg",
631
+ "euphonium/image_0054.jpg",
632
+ "euphonium/image_0039.jpg",
633
+ "euphonium/image_0045.jpg",
634
+ "euphonium/image_0033.jpg",
635
+ "euphonium/image_0010.jpg",
636
+ "euphonium/image_0053.jpg"
637
+ ],
638
+ "ewer": [
639
+ "ewer/image_0070.jpg",
640
+ "ewer/image_0035.jpg",
641
+ "ewer/image_0051.jpg",
642
+ "ewer/image_0006.jpg",
643
+ "ewer/image_0082.jpg",
644
+ "ewer/image_0039.jpg",
645
+ "ewer/image_0014.jpg",
646
+ "ewer/image_0009.jpg",
647
+ "ewer/image_0005.jpg",
648
+ "ewer/image_0054.jpg",
649
+ "ewer/image_0013.jpg",
650
+ "ewer/image_0076.jpg",
651
+ "ewer/image_0085.jpg",
652
+ "ewer/image_0022.jpg",
653
+ "ewer/image_0026.jpg",
654
+ "ewer/image_0018.jpg"
655
+ ],
656
+ "face": [
657
+ "Faces/image_0201.jpg",
658
+ "Faces/image_0225.jpg",
659
+ "Faces/image_0160.jpg",
660
+ "Faces/image_0150.jpg",
661
+ "Faces/image_0387.jpg",
662
+ "Faces/image_0125.jpg",
663
+ "Faces/image_0095.jpg",
664
+ "Faces/image_0174.jpg",
665
+ "Faces/image_0213.jpg",
666
+ "Faces/image_0355.jpg",
667
+ "Faces/image_0030.jpg",
668
+ "Faces/image_0141.jpg",
669
+ "Faces/image_0399.jpg",
670
+ "Faces/image_0134.jpg",
671
+ "Faces/image_0301.jpg",
672
+ "Faces/image_0111.jpg"
673
+ ],
674
+ "ferry": [
675
+ "ferry/image_0042.jpg",
676
+ "ferry/image_0037.jpg",
677
+ "ferry/image_0047.jpg",
678
+ "ferry/image_0032.jpg",
679
+ "ferry/image_0006.jpg",
680
+ "ferry/image_0055.jpg",
681
+ "ferry/image_0038.jpg",
682
+ "ferry/image_0005.jpg",
683
+ "ferry/image_0065.jpg",
684
+ "ferry/image_0027.jpg",
685
+ "ferry/image_0018.jpg",
686
+ "ferry/image_0053.jpg",
687
+ "ferry/image_0013.jpg",
688
+ "ferry/image_0033.jpg",
689
+ "ferry/image_0036.jpg",
690
+ "ferry/image_0044.jpg"
691
+ ],
692
+ "flamingo": [
693
+ "flamingo/image_0062.jpg",
694
+ "flamingo/image_0044.jpg",
695
+ "flamingo/image_0012.jpg",
696
+ "flamingo/image_0033.jpg",
697
+ "flamingo/image_0020.jpg",
698
+ "flamingo/image_0016.jpg",
699
+ "flamingo/image_0010.jpg",
700
+ "flamingo/image_0065.jpg",
701
+ "flamingo/image_0019.jpg",
702
+ "flamingo/image_0042.jpg",
703
+ "flamingo/image_0045.jpg",
704
+ "flamingo/image_0015.jpg",
705
+ "flamingo/image_0022.jpg",
706
+ "flamingo/image_0058.jpg",
707
+ "flamingo/image_0002.jpg",
708
+ "flamingo/image_0047.jpg"
709
+ ],
710
+ "flamingo_head": [
711
+ "flamingo_head/image_0018.jpg",
712
+ "flamingo_head/image_0003.jpg",
713
+ "flamingo_head/image_0027.jpg",
714
+ "flamingo_head/image_0042.jpg",
715
+ "flamingo_head/image_0008.jpg",
716
+ "flamingo_head/image_0004.jpg",
717
+ "flamingo_head/image_0034.jpg",
718
+ "flamingo_head/image_0013.jpg",
719
+ "flamingo_head/image_0005.jpg",
720
+ "flamingo_head/image_0001.jpg",
721
+ "flamingo_head/image_0036.jpg",
722
+ "flamingo_head/image_0037.jpg",
723
+ "flamingo_head/image_0028.jpg",
724
+ "flamingo_head/image_0029.jpg",
725
+ "flamingo_head/image_0043.jpg",
726
+ "flamingo_head/image_0016.jpg"
727
+ ],
728
+ "garfield": [
729
+ "garfield/image_0014.jpg",
730
+ "garfield/image_0009.jpg",
731
+ "garfield/image_0021.jpg",
732
+ "garfield/image_0002.jpg",
733
+ "garfield/image_0004.jpg",
734
+ "garfield/image_0034.jpg",
735
+ "garfield/image_0027.jpg",
736
+ "garfield/image_0015.jpg",
737
+ "garfield/image_0019.jpg",
738
+ "garfield/image_0007.jpg",
739
+ "garfield/image_0028.jpg",
740
+ "garfield/image_0005.jpg",
741
+ "garfield/image_0001.jpg",
742
+ "garfield/image_0017.jpg",
743
+ "garfield/image_0023.jpg",
744
+ "garfield/image_0013.jpg"
745
+ ],
746
+ "gerenuk": [
747
+ "gerenuk/image_0020.jpg",
748
+ "gerenuk/image_0006.jpg",
749
+ "gerenuk/image_0034.jpg",
750
+ "gerenuk/image_0005.jpg",
751
+ "gerenuk/image_0010.jpg",
752
+ "gerenuk/image_0027.jpg",
753
+ "gerenuk/image_0014.jpg",
754
+ "gerenuk/image_0022.jpg",
755
+ "gerenuk/image_0033.jpg",
756
+ "gerenuk/image_0026.jpg",
757
+ "gerenuk/image_0013.jpg",
758
+ "gerenuk/image_0023.jpg",
759
+ "gerenuk/image_0031.jpg",
760
+ "gerenuk/image_0011.jpg",
761
+ "gerenuk/image_0008.jpg",
762
+ "gerenuk/image_0025.jpg"
763
+ ],
764
+ "gramophone": [
765
+ "gramophone/image_0048.jpg",
766
+ "gramophone/image_0035.jpg",
767
+ "gramophone/image_0044.jpg",
768
+ "gramophone/image_0050.jpg",
769
+ "gramophone/image_0009.jpg",
770
+ "gramophone/image_0008.jpg",
771
+ "gramophone/image_0032.jpg",
772
+ "gramophone/image_0020.jpg",
773
+ "gramophone/image_0028.jpg",
774
+ "gramophone/image_0037.jpg",
775
+ "gramophone/image_0003.jpg",
776
+ "gramophone/image_0001.jpg",
777
+ "gramophone/image_0049.jpg",
778
+ "gramophone/image_0021.jpg",
779
+ "gramophone/image_0043.jpg",
780
+ "gramophone/image_0025.jpg"
781
+ ],
782
+ "grand_piano": [
783
+ "grand_piano/image_0055.jpg",
784
+ "grand_piano/image_0049.jpg",
785
+ "grand_piano/image_0036.jpg",
786
+ "grand_piano/image_0035.jpg",
787
+ "grand_piano/image_0091.jpg",
788
+ "grand_piano/image_0092.jpg",
789
+ "grand_piano/image_0008.jpg",
790
+ "grand_piano/image_0002.jpg",
791
+ "grand_piano/image_0060.jpg",
792
+ "grand_piano/image_0041.jpg",
793
+ "grand_piano/image_0079.jpg",
794
+ "grand_piano/image_0051.jpg",
795
+ "grand_piano/image_0095.jpg",
796
+ "grand_piano/image_0067.jpg",
797
+ "grand_piano/image_0047.jpg",
798
+ "grand_piano/image_0048.jpg"
799
+ ],
800
+ "hawksbill": [
801
+ "hawksbill/image_0077.jpg",
802
+ "hawksbill/image_0022.jpg",
803
+ "hawksbill/image_0011.jpg",
804
+ "hawksbill/image_0060.jpg",
805
+ "hawksbill/image_0047.jpg",
806
+ "hawksbill/image_0095.jpg",
807
+ "hawksbill/image_0010.jpg",
808
+ "hawksbill/image_0067.jpg",
809
+ "hawksbill/image_0032.jpg",
810
+ "hawksbill/image_0057.jpg",
811
+ "hawksbill/image_0019.jpg",
812
+ "hawksbill/image_0003.jpg",
813
+ "hawksbill/image_0017.jpg",
814
+ "hawksbill/image_0044.jpg",
815
+ "hawksbill/image_0096.jpg",
816
+ "hawksbill/image_0048.jpg"
817
+ ],
818
+ "headphone": [
819
+ "headphone/image_0013.jpg",
820
+ "headphone/image_0001.jpg",
821
+ "headphone/image_0038.jpg",
822
+ "headphone/image_0024.jpg",
823
+ "headphone/image_0030.jpg",
824
+ "headphone/image_0020.jpg",
825
+ "headphone/image_0041.jpg",
826
+ "headphone/image_0036.jpg",
827
+ "headphone/image_0037.jpg",
828
+ "headphone/image_0009.jpg",
829
+ "headphone/image_0003.jpg",
830
+ "headphone/image_0017.jpg",
831
+ "headphone/image_0039.jpg",
832
+ "headphone/image_0026.jpg",
833
+ "headphone/image_0023.jpg",
834
+ "headphone/image_0031.jpg"
835
+ ],
836
+ "hedgehog": [
837
+ "hedgehog/image_0024.jpg",
838
+ "hedgehog/image_0023.jpg",
839
+ "hedgehog/image_0002.jpg",
840
+ "hedgehog/image_0028.jpg",
841
+ "hedgehog/image_0016.jpg",
842
+ "hedgehog/image_0011.jpg",
843
+ "hedgehog/image_0054.jpg",
844
+ "hedgehog/image_0014.jpg",
845
+ "hedgehog/image_0027.jpg",
846
+ "hedgehog/image_0044.jpg",
847
+ "hedgehog/image_0045.jpg",
848
+ "hedgehog/image_0041.jpg",
849
+ "hedgehog/image_0020.jpg",
850
+ "hedgehog/image_0049.jpg",
851
+ "hedgehog/image_0040.jpg",
852
+ "hedgehog/image_0047.jpg"
853
+ ],
854
+ "helicopter": [
855
+ "helicopter/image_0065.jpg",
856
+ "helicopter/image_0064.jpg",
857
+ "helicopter/image_0025.jpg",
858
+ "helicopter/image_0032.jpg",
859
+ "helicopter/image_0073.jpg",
860
+ "helicopter/image_0028.jpg",
861
+ "helicopter/image_0081.jpg",
862
+ "helicopter/image_0051.jpg",
863
+ "helicopter/image_0052.jpg",
864
+ "helicopter/image_0078.jpg",
865
+ "helicopter/image_0068.jpg",
866
+ "helicopter/image_0069.jpg",
867
+ "helicopter/image_0058.jpg",
868
+ "helicopter/image_0018.jpg",
869
+ "helicopter/image_0054.jpg",
870
+ "helicopter/image_0011.jpg"
871
+ ],
872
+ "ibis": [
873
+ "ibis/image_0051.jpg",
874
+ "ibis/image_0062.jpg",
875
+ "ibis/image_0059.jpg",
876
+ "ibis/image_0017.jpg",
877
+ "ibis/image_0073.jpg",
878
+ "ibis/image_0076.jpg",
879
+ "ibis/image_0044.jpg",
880
+ "ibis/image_0079.jpg",
881
+ "ibis/image_0037.jpg",
882
+ "ibis/image_0026.jpg",
883
+ "ibis/image_0069.jpg",
884
+ "ibis/image_0002.jpg",
885
+ "ibis/image_0007.jpg",
886
+ "ibis/image_0058.jpg",
887
+ "ibis/image_0033.jpg",
888
+ "ibis/image_0067.jpg"
889
+ ],
890
+ "inline_skate": [
891
+ "inline_skate/image_0003.jpg",
892
+ "inline_skate/image_0016.jpg",
893
+ "inline_skate/image_0014.jpg",
894
+ "inline_skate/image_0019.jpg",
895
+ "inline_skate/image_0021.jpg",
896
+ "inline_skate/image_0002.jpg",
897
+ "inline_skate/image_0008.jpg",
898
+ "inline_skate/image_0017.jpg",
899
+ "inline_skate/image_0031.jpg",
900
+ "inline_skate/image_0005.jpg",
901
+ "inline_skate/image_0029.jpg",
902
+ "inline_skate/image_0004.jpg",
903
+ "inline_skate/image_0007.jpg",
904
+ "inline_skate/image_0022.jpg",
905
+ "inline_skate/image_0026.jpg",
906
+ "inline_skate/image_0025.jpg"
907
+ ],
908
+ "joshua_tree": [
909
+ "joshua_tree/image_0035.jpg",
910
+ "joshua_tree/image_0010.jpg",
911
+ "joshua_tree/image_0056.jpg",
912
+ "joshua_tree/image_0029.jpg",
913
+ "joshua_tree/image_0052.jpg",
914
+ "joshua_tree/image_0051.jpg",
915
+ "joshua_tree/image_0045.jpg",
916
+ "joshua_tree/image_0006.jpg",
917
+ "joshua_tree/image_0003.jpg",
918
+ "joshua_tree/image_0038.jpg",
919
+ "joshua_tree/image_0024.jpg",
920
+ "joshua_tree/image_0049.jpg",
921
+ "joshua_tree/image_0026.jpg",
922
+ "joshua_tree/image_0009.jpg",
923
+ "joshua_tree/image_0019.jpg",
924
+ "joshua_tree/image_0050.jpg"
925
+ ],
926
+ "kangaroo": [
927
+ "kangaroo/image_0076.jpg",
928
+ "kangaroo/image_0036.jpg",
929
+ "kangaroo/image_0041.jpg",
930
+ "kangaroo/image_0040.jpg",
931
+ "kangaroo/image_0061.jpg",
932
+ "kangaroo/image_0035.jpg",
933
+ "kangaroo/image_0083.jpg",
934
+ "kangaroo/image_0008.jpg",
935
+ "kangaroo/image_0007.jpg",
936
+ "kangaroo/image_0045.jpg",
937
+ "kangaroo/image_0078.jpg",
938
+ "kangaroo/image_0047.jpg",
939
+ "kangaroo/image_0003.jpg",
940
+ "kangaroo/image_0025.jpg",
941
+ "kangaroo/image_0019.jpg",
942
+ "kangaroo/image_0084.jpg"
943
+ ],
944
+ "ketch": [
945
+ "ketch/image_0009.jpg",
946
+ "ketch/image_0077.jpg",
947
+ "ketch/image_0097.jpg",
948
+ "ketch/image_0004.jpg",
949
+ "ketch/image_0047.jpg",
950
+ "ketch/image_0108.jpg",
951
+ "ketch/image_0068.jpg",
952
+ "ketch/image_0089.jpg",
953
+ "ketch/image_0022.jpg",
954
+ "ketch/image_0109.jpg",
955
+ "ketch/image_0003.jpg",
956
+ "ketch/image_0005.jpg",
957
+ "ketch/image_0064.jpg",
958
+ "ketch/image_0093.jpg",
959
+ "ketch/image_0066.jpg",
960
+ "ketch/image_0061.jpg"
961
+ ],
962
+ "lamp": [
963
+ "lamp/image_0023.jpg",
964
+ "lamp/image_0018.jpg",
965
+ "lamp/image_0003.jpg",
966
+ "lamp/image_0043.jpg",
967
+ "lamp/image_0039.jpg",
968
+ "lamp/image_0051.jpg",
969
+ "lamp/image_0025.jpg",
970
+ "lamp/image_0008.jpg",
971
+ "lamp/image_0042.jpg",
972
+ "lamp/image_0024.jpg",
973
+ "lamp/image_0053.jpg",
974
+ "lamp/image_0010.jpg",
975
+ "lamp/image_0047.jpg",
976
+ "lamp/image_0030.jpg",
977
+ "lamp/image_0034.jpg",
978
+ "lamp/image_0049.jpg"
979
+ ],
980
+ "laptop": [
981
+ "laptop/image_0010.jpg",
982
+ "laptop/image_0050.jpg",
983
+ "laptop/image_0002.jpg",
984
+ "laptop/image_0052.jpg",
985
+ "laptop/image_0075.jpg",
986
+ "laptop/image_0034.jpg",
987
+ "laptop/image_0044.jpg",
988
+ "laptop/image_0060.jpg",
989
+ "laptop/image_0047.jpg",
990
+ "laptop/image_0068.jpg",
991
+ "laptop/image_0055.jpg",
992
+ "laptop/image_0063.jpg",
993
+ "laptop/image_0049.jpg",
994
+ "laptop/image_0054.jpg",
995
+ "laptop/image_0036.jpg",
996
+ "laptop/image_0069.jpg"
997
+ ],
998
+ "leopard": [
999
+ "Leopards/image_0016.jpg",
1000
+ "Leopards/image_0106.jpg",
1001
+ "Leopards/image_0087.jpg",
1002
+ "Leopards/image_0124.jpg",
1003
+ "Leopards/image_0049.jpg",
1004
+ "Leopards/image_0078.jpg",
1005
+ "Leopards/image_0142.jpg",
1006
+ "Leopards/image_0176.jpg",
1007
+ "Leopards/image_0101.jpg",
1008
+ "Leopards/image_0109.jpg",
1009
+ "Leopards/image_0130.jpg",
1010
+ "Leopards/image_0148.jpg",
1011
+ "Leopards/image_0117.jpg",
1012
+ "Leopards/image_0182.jpg",
1013
+ "Leopards/image_0166.jpg",
1014
+ "Leopards/image_0012.jpg"
1015
+ ],
1016
+ "llama": [
1017
+ "llama/image_0047.jpg",
1018
+ "llama/image_0024.jpg",
1019
+ "llama/image_0056.jpg",
1020
+ "llama/image_0070.jpg",
1021
+ "llama/image_0072.jpg",
1022
+ "llama/image_0066.jpg",
1023
+ "llama/image_0071.jpg",
1024
+ "llama/image_0076.jpg",
1025
+ "llama/image_0055.jpg",
1026
+ "llama/image_0078.jpg",
1027
+ "llama/image_0039.jpg",
1028
+ "llama/image_0033.jpg",
1029
+ "llama/image_0069.jpg",
1030
+ "llama/image_0060.jpg",
1031
+ "llama/image_0059.jpg",
1032
+ "llama/image_0063.jpg"
1033
+ ],
1034
+ "lobster": [
1035
+ "lobster/image_0017.jpg",
1036
+ "lobster/image_0032.jpg",
1037
+ "lobster/image_0026.jpg",
1038
+ "lobster/image_0001.jpg",
1039
+ "lobster/image_0005.jpg",
1040
+ "lobster/image_0036.jpg",
1041
+ "lobster/image_0027.jpg",
1042
+ "lobster/image_0022.jpg",
1043
+ "lobster/image_0033.jpg",
1044
+ "lobster/image_0007.jpg",
1045
+ "lobster/image_0037.jpg",
1046
+ "lobster/image_0039.jpg",
1047
+ "lobster/image_0030.jpg",
1048
+ "lobster/image_0019.jpg",
1049
+ "lobster/image_0008.jpg",
1050
+ "lobster/image_0015.jpg"
1051
+ ],
1052
+ "lotus": [
1053
+ "lotus/image_0038.jpg",
1054
+ "lotus/image_0066.jpg",
1055
+ "lotus/image_0007.jpg",
1056
+ "lotus/image_0013.jpg",
1057
+ "lotus/image_0031.jpg",
1058
+ "lotus/image_0030.jpg",
1059
+ "lotus/image_0010.jpg",
1060
+ "lotus/image_0042.jpg",
1061
+ "lotus/image_0004.jpg",
1062
+ "lotus/image_0046.jpg",
1063
+ "lotus/image_0001.jpg",
1064
+ "lotus/image_0006.jpg",
1065
+ "lotus/image_0036.jpg",
1066
+ "lotus/image_0065.jpg",
1067
+ "lotus/image_0064.jpg",
1068
+ "lotus/image_0063.jpg"
1069
+ ],
1070
+ "mandolin": [
1071
+ "mandolin/image_0025.jpg",
1072
+ "mandolin/image_0001.jpg",
1073
+ "mandolin/image_0030.jpg",
1074
+ "mandolin/image_0031.jpg",
1075
+ "mandolin/image_0021.jpg",
1076
+ "mandolin/image_0022.jpg",
1077
+ "mandolin/image_0006.jpg",
1078
+ "mandolin/image_0028.jpg",
1079
+ "mandolin/image_0019.jpg",
1080
+ "mandolin/image_0036.jpg",
1081
+ "mandolin/image_0037.jpg",
1082
+ "mandolin/image_0009.jpg",
1083
+ "mandolin/image_0035.jpg",
1084
+ "mandolin/image_0002.jpg",
1085
+ "mandolin/image_0032.jpg",
1086
+ "mandolin/image_0029.jpg"
1087
+ ],
1088
+ "mayfly": [
1089
+ "mayfly/image_0009.jpg",
1090
+ "mayfly/image_0010.jpg",
1091
+ "mayfly/image_0026.jpg",
1092
+ "mayfly/image_0023.jpg",
1093
+ "mayfly/image_0033.jpg",
1094
+ "mayfly/image_0021.jpg",
1095
+ "mayfly/image_0029.jpg",
1096
+ "mayfly/image_0027.jpg",
1097
+ "mayfly/image_0013.jpg",
1098
+ "mayfly/image_0035.jpg",
1099
+ "mayfly/image_0015.jpg",
1100
+ "mayfly/image_0028.jpg",
1101
+ "mayfly/image_0018.jpg",
1102
+ "mayfly/image_0037.jpg",
1103
+ "mayfly/image_0011.jpg",
1104
+ "mayfly/image_0031.jpg"
1105
+ ],
1106
+ "menorah": [
1107
+ "menorah/image_0078.jpg",
1108
+ "menorah/image_0065.jpg",
1109
+ "menorah/image_0001.jpg",
1110
+ "menorah/image_0036.jpg",
1111
+ "menorah/image_0087.jpg",
1112
+ "menorah/image_0081.jpg",
1113
+ "menorah/image_0046.jpg",
1114
+ "menorah/image_0043.jpg",
1115
+ "menorah/image_0035.jpg",
1116
+ "menorah/image_0071.jpg",
1117
+ "menorah/image_0066.jpg",
1118
+ "menorah/image_0085.jpg",
1119
+ "menorah/image_0073.jpg",
1120
+ "menorah/image_0086.jpg",
1121
+ "menorah/image_0077.jpg",
1122
+ "menorah/image_0013.jpg"
1123
+ ],
1124
+ "metronome": [
1125
+ "metronome/image_0001.jpg",
1126
+ "metronome/image_0018.jpg",
1127
+ "metronome/image_0009.jpg",
1128
+ "metronome/image_0019.jpg",
1129
+ "metronome/image_0027.jpg",
1130
+ "metronome/image_0007.jpg",
1131
+ "metronome/image_0024.jpg",
1132
+ "metronome/image_0011.jpg",
1133
+ "metronome/image_0029.jpg",
1134
+ "metronome/image_0010.jpg",
1135
+ "metronome/image_0008.jpg",
1136
+ "metronome/image_0026.jpg",
1137
+ "metronome/image_0030.jpg",
1138
+ "metronome/image_0015.jpg",
1139
+ "metronome/image_0032.jpg",
1140
+ "metronome/image_0025.jpg"
1141
+ ],
1142
+ "minaret": [
1143
+ "minaret/image_0034.jpg",
1144
+ "minaret/image_0038.jpg",
1145
+ "minaret/image_0054.jpg",
1146
+ "minaret/image_0063.jpg",
1147
+ "minaret/image_0050.jpg",
1148
+ "minaret/image_0031.jpg",
1149
+ "minaret/image_0004.jpg",
1150
+ "minaret/image_0011.jpg",
1151
+ "minaret/image_0051.jpg",
1152
+ "minaret/image_0029.jpg",
1153
+ "minaret/image_0005.jpg",
1154
+ "minaret/image_0068.jpg",
1155
+ "minaret/image_0072.jpg",
1156
+ "minaret/image_0009.jpg",
1157
+ "minaret/image_0052.jpg",
1158
+ "minaret/image_0027.jpg"
1159
+ ],
1160
+ "motorbike": [
1161
+ "Motorbikes/image_0260.jpg",
1162
+ "Motorbikes/image_0431.jpg",
1163
+ "Motorbikes/image_0530.jpg",
1164
+ "Motorbikes/image_0008.jpg",
1165
+ "Motorbikes/image_0313.jpg",
1166
+ "Motorbikes/image_0440.jpg",
1167
+ "Motorbikes/image_0576.jpg",
1168
+ "Motorbikes/image_0038.jpg",
1169
+ "Motorbikes/image_0694.jpg",
1170
+ "Motorbikes/image_0067.jpg",
1171
+ "Motorbikes/image_0294.jpg",
1172
+ "Motorbikes/image_0662.jpg",
1173
+ "Motorbikes/image_0512.jpg",
1174
+ "Motorbikes/image_0470.jpg",
1175
+ "Motorbikes/image_0288.jpg",
1176
+ "Motorbikes/image_0036.jpg"
1177
+ ],
1178
+ "nautilus": [
1179
+ "nautilus/image_0008.jpg",
1180
+ "nautilus/image_0005.jpg",
1181
+ "nautilus/image_0026.jpg",
1182
+ "nautilus/image_0021.jpg",
1183
+ "nautilus/image_0010.jpg",
1184
+ "nautilus/image_0052.jpg",
1185
+ "nautilus/image_0023.jpg",
1186
+ "nautilus/image_0032.jpg",
1187
+ "nautilus/image_0049.jpg",
1188
+ "nautilus/image_0025.jpg",
1189
+ "nautilus/image_0050.jpg",
1190
+ "nautilus/image_0027.jpg",
1191
+ "nautilus/image_0047.jpg",
1192
+ "nautilus/image_0002.jpg",
1193
+ "nautilus/image_0054.jpg",
1194
+ "nautilus/image_0018.jpg"
1195
+ ],
1196
+ "octopus": [
1197
+ "octopus/image_0029.jpg",
1198
+ "octopus/image_0001.jpg",
1199
+ "octopus/image_0003.jpg",
1200
+ "octopus/image_0031.jpg",
1201
+ "octopus/image_0004.jpg",
1202
+ "octopus/image_0013.jpg",
1203
+ "octopus/image_0032.jpg",
1204
+ "octopus/image_0014.jpg",
1205
+ "octopus/image_0010.jpg",
1206
+ "octopus/image_0020.jpg",
1207
+ "octopus/image_0018.jpg",
1208
+ "octopus/image_0026.jpg",
1209
+ "octopus/image_0027.jpg",
1210
+ "octopus/image_0007.jpg",
1211
+ "octopus/image_0006.jpg",
1212
+ "octopus/image_0030.jpg"
1213
+ ],
1214
+ "okapi": [
1215
+ "okapi/image_0038.jpg",
1216
+ "okapi/image_0008.jpg",
1217
+ "okapi/image_0034.jpg",
1218
+ "okapi/image_0023.jpg",
1219
+ "okapi/image_0006.jpg",
1220
+ "okapi/image_0001.jpg",
1221
+ "okapi/image_0019.jpg",
1222
+ "okapi/image_0036.jpg",
1223
+ "okapi/image_0017.jpg",
1224
+ "okapi/image_0022.jpg",
1225
+ "okapi/image_0018.jpg",
1226
+ "okapi/image_0004.jpg",
1227
+ "okapi/image_0030.jpg",
1228
+ "okapi/image_0015.jpg",
1229
+ "okapi/image_0021.jpg",
1230
+ "okapi/image_0020.jpg"
1231
+ ],
1232
+ "pagoda": [
1233
+ "pagoda/image_0040.jpg",
1234
+ "pagoda/image_0014.jpg",
1235
+ "pagoda/image_0043.jpg",
1236
+ "pagoda/image_0011.jpg",
1237
+ "pagoda/image_0010.jpg",
1238
+ "pagoda/image_0015.jpg",
1239
+ "pagoda/image_0016.jpg",
1240
+ "pagoda/image_0035.jpg",
1241
+ "pagoda/image_0012.jpg",
1242
+ "pagoda/image_0024.jpg",
1243
+ "pagoda/image_0019.jpg",
1244
+ "pagoda/image_0020.jpg",
1245
+ "pagoda/image_0038.jpg",
1246
+ "pagoda/image_0009.jpg",
1247
+ "pagoda/image_0007.jpg",
1248
+ "pagoda/image_0003.jpg"
1249
+ ],
1250
+ "panda": [
1251
+ "panda/image_0023.jpg",
1252
+ "panda/image_0003.jpg",
1253
+ "panda/image_0035.jpg",
1254
+ "panda/image_0038.jpg",
1255
+ "panda/image_0032.jpg",
1256
+ "panda/image_0002.jpg",
1257
+ "panda/image_0027.jpg",
1258
+ "panda/image_0036.jpg",
1259
+ "panda/image_0013.jpg",
1260
+ "panda/image_0009.jpg",
1261
+ "panda/image_0016.jpg",
1262
+ "panda/image_0022.jpg",
1263
+ "panda/image_0019.jpg",
1264
+ "panda/image_0030.jpg",
1265
+ "panda/image_0014.jpg",
1266
+ "panda/image_0015.jpg"
1267
+ ],
1268
+ "pigeon": [
1269
+ "pigeon/image_0006.jpg",
1270
+ "pigeon/image_0040.jpg",
1271
+ "pigeon/image_0015.jpg",
1272
+ "pigeon/image_0002.jpg",
1273
+ "pigeon/image_0023.jpg",
1274
+ "pigeon/image_0014.jpg",
1275
+ "pigeon/image_0005.jpg",
1276
+ "pigeon/image_0010.jpg",
1277
+ "pigeon/image_0001.jpg",
1278
+ "pigeon/image_0030.jpg",
1279
+ "pigeon/image_0008.jpg",
1280
+ "pigeon/image_0025.jpg",
1281
+ "pigeon/image_0009.jpg",
1282
+ "pigeon/image_0045.jpg",
1283
+ "pigeon/image_0044.jpg",
1284
+ "pigeon/image_0042.jpg"
1285
+ ],
1286
+ "pizza": [
1287
+ "pizza/image_0029.jpg",
1288
+ "pizza/image_0050.jpg",
1289
+ "pizza/image_0028.jpg",
1290
+ "pizza/image_0013.jpg",
1291
+ "pizza/image_0032.jpg",
1292
+ "pizza/image_0043.jpg",
1293
+ "pizza/image_0016.jpg",
1294
+ "pizza/image_0036.jpg",
1295
+ "pizza/image_0005.jpg",
1296
+ "pizza/image_0051.jpg",
1297
+ "pizza/image_0023.jpg",
1298
+ "pizza/image_0027.jpg",
1299
+ "pizza/image_0020.jpg",
1300
+ "pizza/image_0009.jpg",
1301
+ "pizza/image_0044.jpg",
1302
+ "pizza/image_0008.jpg"
1303
+ ],
1304
+ "platypus": [
1305
+ "platypus/image_0023.jpg",
1306
+ "platypus/image_0017.jpg",
1307
+ "platypus/image_0029.jpg",
1308
+ "platypus/image_0032.jpg",
1309
+ "platypus/image_0003.jpg",
1310
+ "platypus/image_0034.jpg",
1311
+ "platypus/image_0002.jpg",
1312
+ "platypus/image_0015.jpg",
1313
+ "platypus/image_0018.jpg",
1314
+ "platypus/image_0014.jpg",
1315
+ "platypus/image_0025.jpg",
1316
+ "platypus/image_0006.jpg",
1317
+ "platypus/image_0004.jpg",
1318
+ "platypus/image_0009.jpg",
1319
+ "platypus/image_0033.jpg",
1320
+ "platypus/image_0020.jpg"
1321
+ ],
1322
+ "pyramid": [
1323
+ "pyramid/image_0053.jpg",
1324
+ "pyramid/image_0043.jpg",
1325
+ "pyramid/image_0034.jpg",
1326
+ "pyramid/image_0029.jpg",
1327
+ "pyramid/image_0027.jpg",
1328
+ "pyramid/image_0015.jpg",
1329
+ "pyramid/image_0037.jpg",
1330
+ "pyramid/image_0002.jpg",
1331
+ "pyramid/image_0023.jpg",
1332
+ "pyramid/image_0033.jpg",
1333
+ "pyramid/image_0028.jpg",
1334
+ "pyramid/image_0016.jpg",
1335
+ "pyramid/image_0047.jpg",
1336
+ "pyramid/image_0001.jpg",
1337
+ "pyramid/image_0055.jpg",
1338
+ "pyramid/image_0056.jpg"
1339
+ ],
1340
+ "revolver": [
1341
+ "revolver/image_0061.jpg",
1342
+ "revolver/image_0076.jpg",
1343
+ "revolver/image_0020.jpg",
1344
+ "revolver/image_0039.jpg",
1345
+ "revolver/image_0029.jpg",
1346
+ "revolver/image_0052.jpg",
1347
+ "revolver/image_0068.jpg",
1348
+ "revolver/image_0081.jpg",
1349
+ "revolver/image_0007.jpg",
1350
+ "revolver/image_0063.jpg",
1351
+ "revolver/image_0051.jpg",
1352
+ "revolver/image_0034.jpg",
1353
+ "revolver/image_0035.jpg",
1354
+ "revolver/image_0014.jpg",
1355
+ "revolver/image_0010.jpg",
1356
+ "revolver/image_0032.jpg"
1357
+ ],
1358
+ "rhino": [
1359
+ "rhino/image_0049.jpg",
1360
+ "rhino/image_0008.jpg",
1361
+ "rhino/image_0012.jpg",
1362
+ "rhino/image_0018.jpg",
1363
+ "rhino/image_0002.jpg",
1364
+ "rhino/image_0010.jpg",
1365
+ "rhino/image_0003.jpg",
1366
+ "rhino/image_0028.jpg",
1367
+ "rhino/image_0051.jpg",
1368
+ "rhino/image_0001.jpg",
1369
+ "rhino/image_0007.jpg",
1370
+ "rhino/image_0034.jpg",
1371
+ "rhino/image_0057.jpg",
1372
+ "rhino/image_0056.jpg",
1373
+ "rhino/image_0041.jpg",
1374
+ "rhino/image_0016.jpg"
1375
+ ],
1376
+ "rooster": [
1377
+ "rooster/image_0005.jpg",
1378
+ "rooster/image_0026.jpg",
1379
+ "rooster/image_0001.jpg",
1380
+ "rooster/image_0043.jpg",
1381
+ "rooster/image_0030.jpg",
1382
+ "rooster/image_0002.jpg",
1383
+ "rooster/image_0031.jpg",
1384
+ "rooster/image_0024.jpg",
1385
+ "rooster/image_0046.jpg",
1386
+ "rooster/image_0029.jpg",
1387
+ "rooster/image_0006.jpg",
1388
+ "rooster/image_0032.jpg",
1389
+ "rooster/image_0010.jpg",
1390
+ "rooster/image_0013.jpg",
1391
+ "rooster/image_0016.jpg",
1392
+ "rooster/image_0036.jpg"
1393
+ ],
1394
+ "saxophone": [
1395
+ "saxophone/image_0007.jpg",
1396
+ "saxophone/image_0005.jpg",
1397
+ "saxophone/image_0038.jpg",
1398
+ "saxophone/image_0006.jpg",
1399
+ "saxophone/image_0019.jpg",
1400
+ "saxophone/image_0026.jpg",
1401
+ "saxophone/image_0009.jpg",
1402
+ "saxophone/image_0018.jpg",
1403
+ "saxophone/image_0025.jpg",
1404
+ "saxophone/image_0040.jpg",
1405
+ "saxophone/image_0014.jpg",
1406
+ "saxophone/image_0001.jpg",
1407
+ "saxophone/image_0035.jpg",
1408
+ "saxophone/image_0015.jpg",
1409
+ "saxophone/image_0027.jpg",
1410
+ "saxophone/image_0032.jpg"
1411
+ ],
1412
+ "schooner": [
1413
+ "schooner/image_0028.jpg",
1414
+ "schooner/image_0047.jpg",
1415
+ "schooner/image_0020.jpg",
1416
+ "schooner/image_0033.jpg",
1417
+ "schooner/image_0054.jpg",
1418
+ "schooner/image_0030.jpg",
1419
+ "schooner/image_0004.jpg",
1420
+ "schooner/image_0029.jpg",
1421
+ "schooner/image_0040.jpg",
1422
+ "schooner/image_0046.jpg",
1423
+ "schooner/image_0035.jpg",
1424
+ "schooner/image_0062.jpg",
1425
+ "schooner/image_0045.jpg",
1426
+ "schooner/image_0014.jpg",
1427
+ "schooner/image_0043.jpg",
1428
+ "schooner/image_0015.jpg"
1429
+ ],
1430
+ "scissors": [
1431
+ "scissors/image_0015.jpg",
1432
+ "scissors/image_0007.jpg",
1433
+ "scissors/image_0036.jpg",
1434
+ "scissors/image_0026.jpg",
1435
+ "scissors/image_0017.jpg",
1436
+ "scissors/image_0029.jpg",
1437
+ "scissors/image_0016.jpg",
1438
+ "scissors/image_0008.jpg",
1439
+ "scissors/image_0018.jpg",
1440
+ "scissors/image_0023.jpg",
1441
+ "scissors/image_0027.jpg",
1442
+ "scissors/image_0022.jpg",
1443
+ "scissors/image_0021.jpg",
1444
+ "scissors/image_0031.jpg",
1445
+ "scissors/image_0002.jpg",
1446
+ "scissors/image_0012.jpg"
1447
+ ],
1448
+ "scorpion": [
1449
+ "scorpion/image_0026.jpg",
1450
+ "scorpion/image_0008.jpg",
1451
+ "scorpion/image_0019.jpg",
1452
+ "scorpion/image_0004.jpg",
1453
+ "scorpion/image_0027.jpg",
1454
+ "scorpion/image_0077.jpg",
1455
+ "scorpion/image_0003.jpg",
1456
+ "scorpion/image_0025.jpg",
1457
+ "scorpion/image_0028.jpg",
1458
+ "scorpion/image_0031.jpg",
1459
+ "scorpion/image_0050.jpg",
1460
+ "scorpion/image_0022.jpg",
1461
+ "scorpion/image_0058.jpg",
1462
+ "scorpion/image_0075.jpg",
1463
+ "scorpion/image_0067.jpg",
1464
+ "scorpion/image_0047.jpg"
1465
+ ],
1466
+ "sea_horse": [
1467
+ "sea_horse/image_0001.jpg",
1468
+ "sea_horse/image_0045.jpg",
1469
+ "sea_horse/image_0049.jpg",
1470
+ "sea_horse/image_0026.jpg",
1471
+ "sea_horse/image_0040.jpg",
1472
+ "sea_horse/image_0018.jpg",
1473
+ "sea_horse/image_0025.jpg",
1474
+ "sea_horse/image_0013.jpg",
1475
+ "sea_horse/image_0022.jpg",
1476
+ "sea_horse/image_0054.jpg",
1477
+ "sea_horse/image_0042.jpg",
1478
+ "sea_horse/image_0007.jpg",
1479
+ "sea_horse/image_0006.jpg",
1480
+ "sea_horse/image_0019.jpg",
1481
+ "sea_horse/image_0011.jpg",
1482
+ "sea_horse/image_0008.jpg"
1483
+ ],
1484
+ "snoopy": [
1485
+ "snoopy/image_0009.jpg",
1486
+ "snoopy/image_0016.jpg",
1487
+ "snoopy/image_0011.jpg",
1488
+ "snoopy/image_0010.jpg",
1489
+ "snoopy/image_0020.jpg",
1490
+ "snoopy/image_0012.jpg",
1491
+ "snoopy/image_0025.jpg",
1492
+ "snoopy/image_0032.jpg",
1493
+ "snoopy/image_0006.jpg",
1494
+ "snoopy/image_0022.jpg",
1495
+ "snoopy/image_0017.jpg",
1496
+ "snoopy/image_0029.jpg",
1497
+ "snoopy/image_0030.jpg",
1498
+ "snoopy/image_0007.jpg",
1499
+ "snoopy/image_0002.jpg",
1500
+ "snoopy/image_0018.jpg"
1501
+ ],
1502
+ "soccer_ball": [
1503
+ "soccer_ball/image_0019.jpg",
1504
+ "soccer_ball/image_0032.jpg",
1505
+ "soccer_ball/image_0058.jpg",
1506
+ "soccer_ball/image_0050.jpg",
1507
+ "soccer_ball/image_0021.jpg",
1508
+ "soccer_ball/image_0005.jpg",
1509
+ "soccer_ball/image_0006.jpg",
1510
+ "soccer_ball/image_0036.jpg",
1511
+ "soccer_ball/image_0020.jpg",
1512
+ "soccer_ball/image_0026.jpg",
1513
+ "soccer_ball/image_0028.jpg",
1514
+ "soccer_ball/image_0012.jpg",
1515
+ "soccer_ball/image_0040.jpg",
1516
+ "soccer_ball/image_0046.jpg",
1517
+ "soccer_ball/image_0055.jpg",
1518
+ "soccer_ball/image_0047.jpg"
1519
+ ],
1520
+ "stapler": [
1521
+ "stapler/image_0012.jpg",
1522
+ "stapler/image_0042.jpg",
1523
+ "stapler/image_0041.jpg",
1524
+ "stapler/image_0029.jpg",
1525
+ "stapler/image_0038.jpg",
1526
+ "stapler/image_0009.jpg",
1527
+ "stapler/image_0036.jpg",
1528
+ "stapler/image_0016.jpg",
1529
+ "stapler/image_0031.jpg",
1530
+ "stapler/image_0039.jpg",
1531
+ "stapler/image_0001.jpg",
1532
+ "stapler/image_0023.jpg",
1533
+ "stapler/image_0026.jpg",
1534
+ "stapler/image_0013.jpg",
1535
+ "stapler/image_0044.jpg",
1536
+ "stapler/image_0027.jpg"
1537
+ ],
1538
+ "starfish": [
1539
+ "starfish/image_0080.jpg",
1540
+ "starfish/image_0067.jpg",
1541
+ "starfish/image_0048.jpg",
1542
+ "starfish/image_0032.jpg",
1543
+ "starfish/image_0085.jpg",
1544
+ "starfish/image_0071.jpg",
1545
+ "starfish/image_0003.jpg",
1546
+ "starfish/image_0013.jpg",
1547
+ "starfish/image_0004.jpg",
1548
+ "starfish/image_0083.jpg",
1549
+ "starfish/image_0025.jpg",
1550
+ "starfish/image_0041.jpg",
1551
+ "starfish/image_0043.jpg",
1552
+ "starfish/image_0018.jpg",
1553
+ "starfish/image_0084.jpg",
1554
+ "starfish/image_0055.jpg"
1555
+ ],
1556
+ "stegosaurus": [
1557
+ "stegosaurus/image_0022.jpg",
1558
+ "stegosaurus/image_0026.jpg",
1559
+ "stegosaurus/image_0016.jpg",
1560
+ "stegosaurus/image_0030.jpg",
1561
+ "stegosaurus/image_0014.jpg",
1562
+ "stegosaurus/image_0005.jpg",
1563
+ "stegosaurus/image_0019.jpg",
1564
+ "stegosaurus/image_0001.jpg",
1565
+ "stegosaurus/image_0051.jpg",
1566
+ "stegosaurus/image_0009.jpg",
1567
+ "stegosaurus/image_0055.jpg",
1568
+ "stegosaurus/image_0040.jpg",
1569
+ "stegosaurus/image_0008.jpg",
1570
+ "stegosaurus/image_0035.jpg",
1571
+ "stegosaurus/image_0033.jpg",
1572
+ "stegosaurus/image_0021.jpg"
1573
+ ],
1574
+ "stop_sign": [
1575
+ "stop_sign/image_0050.jpg",
1576
+ "stop_sign/image_0035.jpg",
1577
+ "stop_sign/image_0028.jpg",
1578
+ "stop_sign/image_0022.jpg",
1579
+ "stop_sign/image_0029.jpg",
1580
+ "stop_sign/image_0049.jpg",
1581
+ "stop_sign/image_0023.jpg",
1582
+ "stop_sign/image_0021.jpg",
1583
+ "stop_sign/image_0008.jpg",
1584
+ "stop_sign/image_0041.jpg",
1585
+ "stop_sign/image_0025.jpg",
1586
+ "stop_sign/image_0046.jpg",
1587
+ "stop_sign/image_0060.jpg",
1588
+ "stop_sign/image_0059.jpg",
1589
+ "stop_sign/image_0045.jpg",
1590
+ "stop_sign/image_0031.jpg"
1591
+ ],
1592
+ "strawberry": [
1593
+ "strawberry/image_0001.jpg",
1594
+ "strawberry/image_0020.jpg",
1595
+ "strawberry/image_0030.jpg",
1596
+ "strawberry/image_0011.jpg",
1597
+ "strawberry/image_0035.jpg",
1598
+ "strawberry/image_0003.jpg",
1599
+ "strawberry/image_0031.jpg",
1600
+ "strawberry/image_0009.jpg",
1601
+ "strawberry/image_0029.jpg",
1602
+ "strawberry/image_0025.jpg",
1603
+ "strawberry/image_0006.jpg",
1604
+ "strawberry/image_0033.jpg",
1605
+ "strawberry/image_0015.jpg",
1606
+ "strawberry/image_0026.jpg",
1607
+ "strawberry/image_0007.jpg",
1608
+ "strawberry/image_0024.jpg"
1609
+ ],
1610
+ "sunflower": [
1611
+ "sunflower/image_0055.jpg",
1612
+ "sunflower/image_0076.jpg",
1613
+ "sunflower/image_0052.jpg",
1614
+ "sunflower/image_0040.jpg",
1615
+ "sunflower/image_0058.jpg",
1616
+ "sunflower/image_0018.jpg",
1617
+ "sunflower/image_0004.jpg",
1618
+ "sunflower/image_0005.jpg",
1619
+ "sunflower/image_0015.jpg",
1620
+ "sunflower/image_0002.jpg",
1621
+ "sunflower/image_0068.jpg",
1622
+ "sunflower/image_0079.jpg",
1623
+ "sunflower/image_0026.jpg",
1624
+ "sunflower/image_0081.jpg",
1625
+ "sunflower/image_0029.jpg",
1626
+ "sunflower/image_0085.jpg"
1627
+ ],
1628
+ "tick": [
1629
+ "tick/image_0027.jpg",
1630
+ "tick/image_0042.jpg",
1631
+ "tick/image_0045.jpg",
1632
+ "tick/image_0006.jpg",
1633
+ "tick/image_0037.jpg",
1634
+ "tick/image_0046.jpg",
1635
+ "tick/image_0036.jpg",
1636
+ "tick/image_0023.jpg",
1637
+ "tick/image_0026.jpg",
1638
+ "tick/image_0012.jpg",
1639
+ "tick/image_0020.jpg",
1640
+ "tick/image_0004.jpg",
1641
+ "tick/image_0041.jpg",
1642
+ "tick/image_0011.jpg",
1643
+ "tick/image_0024.jpg",
1644
+ "tick/image_0031.jpg"
1645
+ ],
1646
+ "trilobite": [
1647
+ "trilobite/image_0048.jpg",
1648
+ "trilobite/image_0061.jpg",
1649
+ "trilobite/image_0039.jpg",
1650
+ "trilobite/image_0067.jpg",
1651
+ "trilobite/image_0076.jpg",
1652
+ "trilobite/image_0071.jpg",
1653
+ "trilobite/image_0058.jpg",
1654
+ "trilobite/image_0050.jpg",
1655
+ "trilobite/image_0060.jpg",
1656
+ "trilobite/image_0066.jpg",
1657
+ "trilobite/image_0083.jpg",
1658
+ "trilobite/image_0037.jpg",
1659
+ "trilobite/image_0035.jpg",
1660
+ "trilobite/image_0005.jpg",
1661
+ "trilobite/image_0002.jpg",
1662
+ "trilobite/image_0045.jpg"
1663
+ ],
1664
+ "umbrella": [
1665
+ "umbrella/image_0003.jpg",
1666
+ "umbrella/image_0052.jpg",
1667
+ "umbrella/image_0040.jpg",
1668
+ "umbrella/image_0063.jpg",
1669
+ "umbrella/image_0008.jpg",
1670
+ "umbrella/image_0016.jpg",
1671
+ "umbrella/image_0044.jpg",
1672
+ "umbrella/image_0020.jpg",
1673
+ "umbrella/image_0060.jpg",
1674
+ "umbrella/image_0002.jpg",
1675
+ "umbrella/image_0053.jpg",
1676
+ "umbrella/image_0055.jpg",
1677
+ "umbrella/image_0062.jpg",
1678
+ "umbrella/image_0043.jpg",
1679
+ "umbrella/image_0037.jpg",
1680
+ "umbrella/image_0038.jpg"
1681
+ ],
1682
+ "watch": [
1683
+ "watch/image_0079.jpg",
1684
+ "watch/image_0014.jpg",
1685
+ "watch/image_0175.jpg",
1686
+ "watch/image_0183.jpg",
1687
+ "watch/image_0239.jpg",
1688
+ "watch/image_0116.jpg",
1689
+ "watch/image_0129.jpg",
1690
+ "watch/image_0178.jpg",
1691
+ "watch/image_0083.jpg",
1692
+ "watch/image_0053.jpg",
1693
+ "watch/image_0073.jpg",
1694
+ "watch/image_0022.jpg",
1695
+ "watch/image_0147.jpg",
1696
+ "watch/image_0082.jpg",
1697
+ "watch/image_0169.jpg",
1698
+ "watch/image_0108.jpg"
1699
+ ],
1700
+ "water_lilly": [
1701
+ "water_lilly/image_0021.jpg",
1702
+ "water_lilly/image_0029.jpg",
1703
+ "water_lilly/image_0037.jpg",
1704
+ "water_lilly/image_0028.jpg",
1705
+ "water_lilly/image_0024.jpg",
1706
+ "water_lilly/image_0032.jpg",
1707
+ "water_lilly/image_0030.jpg",
1708
+ "water_lilly/image_0035.jpg",
1709
+ "water_lilly/image_0007.jpg",
1710
+ "water_lilly/image_0013.jpg",
1711
+ "water_lilly/image_0019.jpg",
1712
+ "water_lilly/image_0020.jpg",
1713
+ "water_lilly/image_0011.jpg",
1714
+ "water_lilly/image_0009.jpg",
1715
+ "water_lilly/image_0010.jpg",
1716
+ "water_lilly/image_0015.jpg"
1717
+ ],
1718
+ "wheelchair": [
1719
+ "wheelchair/image_0054.jpg",
1720
+ "wheelchair/image_0028.jpg",
1721
+ "wheelchair/image_0058.jpg",
1722
+ "wheelchair/image_0032.jpg",
1723
+ "wheelchair/image_0025.jpg",
1724
+ "wheelchair/image_0046.jpg",
1725
+ "wheelchair/image_0027.jpg",
1726
+ "wheelchair/image_0018.jpg",
1727
+ "wheelchair/image_0004.jpg",
1728
+ "wheelchair/image_0009.jpg",
1729
+ "wheelchair/image_0055.jpg",
1730
+ "wheelchair/image_0011.jpg",
1731
+ "wheelchair/image_0038.jpg",
1732
+ "wheelchair/image_0019.jpg",
1733
+ "wheelchair/image_0043.jpg",
1734
+ "wheelchair/image_0045.jpg"
1735
+ ],
1736
+ "wild_cat": [
1737
+ "wild_cat/image_0009.jpg",
1738
+ "wild_cat/image_0015.jpg",
1739
+ "wild_cat/image_0031.jpg",
1740
+ "wild_cat/image_0028.jpg",
1741
+ "wild_cat/image_0017.jpg",
1742
+ "wild_cat/image_0025.jpg",
1743
+ "wild_cat/image_0007.jpg",
1744
+ "wild_cat/image_0024.jpg",
1745
+ "wild_cat/image_0006.jpg",
1746
+ "wild_cat/image_0003.jpg",
1747
+ "wild_cat/image_0005.jpg",
1748
+ "wild_cat/image_0032.jpg",
1749
+ "wild_cat/image_0022.jpg",
1750
+ "wild_cat/image_0020.jpg",
1751
+ "wild_cat/image_0033.jpg",
1752
+ "wild_cat/image_0011.jpg"
1753
+ ],
1754
+ "windsor_chair": [
1755
+ "windsor_chair/image_0035.jpg",
1756
+ "windsor_chair/image_0003.jpg",
1757
+ "windsor_chair/image_0042.jpg",
1758
+ "windsor_chair/image_0008.jpg",
1759
+ "windsor_chair/image_0030.jpg",
1760
+ "windsor_chair/image_0051.jpg",
1761
+ "windsor_chair/image_0046.jpg",
1762
+ "windsor_chair/image_0019.jpg",
1763
+ "windsor_chair/image_0047.jpg",
1764
+ "windsor_chair/image_0017.jpg",
1765
+ "windsor_chair/image_0031.jpg",
1766
+ "windsor_chair/image_0025.jpg",
1767
+ "windsor_chair/image_0041.jpg",
1768
+ "windsor_chair/image_0034.jpg",
1769
+ "windsor_chair/image_0013.jpg",
1770
+ "windsor_chair/image_0028.jpg"
1771
+ ],
1772
+ "wrench": [
1773
+ "wrench/image_0015.jpg",
1774
+ "wrench/image_0026.jpg",
1775
+ "wrench/image_0001.jpg",
1776
+ "wrench/image_0012.jpg",
1777
+ "wrench/image_0022.jpg",
1778
+ "wrench/image_0019.jpg",
1779
+ "wrench/image_0033.jpg",
1780
+ "wrench/image_0021.jpg",
1781
+ "wrench/image_0010.jpg",
1782
+ "wrench/image_0024.jpg",
1783
+ "wrench/image_0036.jpg",
1784
+ "wrench/image_0013.jpg",
1785
+ "wrench/image_0032.jpg",
1786
+ "wrench/image_0025.jpg",
1787
+ "wrench/image_0020.jpg",
1788
+ "wrench/image_0004.jpg"
1789
+ ],
1790
+ "yin_yang": [
1791
+ "yin_yang/image_0048.jpg",
1792
+ "yin_yang/image_0011.jpg",
1793
+ "yin_yang/image_0034.jpg",
1794
+ "yin_yang/image_0014.jpg",
1795
+ "yin_yang/image_0037.jpg",
1796
+ "yin_yang/image_0020.jpg",
1797
+ "yin_yang/image_0055.jpg",
1798
+ "yin_yang/image_0056.jpg",
1799
+ "yin_yang/image_0018.jpg",
1800
+ "yin_yang/image_0015.jpg",
1801
+ "yin_yang/image_0047.jpg",
1802
+ "yin_yang/image_0050.jpg",
1803
+ "yin_yang/image_0036.jpg",
1804
+ "yin_yang/image_0045.jpg",
1805
+ "yin_yang/image_0002.jpg",
1806
+ "yin_yang/image_0027.jpg"
1807
+ ]
1808
+ }
1809
+ }
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/real_dataset_manifest.json ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "all_split_paths_exist": true,
3
+ "archive_bytes": 137414764,
4
+ "archive_filename": "caltech-101.zip",
5
+ "archive_md5": "3138e1922a9193bfa496528edbbc45d0",
6
+ "archive_sha256": "331234750fc7f77520e50d9565e8b6907b03565e30320da1401130db08c61f91",
7
+ "background_google_policy": "Excluded by torchvision and official DISEF CoOp split",
8
+ "benchmark_classes": 100,
9
+ "benchmark_images": 8242,
10
+ "class_mapping_sha256": "9df5579e425cf3efed9d4bc42d41e7d8557155d9b75c28276fc1e0c2664c954a",
11
+ "corrupt_images": [],
12
+ "faces_easy_policy": "Excluded by SPC/DISEF 100-class split",
13
+ "images_per_class": {
14
+ "BACKGROUND_Google": 467,
15
+ "Faces": 435,
16
+ "Faces_easy": 435,
17
+ "Leopards": 200,
18
+ "Motorbikes": 798,
19
+ "accordion": 55,
20
+ "airplanes": 800,
21
+ "anchor": 42,
22
+ "ant": 42,
23
+ "barrel": 47,
24
+ "bass": 54,
25
+ "beaver": 46,
26
+ "binocular": 33,
27
+ "bonsai": 128,
28
+ "brain": 98,
29
+ "brontosaurus": 43,
30
+ "buddha": 85,
31
+ "butterfly": 91,
32
+ "camera": 50,
33
+ "cannon": 43,
34
+ "car_side": 123,
35
+ "ceiling_fan": 47,
36
+ "cellphone": 59,
37
+ "chair": 62,
38
+ "chandelier": 107,
39
+ "cougar_body": 47,
40
+ "cougar_face": 69,
41
+ "crab": 73,
42
+ "crayfish": 70,
43
+ "crocodile": 50,
44
+ "crocodile_head": 51,
45
+ "cup": 57,
46
+ "dalmatian": 67,
47
+ "dollar_bill": 52,
48
+ "dolphin": 65,
49
+ "dragonfly": 68,
50
+ "electric_guitar": 75,
51
+ "elephant": 64,
52
+ "emu": 53,
53
+ "euphonium": 64,
54
+ "ewer": 85,
55
+ "ferry": 67,
56
+ "flamingo": 67,
57
+ "flamingo_head": 45,
58
+ "garfield": 34,
59
+ "gerenuk": 34,
60
+ "gramophone": 51,
61
+ "grand_piano": 99,
62
+ "hawksbill": 100,
63
+ "headphone": 42,
64
+ "hedgehog": 54,
65
+ "helicopter": 88,
66
+ "ibis": 80,
67
+ "inline_skate": 31,
68
+ "joshua_tree": 64,
69
+ "kangaroo": 86,
70
+ "ketch": 114,
71
+ "lamp": 61,
72
+ "laptop": 81,
73
+ "llama": 78,
74
+ "lobster": 41,
75
+ "lotus": 66,
76
+ "mandolin": 43,
77
+ "mayfly": 40,
78
+ "menorah": 87,
79
+ "metronome": 32,
80
+ "minaret": 76,
81
+ "nautilus": 55,
82
+ "octopus": 35,
83
+ "okapi": 39,
84
+ "pagoda": 47,
85
+ "panda": 38,
86
+ "pigeon": 45,
87
+ "pizza": 53,
88
+ "platypus": 34,
89
+ "pyramid": 57,
90
+ "revolver": 82,
91
+ "rhino": 59,
92
+ "rooster": 49,
93
+ "saxophone": 40,
94
+ "schooner": 63,
95
+ "scissors": 39,
96
+ "scorpion": 84,
97
+ "sea_horse": 57,
98
+ "snoopy": 35,
99
+ "soccer_ball": 64,
100
+ "stapler": 45,
101
+ "starfish": 86,
102
+ "stegosaurus": 59,
103
+ "stop_sign": 64,
104
+ "strawberry": 35,
105
+ "sunflower": 85,
106
+ "tick": 49,
107
+ "trilobite": 86,
108
+ "umbrella": 75,
109
+ "watch": 239,
110
+ "water_lilly": 37,
111
+ "wheelchair": 59,
112
+ "wild_cat": 34,
113
+ "windsor_chair": 56,
114
+ "wrench": 39,
115
+ "yin_yang": 60
116
+ },
117
+ "source_folders": 102,
118
+ "source_images": 9144,
119
+ "source_url": "https://data.caltech.edu/records/mzrjq-6wc02",
120
+ "split_counts": {
121
+ "test": 2465,
122
+ "train": 4128,
123
+ "val": 1649
124
+ },
125
+ "split_disjoint": true,
126
+ "split_sha256": "8d52725a2e4273ffbc03a1f6d923e5c01baf1595f9572b4f14f63046ada21110"
127
+ }
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/split_coop_Caltech101.csv ADDED
The diff for this file is too large to render. See raw diff
 
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/split_metadata.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "background_google_included": false,
3
+ "faces_easy_included": false,
4
+ "fewshot_train": 1600,
5
+ "split_sha256": "8d52725a2e4273ffbc03a1f6d923e5c01baf1595f9572b4f14f63046ada21110",
6
+ "support_selection_sha256": "2485b4a8b73946ebe11201185e99793660870dca862c05c73df902a1ca6f3942",
7
+ "support_subset_of_train": true,
8
+ "test": 2465,
9
+ "train_total": 4128,
10
+ "train_val_test_disjoint": true,
11
+ "validation": 1649
12
+ }
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/manifests/synthetic_manifest.json ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archive_bytes": 354796529,
3
+ "archive_filename": "caltech101_disef_images.zip",
4
+ "archive_sha256": "d8647f2d96bad27d5da67a6703ed49d861d90da22c3d49b31f78e53734fd0674",
5
+ "class_mapping_sha256": "9df5579e425cf3efed9d4bc42d41e7d8557155d9b75c28276fc1e0c2664c954a",
6
+ "classes": 100,
7
+ "corrupt_images": [],
8
+ "format": "JPEG",
9
+ "images": 6400,
10
+ "images_per_class": {
11
+ "accordion": 64,
12
+ "airplane": 64,
13
+ "anchor": 64,
14
+ "ant": 64,
15
+ "barrel": 64,
16
+ "bass": 64,
17
+ "beaver": 64,
18
+ "binocular": 64,
19
+ "bonsai": 64,
20
+ "brain": 64,
21
+ "brontosaurus": 64,
22
+ "buddha": 64,
23
+ "butterfly": 64,
24
+ "camera": 64,
25
+ "cannon": 64,
26
+ "car_side": 64,
27
+ "ceiling_fan": 64,
28
+ "cellphone": 64,
29
+ "chair": 64,
30
+ "chandelier": 64,
31
+ "cougar_body": 64,
32
+ "cougar_face": 64,
33
+ "crab": 64,
34
+ "crayfish": 64,
35
+ "crocodile": 64,
36
+ "crocodile_head": 64,
37
+ "cup": 64,
38
+ "dalmatian": 64,
39
+ "dollar_bill": 64,
40
+ "dolphin": 64,
41
+ "dragonfly": 64,
42
+ "electric_guitar": 64,
43
+ "elephant": 64,
44
+ "emu": 64,
45
+ "euphonium": 64,
46
+ "ewer": 64,
47
+ "face": 64,
48
+ "ferry": 64,
49
+ "flamingo": 64,
50
+ "flamingo_head": 64,
51
+ "garfield": 64,
52
+ "gerenuk": 64,
53
+ "gramophone": 64,
54
+ "grand_piano": 64,
55
+ "hawksbill": 64,
56
+ "headphone": 64,
57
+ "hedgehog": 64,
58
+ "helicopter": 64,
59
+ "ibis": 64,
60
+ "inline_skate": 64,
61
+ "joshua_tree": 64,
62
+ "kangaroo": 64,
63
+ "ketch": 64,
64
+ "lamp": 64,
65
+ "laptop": 64,
66
+ "leopard": 64,
67
+ "llama": 64,
68
+ "lobster": 64,
69
+ "lotus": 64,
70
+ "mandolin": 64,
71
+ "mayfly": 64,
72
+ "menorah": 64,
73
+ "metronome": 64,
74
+ "minaret": 64,
75
+ "motorbike": 64,
76
+ "nautilus": 64,
77
+ "octopus": 64,
78
+ "okapi": 64,
79
+ "pagoda": 64,
80
+ "panda": 64,
81
+ "pigeon": 64,
82
+ "pizza": 64,
83
+ "platypus": 64,
84
+ "pyramid": 64,
85
+ "revolver": 64,
86
+ "rhino": 64,
87
+ "rooster": 64,
88
+ "saxophone": 64,
89
+ "schooner": 64,
90
+ "scissors": 64,
91
+ "scorpion": 64,
92
+ "sea_horse": 64,
93
+ "snoopy": 64,
94
+ "soccer_ball": 64,
95
+ "stapler": 64,
96
+ "starfish": 64,
97
+ "stegosaurus": 64,
98
+ "stop_sign": 64,
99
+ "strawberry": 64,
100
+ "sunflower": 64,
101
+ "tick": 64,
102
+ "trilobite": 64,
103
+ "umbrella": 64,
104
+ "watch": 64,
105
+ "water_lilly": 64,
106
+ "wheelchair": 64,
107
+ "wild_cat": 64,
108
+ "windsor_chair": 64,
109
+ "wrench": 64,
110
+ "yin_yang": 64
111
+ },
112
+ "resolution": [
113
+ 512,
114
+ 512
115
+ ],
116
+ "support_selection_sha256": "2485b4a8b73946ebe11201185e99793660870dca862c05c73df902a1ca6f3942",
117
+ "unexpected_files": [],
118
+ "wrong_support_sources": []
119
+ }
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/results/smoke_test.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "changed_lora_tensors": 210,
3
+ "checkpoint_reload": true,
4
+ "gpu": "NVIDIA RTX PRO 6000 Blackwell Server Edition",
5
+ "gpu_peak_allocated_gb": 14.23,
6
+ "nonzero_text_grads": 56,
7
+ "nonzero_vision_grads": 49,
8
+ "status": "PASS",
9
+ "train_loss": 0.961718738079071,
10
+ "trainable_parameters": {
11
+ "groups": {
12
+ "text": 3211264,
13
+ "vision": 2400256
14
+ },
15
+ "percent": 0.26306340212025264,
16
+ "total": 2133143552,
17
+ "trainable": 5611520
18
+ },
19
+ "val_accuracy_one_sample": 1.0,
20
+ "val_loss": 1.740625023841858
21
+ }
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/disef_spc_runner.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Dataset-parameterized adapter for SPC DisEF: preserves the SPC loss/model loop and adds paths + durable resume."""
3
+ from __future__ import annotations
4
+ import argparse, csv, hashlib, json, os, random, sys, time, math, shutil, subprocess, gc
5
+ from datetime import datetime, timezone
6
+ from itertools import cycle
7
+ from pathlib import Path
8
+ import numpy as np
9
+ import torch
10
+ from PIL import Image
11
+ from torch.utils.data import DataLoader, Dataset, Subset
12
+ from torch.utils.tensorboard import SummaryWriter
13
+ from huggingface_hub import HfApi, CommitOperationAdd, hf_hub_download
14
+
15
+ HERE = Path(__file__).resolve().parent
16
+ REPO = HERE.parent
17
+ sys.path.insert(0, str(REPO))
18
+ # The local overlay is an isolated copy with the Qwen embedder's documented
19
+ # no_grad decorator removed, as required by SPC's root README for training.
20
+ sys.path.insert(0, str(REPO / 'Qwen3_VL_Embedding'))
21
+ os.chdir(REPO)
22
+
23
+ def _spc_symbols():
24
+ src = (HERE / 'main_disef.py').read_text()
25
+ marker = '###############################################################'
26
+ prefix = src[:src.index(marker)]
27
+ ns = {'__file__': str(HERE / 'main_disef.py'), '__name__': '_spc_library'}
28
+ exec(compile(prefix, str(HERE / 'main_disef.py'), 'exec'), ns)
29
+ return ns
30
+
31
+ SPC = _spc_symbols()
32
+ SUBSET_NAMES = SPC['SUBSET_NAMES']
33
+ Qwen3VLEmbedder = SPC['Qwen3VLEmbedder']
34
+ LoraConfig = SPC['LoraConfig']; get_peft_model = SPC['get_peft_model']
35
+ from peft import get_peft_model_state_dict, set_peft_model_state_dict
36
+ train_one_epoch_update = SPC['train_one_epoch_update']; get_val_losses = SPC['get_val_losses']
37
+ get_acc = SPC['get_acc']; get_mu_and_kappa = SPC['get_mu_and_kappa']; fix_random_seed = SPC['fix_random_seed']
38
+ raw_image_collate_fn = __import__('data_train').raw_image_collate_fn
39
+
40
+ def utcnow(): return datetime.now(timezone.utc).isoformat()
41
+ def sha256_file(path: Path):
42
+ h=hashlib.sha256()
43
+ with path.open('rb') as f:
44
+ for b in iter(lambda:f.read(8<<20), b''): h.update(b)
45
+ return h.hexdigest()
46
+ def atomic_json(path: Path, value):
47
+ path.parent.mkdir(parents=True, exist_ok=True); tmp=path.with_suffix(path.suffix+'.tmp')
48
+ tmp.write_text(json.dumps(value, indent=2, sort_keys=True)); os.replace(tmp,path)
49
+ def append_jsonl(path: Path, value):
50
+ path.parent.mkdir(parents=True, exist_ok=True)
51
+ with path.open('a') as f: f.write(json.dumps(value,sort_keys=True)+'\n')
52
+ def atomic_torch(path: Path, value):
53
+ path.parent.mkdir(parents=True, exist_ok=True); tmp=path.with_suffix(path.suffix+f'.tmp.{os.getpid()}')
54
+ with tmp.open('wb') as f: torch.save(value,f); f.flush(); os.fsync(f.fileno())
55
+ os.replace(tmp,path)
56
+ def rng_state():
57
+ return {'python':random.getstate(),'numpy':np.random.get_state(),'torch':torch.get_rng_state(),'cuda':torch.cuda.get_rng_state_all() if torch.cuda.is_available() else None}
58
+ def restore_rng(s):
59
+ random.setstate(s['python']); np.random.set_state(s['numpy']); torch.set_rng_state(s['torch'])
60
+ if s.get('cuda') is not None: torch.cuda.set_rng_state_all(s['cuda'])
61
+
62
+ class FewshotCSVDataset(Dataset):
63
+ def __init__(self, image_dir: Path, entries, class_mapping, layout='class_subdirectories'):
64
+ self.items=[]
65
+ labels={m['real_folder']:m['spc_index'] for m in class_mapping}
66
+ for rel in entries:
67
+ rel=Path(rel)
68
+ if rel.parent.name not in labels: raise ValueError(f'Unknown real class {rel}')
69
+ p=image_dir/(rel if layout=='class_subdirectories' else rel.name)
70
+ if not p.is_file(): raise FileNotFoundError(p)
71
+ self.items.append((p,labels[rel.parent.name]))
72
+ def __len__(self): return len(self.items)
73
+ def __getitem__(self,i):
74
+ p,y=self.items[i]
75
+ with Image.open(p) as im: return im.convert('RGB'),y
76
+
77
+ def load_split(cfg, split):
78
+ with Path(cfg['split_csv']).open() as f: rows=list(csv.DictReader(f))
79
+ return [r['filename'] for r in rows if r['split']==split]
80
+ def load_support(cfg):
81
+ s=json.loads(Path(cfg['support_manifest']).read_text())
82
+ if s['selection_sha256']!=cfg['support_selection_sha256'] or s['shot']!=cfg['shot'] or s['split_seed']!=cfg['split_seed']:
83
+ raise RuntimeError('Generation support fingerprint mismatch')
84
+ entries=[]
85
+ for _,items in s['support_relative_paths_by_class'].items(): entries.extend(items)
86
+ if len(entries)!=cfg['class_count']*cfg['shot']:raise RuntimeError(f'Expected {cfg["class_count"]*cfg["shot"]} supports, found {len(entries)}')
87
+ return entries
88
+
89
+ def make_loaders(cfg):
90
+ classes=SUBSET_NAMES[cfg['dataset']];assert len(classes)==cfg['class_count']
91
+ mapping=json.loads(Path(cfg['class_mapping']).read_text())
92
+ assert len(mapping)==len(classes) and all(x['spc_index']==i and x['spc_class_name']==classes[i] for i,x in enumerate(mapping))
93
+ image_dir=Path(cfg['real_images_dir']);support=load_support(cfg);val=load_split(cfg,'val');test=load_split(cfg,'test')
94
+ assert len(support)==cfg['class_count']*cfg['shot'] and len(val)==cfg['validation_size'] and len(test)==cfg['test_size']
95
+ assert set(support).isdisjoint(val) and set(support).isdisjoint(test) and set(val).isdisjoint(test)
96
+ train=FewshotCSVDataset(image_dir,support,mapping,cfg.get('real_path_layout','class_subdirectories'))
97
+ vald=FewshotCSVDataset(image_dir,val,mapping,cfg.get('real_path_layout','class_subdirectories'))
98
+ testd=FewshotCSVDataset(image_dir,test,mapping,cfg.get('real_path_layout','class_subdirectories'))
99
+ synth=[];synth_root=Path(cfg['synthetic_dir'])
100
+ for item in mapping:
101
+ files=sorted((synth_root/item['synthetic_folder']).glob('*.jpg'))
102
+ assert len(files)==cfg['synthetic_per_class'],(item['synthetic_folder'],len(files))
103
+ synth.extend((p,item['spc_index']) for p in files)
104
+ perm=np.random.default_rng(cfg['seed']).permutation(len(synth));synth=[synth[i] for i in perm]
105
+ class Synth(Dataset):
106
+ def __len__(self):return len(synth)
107
+ def __getitem__(self,i):
108
+ p,y=synth[i]
109
+ with Image.open(p) as im:return im.convert('RGB'),y
110
+ kw={'num_workers':cfg['num_workers'],'pin_memory':True,'collate_fn':raw_image_collate_fn}
111
+ if cfg['num_workers']:kw['persistent_workers']=True;kw['prefetch_factor']=2
112
+ synth_loader=DataLoader(Synth(),batch_size=cfg['batch_size'],shuffle=False,**kw)
113
+ val_loader=DataLoader(vald,batch_size=cfg['eval_batch_size'],shuffle=False,**kw)
114
+ test_loader=DataLoader(testd,batch_size=cfg['eval_batch_size'],shuffle=False,**kw)
115
+ return train,synth_loader,val_loader,test_loader
116
+
117
+ class CaptureWriter:
118
+ def __init__(self,path):self.tb=SummaryWriter(log_dir=str(path));self.train=[];self.val=[]
119
+ def add_scalar(self,tag,value,step):
120
+ self.tb.add_scalar(tag,value,step)
121
+ if tag=='Training Loss/Total':self.train.append(float(value))
122
+ if tag=='Validation Loss/Total':self.val.append(float(value))
123
+ def close(self):self.tb.close()
124
+
125
+ def signature(cfg):return hashlib.sha256(json.dumps(cfg,sort_keys=True,separators=(',',':')).encode()).hexdigest()
126
+
127
+ def model_setup(cfg):
128
+ model=Qwen3VLEmbedder(model_name_or_path=cfg['model_local_path'])
129
+ l=cfg['lora'];lc=LoraConfig(r=l['r'],lora_alpha=l['alpha'],target_modules=l['target_modules'],lora_dropout=l['dropout'],bias=l['bias'],task_type=l['task_type'])
130
+ model.model=get_peft_model(model.model,lc);model.model.gradient_checkpointing_enable()
131
+ trainable=[(n,p) for n,p in model.model.named_parameters() if p.requires_grad]
132
+ total=sum(p.numel() for p in model.model.parameters());ntrain=sum(p.numel() for _,p in trainable)
133
+ assert trainable and all('lora_' in n for n,_ in trainable)
134
+ groups={'vision':sum(p.numel() for n,p in trainable if 'visual' in n),'text':sum(p.numel() for n,p in trainable if 'language_model' in n)}
135
+ assert groups['vision']>0 and groups['text']>0,groups
136
+ opt=torch.optim.AdamW([p for _,p in trainable],lr=cfg['optimizer']['lr'],weight_decay=cfg['optimizer']['weight_decay'])
137
+ scaler=torch.amp.GradScaler('cuda',init_scale=128.0)
138
+ return model,opt,scaler,{'trainable':ntrain,'total':total,'percent':100*ntrain/total,'groups':groups}
139
+
140
+ def current_metrics(root):
141
+ p=root/'logs/metrics.jsonl'
142
+ if not p.exists():return []
143
+ return [json.loads(x) for x in p.read_text().splitlines() if x.strip()]
144
+
145
+ def plot_metrics(root):
146
+ rows=current_metrics(root)
147
+ if not rows:return
148
+ import matplotlib;matplotlib.use('Agg')
149
+ import matplotlib.pyplot as plt
150
+ x=[r['epoch'] for r in rows]
151
+ for key,title,path in [('train_loss','Train loss','train_loss.png'),('val_loss','Validation loss','val_loss.png'),('val_accuracy','Validation accuracy','val_accuracy.png'),('learning_rate','Learning rate','learning_rate.png')]:
152
+ fig,ax=plt.subplots(figsize=(7,3.5));ax.plot(x,[r.get(key,float('nan')) for r in rows],marker='o',markersize=3);ax.set(xlabel='Epoch',ylabel=title,title=title);ax.grid(alpha=.25);fig.tight_layout();fig.savefig(root/'figures'/path,dpi=140);plt.close(fig)
153
+
154
+ def gpu_state():
155
+ try:
156
+ s=subprocess.check_output(['nvidia-smi','--query-gpu=utilization.gpu,memory.used,memory.total','--format=csv,noheader,nounits'],text=True,timeout=5).strip().split(',')
157
+ return {'utilization_percent':int(s[0]),'memory_used_mib':int(s[1]),'memory_total_mib':int(s[2])}
158
+ except Exception:return {}
159
+
160
+ def upload_changed(root,cfg,items,commit_message):
161
+ token=os.environ.get('HF_TOKEN')
162
+ if not token:return False
163
+ repo=cfg['hf_repo'];base=f'{cfg["hf_run_prefix"]}/{cfg["run_id"]}'
164
+ state_path=root/'logs/upload_state.json';seen=json.loads(state_path.read_text()) if state_path.exists() else {}
165
+ ops=[];new={}
166
+ for local,rel in items:
167
+ if not local.exists():continue
168
+ h=sha256_file(local);remote=f'{base}/{rel}'
169
+ if seen.get(remote)!=h:ops.append(CommitOperationAdd(path_in_repo=remote,path_or_fileobj=str(local)));new[remote]=h
170
+ if not ops:return True
171
+ try:
172
+ HfApi(token=token).create_commit(repo_id=repo,repo_type='dataset',operations=ops,commit_message=commit_message)
173
+ seen.update(new);atomic_json(state_path,seen);return True
174
+ except Exception as e:
175
+ with (root/'logs/hf_sync_errors.log').open('a') as f:f.write(f'{utcnow()} {type(e).__name__}: {e}\n')
176
+ return False
177
+
178
+ def bootstrap_items(root):
179
+ items=[]
180
+ for d in ['config','source','manifests']:
181
+ for p in (root/d).rglob('*'):
182
+ if p.is_file() and 'fewshot_upload' not in p.parts and p.stat().st_size<15_000_000:items.append((p,str(p.relative_to(root))))
183
+ return items
184
+
185
+ def restore_checkpoints(root,cfg):
186
+ if (root/'checkpoints/current.pt').exists():return
187
+ token=os.environ.get('HF_TOKEN')
188
+ if not token:return
189
+ api=HfApi(token=token);repo=cfg['hf_repo'];base=f'{cfg["hf_run_prefix"]}/{cfg["run_id"]}'
190
+ try:files=set(api.list_repo_files(repo,repo_type='dataset'))
191
+ except Exception:return
192
+ for rel in ['checkpoints/current.pt','checkpoints/best.pt']:
193
+ remote=f'{base}/{rel}'
194
+ if remote in files:
195
+ src=Path(hf_hub_download(repo,remote,repo_type='dataset',token=token))
196
+ dst=root/rel;dst.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(src,dst)
197
+
198
+ def status(root,**kw):atomic_json(root/'logs/status.json',{'run_id':root.name,'updated_at':utcnow(),**kw})
199
+
200
+ def one_epoch(model,opt,scaler,writer,cfg,train_loader,synth_iter,val_loader,step,epoch):
201
+ l=cfg['loss'];writer.train=[];writer.val=[]
202
+ step=train_one_epoch_update(model,opt,scaler,step,train_loader,l['lambda0'],l['lambda1'],l['lambda2'],l['lambda3'],l['use_l0'],l['use_l1'],l['use_l2'],l['use_l3'],writer,'cuda',synth_iter,cfg['dataset'],cfg['logit_scale'],l['num_samples'])
203
+ model.model.eval()
204
+ with torch.no_grad():
205
+ acc=get_val_losses(model,opt,scaler,epoch,val_loader,l['lambda0'],l['lambda1'],l['lambda2'],l['lambda3'],l['use_l0'],l['use_l1'],l['use_l2'],l['use_l3'],writer,'cuda',synth_iter,cfg['dataset'],cfg['logit_scale'],l['num_samples'])
206
+ return step,float(np.mean(writer.train)),float(np.mean(writer.val)),float(acc)
207
+
208
+ def smoke(root,cfg):
209
+ status(root,stage='SMOKE_TEST')
210
+ fix_random_seed(cfg['seed']);train,synth_loader,val_loader,_=make_loaders(cfg)
211
+ model,opt,scaler,counts=model_setup(cfg)
212
+ writer=CaptureWriter(root/'logs/smoke_tensorboard')
213
+ kw={'num_workers':0,'collate_fn':raw_image_collate_fn}
214
+ real_one=DataLoader(Subset(train,[0]),batch_size=1,**kw)
215
+ syn_one=DataLoader(Subset(synth_loader.dataset,[0]),batch_size=1,**kw)
216
+ val_one=DataLoader(Subset(val_loader.dataset,[0]),batch_size=1,**kw)
217
+ before={n:p.detach().cpu().clone() for n,p in model.model.named_parameters() if p.requires_grad}
218
+ step,tl,vl,acc=one_epoch(model,opt,scaler,writer,cfg,real_one,cycle(syn_one),val_one,0,0)
219
+ changed=sum(int(not torch.equal(before[n],p.detach().cpu())) for n,p in model.model.named_parameters() if p.requires_grad)
220
+ grad_vision=sum(int(p.grad is not None and torch.isfinite(p.grad).all() and p.grad.abs().sum()>0) for n,p in model.model.named_parameters() if p.requires_grad and 'visual' in n)
221
+ grad_text=sum(int(p.grad is not None and torch.isfinite(p.grad).all() and p.grad.abs().sum()>0) for n,p in model.model.named_parameters() if p.requires_grad and 'language_model' in n)
222
+ diag={'changed':changed,'grad_vision_finite_nonzero':grad_vision,'grad_text_finite_nonzero':grad_text,'grad_any':sum(p.grad is not None for n,p in model.model.named_parameters() if p.requires_grad),'grad_nonfinite':sum(p.grad is not None and not bool(torch.isfinite(p.grad).all()) for n,p in model.model.named_parameters() if p.requires_grad),'scaler_scale':scaler.get_scale(),'loss':tl,'counts':counts};print('SMOKE_GRAD_DIAG',json.dumps(diag),flush=True)
223
+ assert changed>0 and grad_vision>0 and grad_text>0 and np.isfinite(tl) and np.isfinite(vl),(changed,grad_vision,grad_text,tl,vl)
224
+ tmp=root/'checkpoints/smoke.pt';atomic_torch(tmp,{'adapter_state_dict':get_peft_model_state_dict(model.model),'optimizer_state_dict':opt.state_dict(),'scaler_state_dict':scaler.state_dict(),'config_fingerprint':signature(cfg)})
225
+ x=torch.load(tmp,map_location='cpu',weights_only=False);assert x['config_fingerprint']==signature(cfg);set_peft_model_state_dict(model.model,x['adapter_state_dict']);tmp.unlink();writer.close()
226
+ result={'status':'PASS','gpu':torch.cuda.get_device_name(0),'gpu_peak_allocated_gb':round(torch.cuda.max_memory_allocated()/1e9,2),'trainable_parameters':counts,'changed_lora_tensors':changed,'nonzero_vision_grads':grad_vision,'nonzero_text_grads':grad_text,'train_loss':tl,'val_loss':vl,'val_accuracy_one_sample':acc,'checkpoint_reload':True}
227
+ atomic_json(root/'results/smoke_test.json',result);status(root,stage='SMOKE_PASSED',**result)
228
+ print(json.dumps(result),flush=True)
229
+
230
+ def evaluate_best(root,cfg):
231
+ x=torch.load(root/'checkpoints/best.pt',map_location='cpu',weights_only=False)
232
+ assert x['config_fingerprint']==signature(cfg)
233
+ _,_,_,test_loader=make_loaders(cfg)
234
+ model,_,_,_=model_setup(cfg);set_peft_model_state_dict(model.model,x['adapter_state_dict']);model.model.eval()
235
+ with torch.no_grad():
236
+ mu,_=get_mu_and_kappa(model,cfg['dataset']);mu=mu.to('cuda');cm=np.zeros((cfg['class_count'],cfg['class_count']),dtype=np.int64)
237
+ for images,labels in test_loader:
238
+ emb=SPC['get_image_embedding'](model,images);pred=(cfg['logit_scale']*(emb@mu.T)).argmax(dim=1).cpu().numpy()
239
+ for y,p in zip(labels.numpy(),pred):cm[int(y),int(p)]+=1
240
+ total=int(cm.sum());correct=int(np.trace(cm));assert total==cfg['test_size']
241
+ result={'run_id':cfg['run_id'],'test_accuracy':correct/total,'test_correct':correct,'test_total':total,'best_epoch':x['epoch'],'best_val_accuracy':x['best_val_accuracy'],'confusion_matrix':cm.tolist(),'per_class_accuracy':{SUBSET_NAMES[cfg['dataset']][i]:float(cm[i,i]/cm[i].sum()) for i in range(cfg['class_count'])},'evaluated_at':utcnow()}
242
+ atomic_json(root/'results/final_test.json',result);atomic_json(root/'results/summary.json',{k:v for k,v in result.items() if k not in ['confusion_matrix','per_class_accuracy']})
243
+ import matplotlib;matplotlib.use('Agg');import matplotlib.pyplot as plt
244
+ fig,ax=plt.subplots(figsize=(10,9));ax.imshow(cm,cmap='Blues');ax.set(xlabel='Predicted class',ylabel='True class',title=f"{cfg['dataset']} test confusion matrix");fig.tight_layout();fig.savefig(root/'figures/test_confusion_matrix.png',dpi=140);plt.close(fig)
245
+ return result
246
+
247
+ def run(root,cfg):
248
+ restore_checkpoints(root,cfg)
249
+ fix_random_seed(cfg['seed']);train,synth_loader,val_loader,_=make_loaders(cfg)
250
+ model,opt,scaler,counts=model_setup(cfg);fp=signature(cfg)
251
+ epoch0=0;step=0;best_acc=-1.0;best_epoch=0;prior_elapsed=0.0
252
+ current=root/'checkpoints/current.pt';best=root/'checkpoints/best.pt'
253
+ if current.exists():
254
+ x=torch.load(current,map_location='cpu',weights_only=False)
255
+ assert x['config_fingerprint']==fp and x['run_id']==cfg['run_id'] and x['support_selection_sha256']==cfg['support_selection_sha256']
256
+ set_peft_model_state_dict(model.model,x['adapter_state_dict']);opt.load_state_dict(x['optimizer_state_dict']);scaler.load_state_dict(x['scaler_state_dict'])
257
+ epoch0=x['epoch'];step=x['global_step'];best_acc=x['best_val_accuracy'];best_epoch=x['best_epoch'];prior_elapsed=x.get('elapsed_seconds',0.0);restore_rng(x['rng_state'])
258
+ if epoch0>=cfg['epochs']:
259
+ if not (root/'results/final_test.json').exists():evaluate_best(root,cfg)
260
+ plot_metrics(root)
261
+ result=json.loads((root/'results/final_test.json').read_text())
262
+ status(root,stage='COMPLETED',epoch=epoch0,global_step=step,best_val_accuracy=best_acc,best_epoch=best_epoch,test_accuracy=result['test_accuracy'])
263
+ files=[(p,str(p.relative_to(root))) for d in ['config','source','manifests','figures','results','logs'] for p in (root/d).rglob('*') if p.is_file() and 'fewshot_upload' not in p.parts and 'tensorboard' not in p.parts and p.stat().st_size<15_000_000]
264
+ files += [(current,'checkpoints/current.pt'),(best,'checkpoints/best.pt'),(root/'resume_state.json','resume_state.json')]
265
+ upload_changed(root,cfg,files,f"Finalize resumed SPC {cfg['dataset']} {cfg['run_id']}")
266
+ return
267
+ upload_changed(root,cfg,bootstrap_items(root),f"Initialize SPC {cfg['dataset']} run {cfg['run_id']}")
268
+ writer=CaptureWriter(root/'logs/tensorboard');synth_iter=cycle(synth_loader)
269
+ for _ in range(step%len(synth_loader)):next(synth_iter)
270
+ start=time.monotonic();times=[]
271
+ for epoch in range(epoch0,cfg['epochs']):
272
+ t=time.monotonic();g=torch.Generator();g.manual_seed(cfg['seed']+1000+epoch)
273
+ kw={'num_workers':cfg['num_workers'],'pin_memory':True,'collate_fn':raw_image_collate_fn,'generator':g}
274
+ if cfg['num_workers']:kw['persistent_workers']=True;kw['prefetch_factor']=2
275
+ train_loader=DataLoader(train,batch_size=cfg['batch_size'],shuffle=True,**kw)
276
+ status(root,stage='TRAINING',epoch=epoch+1,total_epochs=cfg['epochs'],global_step=step,best_val_accuracy=best_acc,best_epoch=best_epoch)
277
+ step,tl,vl,va=one_epoch(model,opt,scaler,writer,cfg,train_loader,synth_iter,val_loader,step,epoch)
278
+ if not all(np.isfinite(x) for x in [tl,vl,va]):raise RuntimeError('Nonfinite train/validation metric')
279
+ improved=va>best_acc
280
+ if improved:
281
+ best_acc=va;best_epoch=epoch+1
282
+ atomic_torch(best,{'run_id':cfg['run_id'],'epoch':best_epoch,'best_val_accuracy':best_acc,'adapter_state_dict':get_peft_model_state_dict(model.model),'config_fingerprint':fp,'model_name':cfg['model_name']})
283
+ atomic_json(root/'config/best_config.json',{'run_id':cfg['run_id'],'best_epoch':best_epoch,'best_val_accuracy':best_acc,'resolved_config':cfg})
284
+ elapsed=prior_elapsed+time.monotonic()-start;times.append(time.monotonic()-t);eta=float(np.mean(times[-5:]))*(cfg['epochs']-epoch-1)
285
+ payload={'run_id':cfg['run_id'],'epoch':epoch+1,'global_step':step,'best_val_accuracy':best_acc,'best_epoch':best_epoch,'adapter_state_dict':get_peft_model_state_dict(model.model),'optimizer_state_dict':opt.state_dict(),'scheduler_state_dict':None,'scaler_state_dict':scaler.state_dict(),'rng_state':rng_state(),'config_fingerprint':fp,'resolved_config':cfg,'support_selection_sha256':cfg['support_selection_sha256'],'synthetic_archive_sha256':cfg['synthetic_archive_sha256'],'elapsed_seconds':elapsed}
286
+ atomic_torch(current,payload)
287
+ assert torch.load(current,map_location='cpu',weights_only=False)['epoch']==epoch+1
288
+ row={'timestamp':utcnow(),'epoch':epoch+1,'global_step':step,'train_loss':tl,'val_loss':vl,'val_accuracy':va,'best_val_accuracy':best_acc,'best_epoch':best_epoch,'learning_rate':opt.param_groups[0]['lr'],'elapsed_seconds':elapsed,'eta_seconds':eta,'gpu':gpu_state()}
289
+ append_jsonl(root/'logs/metrics.jsonl',row);status(root,stage='TRAINING',**row,total_epochs=cfg['epochs'],trainable_parameters=counts)
290
+ atomic_json(root/'resume_state.json',{'run_id':cfg['run_id'],'epoch':epoch+1,'global_step':step,'config_fingerprint':fp,'current_checkpoint':'checkpoints/current.pt','best_checkpoint':'checkpoints/best.pt','updated_at':utcnow()})
291
+ if (epoch+1)%5==0:plot_metrics(root)
292
+ items=[(current,'checkpoints/current.pt'),(root/'resume_state.json','resume_state.json'),(root/'logs/status.json','logs/status.json'),(root/'logs/metrics.jsonl','logs/metrics.jsonl')]
293
+ if improved:items += [(best,'checkpoints/best.pt'),(root/'config/best_config.json','config/best_config.json')]
294
+ upload_changed(root,cfg,items,f"SPC {cfg['dataset']} epoch {epoch+1}/{cfg['epochs']}")
295
+ print(f'EPOCH {epoch+1}/{cfg["epochs"]} train_loss={tl:.4f} val_acc={va:.4%} best={best_acc:.4%} elapsed={elapsed:.0f}s',flush=True)
296
+ writer.close();plot_metrics(root);status(root,stage='EVALUATING',epoch=cfg['epochs'],global_step=step,best_val_accuracy=best_acc,best_epoch=best_epoch)
297
+ del model,opt,scaler;gc.collect();torch.cuda.empty_cache()
298
+ result=evaluate_best(root,cfg)
299
+ status(root,stage='COMPLETED',epoch=cfg['epochs'],global_step=step,best_val_accuracy=best_acc,best_epoch=best_epoch,test_accuracy=result['test_accuracy'])
300
+ files=[(p,str(p.relative_to(root))) for d in ['config','source','manifests','figures','results','logs'] for p in (root/d).rglob('*') if p.is_file() and 'fewshot_upload' not in p.parts and 'tensorboard' not in p.parts and p.stat().st_size<15_000_000]
301
+ files += [(current,'checkpoints/current.pt'),(best,'checkpoints/best.pt'),(root/'resume_state.json','resume_state.json')]
302
+ upload_changed(root,cfg,files,f"Finalize SPC {cfg['dataset']} {cfg['run_id']}")
303
+ print('FINAL_TEST_ACCURACY',result['test_accuracy'],flush=True)
304
+
305
+ def main():
306
+ ap=argparse.ArgumentParser();ap.add_argument('--config',required=True);ap.add_argument('--run-root',required=True);ap.add_argument('--smoke',action='store_true');args=ap.parse_args()
307
+ cfg=json.loads(Path(args.config).read_text());root=Path(args.run_root);root.mkdir(parents=True,exist_ok=True)
308
+ assert root.name==cfg['run_id'] and torch.cuda.is_available()
309
+ if args.smoke:smoke(root,cfg)
310
+ else:run(root,cfg)
311
+ if __name__=='__main__':main()
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/disef_spc_supervisor.py ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ import argparse,fcntl,json,os,subprocess,sys,time
3
+ from datetime import datetime,timezone
4
+ from pathlib import Path
5
+
6
+ def stamp():return datetime.now(timezone.utc).isoformat()
7
+ def epoch_of(root):
8
+ p=root/'resume_state.json'
9
+ try:return json.loads(p.read_text())['epoch']
10
+ except Exception:return 0
11
+
12
+ def matching_runner(run_id):
13
+ lines=subprocess.run(['ps','-eww','-o','pid,args'],capture_output=True,text=True).stdout.splitlines()
14
+ return [(int(x.split(None,1)[0]),x) for x in lines if 'disef_spc_runner.py' in x and run_id in x and '--smoke' not in x and 'ps -eo' not in x]
15
+
16
+ def main():
17
+ ap=argparse.ArgumentParser();ap.add_argument('--run-root',required=True);ap.add_argument('--config',required=True);args=ap.parse_args()
18
+ root=Path(args.run_root).resolve();cfg=json.loads(Path(args.config).read_text());assert root.name==cfg['run_id']
19
+ lock=root/'logs/supervisor.lock';lock.parent.mkdir(parents=True,exist_ok=True)
20
+ with lock.open('w') as f:
21
+ try:fcntl.flock(f,fcntl.LOCK_EX|fcntl.LOCK_NB)
22
+ except BlockingIOError:print('SUPERVISOR_ALREADY_RUNNING',flush=True);return
23
+ f.write(str(os.getpid()));f.flush()
24
+ prior=matching_runner(root.name)
25
+ if prior:
26
+ print('MATCHING_TRAINER_ALREADY_RUNNING',prior[0][0],flush=True);return
27
+ log=root/'logs/train.log';events=root/'logs/supervisor_events.jsonl'
28
+ failures=0;last_epoch=epoch_of(root)
29
+ while True:
30
+ prior=matching_runner(root.name)
31
+ if prior:
32
+ with events.open('a') as out:out.write(json.dumps({'at':stamp(),'event':'existing_runner','pid':prior[0][0]})+'\n')
33
+ return
34
+ cmd=[sys.executable,str(Path(__file__).with_name('disef_spc_runner.py')),'--config',str(args.config),'--run-root',str(root)]
35
+ with log.open('a') as out:
36
+ proc=subprocess.Popen(cmd,cwd=str(Path(__file__).resolve().parent.parent),stdout=out,stderr=subprocess.STDOUT,stdin=subprocess.DEVNULL)
37
+ with events.open('a') as ev:ev.write(json.dumps({'at':stamp(),'event':'runner_start','pid':proc.pid,'resume_epoch':last_epoch})+'\n')
38
+ rc=proc.wait()
39
+ now_epoch=epoch_of(root)
40
+ with events.open('a') as ev:ev.write(json.dumps({'at':stamp(),'event':'runner_exit','pid':proc.pid,'exit_code':rc,'checkpoint_epoch':now_epoch})+'\n')
41
+ if rc==0:return
42
+ failures=0 if now_epoch>last_epoch else failures+1
43
+ last_epoch=now_epoch
44
+ if failures>=3:
45
+ (root/'logs/supervisor_blocked.json').write_text(json.dumps({'at':stamp(),'reason':'three consecutive failed launches without checkpoint progress','checkpoint_epoch':now_epoch,'exit_code':rc}))
46
+ return
47
+ time.sleep(min(30*failures,90))
48
+ if __name__=='__main__':main()
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/patch_notes.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # SPC Caltech101 fine-tuning patch
2
+
3
+ General PETS fixes reused: remove no_grad from text prototypes, fix lambda arity and typo in SPC; remove Qwen embedder no_grad; GradScaler initial scale 128 verified in PETS.
4
+
5
+ Caltech adaptation: parameterize dataset name, class count, split sizes, image path layout, synthetic count, class mapping, and HF destination in the PETS runner. Exact generation support is selected from the DISEF CoOp train split with random.Random(1), matching caltech101_disef.py and synthetic source IDs. 100 classes exclude BACKGROUND_Google and Faces_easy as in SPC/DISEF. Validation selects best; held-out test is evaluated once after training.
6
+
7
+ No backbone, LoRA, optimizer, loss, precision, batch size, scheduler, resolution, or epoch change from PETS.
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/qwen_trainability.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/models/qwen3_vl_embedding.py b/src/models/qwen3_vl_embedding.py
2
+ index a2d4a73..9f3b84b 100644
3
+ --- a/src/models/qwen3_vl_embedding.py
4
+ +++ b/src/models/qwen3_vl_embedding.py
5
+ @@ -189,7 +189,6 @@ class Qwen3VLEmbedder():
6
+ )
7
+ self.model.eval()
8
+
9
+ - @torch.no_grad()
10
+ def forward(self, inputs: Dict[str, Any]) -> Dict[str, torch.Tensor]:
11
+ outputs = self.model(**inputs)
12
+ return {
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/spc_fixes.patch ADDED
@@ -0,0 +1,401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/DisEF/disef_spc_runner.py b/DisEF/disef_spc_runner.py
2
+ new file mode 100644
3
+ index 0000000..5e67cc0
4
+ --- /dev/null
5
+ +++ b/DisEF/disef_spc_runner.py
6
+ @@ -0,0 +1,311 @@
7
+ +#!/usr/bin/env python3
8
+ +"""Dataset-parameterized adapter for SPC DisEF: preserves the SPC loss/model loop and adds paths + durable resume."""
9
+ +from __future__ import annotations
10
+ +import argparse, csv, hashlib, json, os, random, sys, time, math, shutil, subprocess, gc
11
+ +from datetime import datetime, timezone
12
+ +from itertools import cycle
13
+ +from pathlib import Path
14
+ +import numpy as np
15
+ +import torch
16
+ +from PIL import Image
17
+ +from torch.utils.data import DataLoader, Dataset, Subset
18
+ +from torch.utils.tensorboard import SummaryWriter
19
+ +from huggingface_hub import HfApi, CommitOperationAdd, hf_hub_download
20
+ +
21
+ +HERE = Path(__file__).resolve().parent
22
+ +REPO = HERE.parent
23
+ +sys.path.insert(0, str(REPO))
24
+ +# The local overlay is an isolated copy with the Qwen embedder's documented
25
+ +# no_grad decorator removed, as required by SPC's root README for training.
26
+ +sys.path.insert(0, str(REPO / 'Qwen3_VL_Embedding'))
27
+ +os.chdir(REPO)
28
+ +
29
+ +def _spc_symbols():
30
+ + src = (HERE / 'main_disef.py').read_text()
31
+ + marker = '###############################################################'
32
+ + prefix = src[:src.index(marker)]
33
+ + ns = {'__file__': str(HERE / 'main_disef.py'), '__name__': '_spc_library'}
34
+ + exec(compile(prefix, str(HERE / 'main_disef.py'), 'exec'), ns)
35
+ + return ns
36
+ +
37
+ +SPC = _spc_symbols()
38
+ +SUBSET_NAMES = SPC['SUBSET_NAMES']
39
+ +Qwen3VLEmbedder = SPC['Qwen3VLEmbedder']
40
+ +LoraConfig = SPC['LoraConfig']; get_peft_model = SPC['get_peft_model']
41
+ +from peft import get_peft_model_state_dict, set_peft_model_state_dict
42
+ +train_one_epoch_update = SPC['train_one_epoch_update']; get_val_losses = SPC['get_val_losses']
43
+ +get_acc = SPC['get_acc']; get_mu_and_kappa = SPC['get_mu_and_kappa']; fix_random_seed = SPC['fix_random_seed']
44
+ +raw_image_collate_fn = __import__('data_train').raw_image_collate_fn
45
+ +
46
+ +def utcnow(): return datetime.now(timezone.utc).isoformat()
47
+ +def sha256_file(path: Path):
48
+ + h=hashlib.sha256()
49
+ + with path.open('rb') as f:
50
+ + for b in iter(lambda:f.read(8<<20), b''): h.update(b)
51
+ + return h.hexdigest()
52
+ +def atomic_json(path: Path, value):
53
+ + path.parent.mkdir(parents=True, exist_ok=True); tmp=path.with_suffix(path.suffix+'.tmp')
54
+ + tmp.write_text(json.dumps(value, indent=2, sort_keys=True)); os.replace(tmp,path)
55
+ +def append_jsonl(path: Path, value):
56
+ + path.parent.mkdir(parents=True, exist_ok=True)
57
+ + with path.open('a') as f: f.write(json.dumps(value,sort_keys=True)+'\n')
58
+ +def atomic_torch(path: Path, value):
59
+ + path.parent.mkdir(parents=True, exist_ok=True); tmp=path.with_suffix(path.suffix+f'.tmp.{os.getpid()}')
60
+ + with tmp.open('wb') as f: torch.save(value,f); f.flush(); os.fsync(f.fileno())
61
+ + os.replace(tmp,path)
62
+ +def rng_state():
63
+ + return {'python':random.getstate(),'numpy':np.random.get_state(),'torch':torch.get_rng_state(),'cuda':torch.cuda.get_rng_state_all() if torch.cuda.is_available() else None}
64
+ +def restore_rng(s):
65
+ + random.setstate(s['python']); np.random.set_state(s['numpy']); torch.set_rng_state(s['torch'])
66
+ + if s.get('cuda') is not None: torch.cuda.set_rng_state_all(s['cuda'])
67
+ +
68
+ +class FewshotCSVDataset(Dataset):
69
+ + def __init__(self, image_dir: Path, entries, class_mapping, layout='class_subdirectories'):
70
+ + self.items=[]
71
+ + labels={m['real_folder']:m['spc_index'] for m in class_mapping}
72
+ + for rel in entries:
73
+ + rel=Path(rel)
74
+ + if rel.parent.name not in labels: raise ValueError(f'Unknown real class {rel}')
75
+ + p=image_dir/(rel if layout=='class_subdirectories' else rel.name)
76
+ + if not p.is_file(): raise FileNotFoundError(p)
77
+ + self.items.append((p,labels[rel.parent.name]))
78
+ + def __len__(self): return len(self.items)
79
+ + def __getitem__(self,i):
80
+ + p,y=self.items[i]
81
+ + with Image.open(p) as im: return im.convert('RGB'),y
82
+ +
83
+ +def load_split(cfg, split):
84
+ + with Path(cfg['split_csv']).open() as f: rows=list(csv.DictReader(f))
85
+ + return [r['filename'] for r in rows if r['split']==split]
86
+ +def load_support(cfg):
87
+ + s=json.loads(Path(cfg['support_manifest']).read_text())
88
+ + if s['selection_sha256']!=cfg['support_selection_sha256'] or s['shot']!=cfg['shot'] or s['split_seed']!=cfg['split_seed']:
89
+ + raise RuntimeError('Generation support fingerprint mismatch')
90
+ + entries=[]
91
+ + for _,items in s['support_relative_paths_by_class'].items(): entries.extend(items)
92
+ + if len(entries)!=cfg['class_count']*cfg['shot']:raise RuntimeError(f'Expected {cfg["class_count"]*cfg["shot"]} supports, found {len(entries)}')
93
+ + return entries
94
+ +
95
+ +def make_loaders(cfg):
96
+ + classes=SUBSET_NAMES[cfg['dataset']];assert len(classes)==cfg['class_count']
97
+ + mapping=json.loads(Path(cfg['class_mapping']).read_text())
98
+ + assert len(mapping)==len(classes) and all(x['spc_index']==i and x['spc_class_name']==classes[i] for i,x in enumerate(mapping))
99
+ + image_dir=Path(cfg['real_images_dir']);support=load_support(cfg);val=load_split(cfg,'val');test=load_split(cfg,'test')
100
+ + assert len(support)==cfg['class_count']*cfg['shot'] and len(val)==cfg['validation_size'] and len(test)==cfg['test_size']
101
+ + assert set(support).isdisjoint(val) and set(support).isdisjoint(test) and set(val).isdisjoint(test)
102
+ + train=FewshotCSVDataset(image_dir,support,mapping,cfg.get('real_path_layout','class_subdirectories'))
103
+ + vald=FewshotCSVDataset(image_dir,val,mapping,cfg.get('real_path_layout','class_subdirectories'))
104
+ + testd=FewshotCSVDataset(image_dir,test,mapping,cfg.get('real_path_layout','class_subdirectories'))
105
+ + synth=[];synth_root=Path(cfg['synthetic_dir'])
106
+ + for item in mapping:
107
+ + files=sorted((synth_root/item['synthetic_folder']).glob('*.jpg'))
108
+ + assert len(files)==cfg['synthetic_per_class'],(item['synthetic_folder'],len(files))
109
+ + synth.extend((p,item['spc_index']) for p in files)
110
+ + perm=np.random.default_rng(cfg['seed']).permutation(len(synth));synth=[synth[i] for i in perm]
111
+ + class Synth(Dataset):
112
+ + def __len__(self):return len(synth)
113
+ + def __getitem__(self,i):
114
+ + p,y=synth[i]
115
+ + with Image.open(p) as im:return im.convert('RGB'),y
116
+ + kw={'num_workers':cfg['num_workers'],'pin_memory':True,'collate_fn':raw_image_collate_fn}
117
+ + if cfg['num_workers']:kw['persistent_workers']=True;kw['prefetch_factor']=2
118
+ + synth_loader=DataLoader(Synth(),batch_size=cfg['batch_size'],shuffle=False,**kw)
119
+ + val_loader=DataLoader(vald,batch_size=cfg['eval_batch_size'],shuffle=False,**kw)
120
+ + test_loader=DataLoader(testd,batch_size=cfg['eval_batch_size'],shuffle=False,**kw)
121
+ + return train,synth_loader,val_loader,test_loader
122
+ +
123
+ +class CaptureWriter:
124
+ + def __init__(self,path):self.tb=SummaryWriter(log_dir=str(path));self.train=[];self.val=[]
125
+ + def add_scalar(self,tag,value,step):
126
+ + self.tb.add_scalar(tag,value,step)
127
+ + if tag=='Training Loss/Total':self.train.append(float(value))
128
+ + if tag=='Validation Loss/Total':self.val.append(float(value))
129
+ + def close(self):self.tb.close()
130
+ +
131
+ +def signature(cfg):return hashlib.sha256(json.dumps(cfg,sort_keys=True,separators=(',',':')).encode()).hexdigest()
132
+ +
133
+ +def model_setup(cfg):
134
+ + model=Qwen3VLEmbedder(model_name_or_path=cfg['model_local_path'])
135
+ + l=cfg['lora'];lc=LoraConfig(r=l['r'],lora_alpha=l['alpha'],target_modules=l['target_modules'],lora_dropout=l['dropout'],bias=l['bias'],task_type=l['task_type'])
136
+ + model.model=get_peft_model(model.model,lc);model.model.gradient_checkpointing_enable()
137
+ + trainable=[(n,p) for n,p in model.model.named_parameters() if p.requires_grad]
138
+ + total=sum(p.numel() for p in model.model.parameters());ntrain=sum(p.numel() for _,p in trainable)
139
+ + assert trainable and all('lora_' in n for n,_ in trainable)
140
+ + groups={'vision':sum(p.numel() for n,p in trainable if 'visual' in n),'text':sum(p.numel() for n,p in trainable if 'language_model' in n)}
141
+ + assert groups['vision']>0 and groups['text']>0,groups
142
+ + opt=torch.optim.AdamW([p for _,p in trainable],lr=cfg['optimizer']['lr'],weight_decay=cfg['optimizer']['weight_decay'])
143
+ + scaler=torch.amp.GradScaler('cuda',init_scale=128.0)
144
+ + return model,opt,scaler,{'trainable':ntrain,'total':total,'percent':100*ntrain/total,'groups':groups}
145
+ +
146
+ +def current_metrics(root):
147
+ + p=root/'logs/metrics.jsonl'
148
+ + if not p.exists():return []
149
+ + return [json.loads(x) for x in p.read_text().splitlines() if x.strip()]
150
+ +
151
+ +def plot_metrics(root):
152
+ + rows=current_metrics(root)
153
+ + if not rows:return
154
+ + import matplotlib;matplotlib.use('Agg')
155
+ + import matplotlib.pyplot as plt
156
+ + x=[r['epoch'] for r in rows]
157
+ + for key,title,path in [('train_loss','Train loss','train_loss.png'),('val_loss','Validation loss','val_loss.png'),('val_accuracy','Validation accuracy','val_accuracy.png'),('learning_rate','Learning rate','learning_rate.png')]:
158
+ + fig,ax=plt.subplots(figsize=(7,3.5));ax.plot(x,[r.get(key,float('nan')) for r in rows],marker='o',markersize=3);ax.set(xlabel='Epoch',ylabel=title,title=title);ax.grid(alpha=.25);fig.tight_layout();fig.savefig(root/'figures'/path,dpi=140);plt.close(fig)
159
+ +
160
+ +def gpu_state():
161
+ + try:
162
+ + s=subprocess.check_output(['nvidia-smi','--query-gpu=utilization.gpu,memory.used,memory.total','--format=csv,noheader,nounits'],text=True,timeout=5).strip().split(',')
163
+ + return {'utilization_percent':int(s[0]),'memory_used_mib':int(s[1]),'memory_total_mib':int(s[2])}
164
+ + except Exception:return {}
165
+ +
166
+ +def upload_changed(root,cfg,items,commit_message):
167
+ + token=os.environ.get('HF_TOKEN')
168
+ + if not token:return False
169
+ + repo=cfg['hf_repo'];base=f'{cfg["hf_run_prefix"]}/{cfg["run_id"]}'
170
+ + state_path=root/'logs/upload_state.json';seen=json.loads(state_path.read_text()) if state_path.exists() else {}
171
+ + ops=[];new={}
172
+ + for local,rel in items:
173
+ + if not local.exists():continue
174
+ + h=sha256_file(local);remote=f'{base}/{rel}'
175
+ + if seen.get(remote)!=h:ops.append(CommitOperationAdd(path_in_repo=remote,path_or_fileobj=str(local)));new[remote]=h
176
+ + if not ops:return True
177
+ + try:
178
+ + HfApi(token=token).create_commit(repo_id=repo,repo_type='dataset',operations=ops,commit_message=commit_message)
179
+ + seen.update(new);atomic_json(state_path,seen);return True
180
+ + except Exception as e:
181
+ + with (root/'logs/hf_sync_errors.log').open('a') as f:f.write(f'{utcnow()} {type(e).__name__}: {e}\n')
182
+ + return False
183
+ +
184
+ +def bootstrap_items(root):
185
+ + items=[]
186
+ + for d in ['config','source','manifests']:
187
+ + for p in (root/d).rglob('*'):
188
+ + if p.is_file() and 'fewshot_upload' not in p.parts and p.stat().st_size<15_000_000:items.append((p,str(p.relative_to(root))))
189
+ + return items
190
+ +
191
+ +def restore_checkpoints(root,cfg):
192
+ + if (root/'checkpoints/current.pt').exists():return
193
+ + token=os.environ.get('HF_TOKEN')
194
+ + if not token:return
195
+ + api=HfApi(token=token);repo=cfg['hf_repo'];base=f'{cfg["hf_run_prefix"]}/{cfg["run_id"]}'
196
+ + try:files=set(api.list_repo_files(repo,repo_type='dataset'))
197
+ + except Exception:return
198
+ + for rel in ['checkpoints/current.pt','checkpoints/best.pt']:
199
+ + remote=f'{base}/{rel}'
200
+ + if remote in files:
201
+ + src=Path(hf_hub_download(repo,remote,repo_type='dataset',token=token))
202
+ + dst=root/rel;dst.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(src,dst)
203
+ +
204
+ +def status(root,**kw):atomic_json(root/'logs/status.json',{'run_id':root.name,'updated_at':utcnow(),**kw})
205
+ +
206
+ +def one_epoch(model,opt,scaler,writer,cfg,train_loader,synth_iter,val_loader,step,epoch):
207
+ + l=cfg['loss'];writer.train=[];writer.val=[]
208
+ + step=train_one_epoch_update(model,opt,scaler,step,train_loader,l['lambda0'],l['lambda1'],l['lambda2'],l['lambda3'],l['use_l0'],l['use_l1'],l['use_l2'],l['use_l3'],writer,'cuda',synth_iter,cfg['dataset'],cfg['logit_scale'],l['num_samples'])
209
+ + model.model.eval()
210
+ + with torch.no_grad():
211
+ + acc=get_val_losses(model,opt,scaler,epoch,val_loader,l['lambda0'],l['lambda1'],l['lambda2'],l['lambda3'],l['use_l0'],l['use_l1'],l['use_l2'],l['use_l3'],writer,'cuda',synth_iter,cfg['dataset'],cfg['logit_scale'],l['num_samples'])
212
+ + return step,float(np.mean(writer.train)),float(np.mean(writer.val)),float(acc)
213
+ +
214
+ +def smoke(root,cfg):
215
+ + status(root,stage='SMOKE_TEST')
216
+ + fix_random_seed(cfg['seed']);train,synth_loader,val_loader,_=make_loaders(cfg)
217
+ + model,opt,scaler,counts=model_setup(cfg)
218
+ + writer=CaptureWriter(root/'logs/smoke_tensorboard')
219
+ + kw={'num_workers':0,'collate_fn':raw_image_collate_fn}
220
+ + real_one=DataLoader(Subset(train,[0]),batch_size=1,**kw)
221
+ + syn_one=DataLoader(Subset(synth_loader.dataset,[0]),batch_size=1,**kw)
222
+ + val_one=DataLoader(Subset(val_loader.dataset,[0]),batch_size=1,**kw)
223
+ + before={n:p.detach().cpu().clone() for n,p in model.model.named_parameters() if p.requires_grad}
224
+ + step,tl,vl,acc=one_epoch(model,opt,scaler,writer,cfg,real_one,cycle(syn_one),val_one,0,0)
225
+ + changed=sum(int(not torch.equal(before[n],p.detach().cpu())) for n,p in model.model.named_parameters() if p.requires_grad)
226
+ + grad_vision=sum(int(p.grad is not None and torch.isfinite(p.grad).all() and p.grad.abs().sum()>0) for n,p in model.model.named_parameters() if p.requires_grad and 'visual' in n)
227
+ + grad_text=sum(int(p.grad is not None and torch.isfinite(p.grad).all() and p.grad.abs().sum()>0) for n,p in model.model.named_parameters() if p.requires_grad and 'language_model' in n)
228
+ + diag={'changed':changed,'grad_vision_finite_nonzero':grad_vision,'grad_text_finite_nonzero':grad_text,'grad_any':sum(p.grad is not None for n,p in model.model.named_parameters() if p.requires_grad),'grad_nonfinite':sum(p.grad is not None and not bool(torch.isfinite(p.grad).all()) for n,p in model.model.named_parameters() if p.requires_grad),'scaler_scale':scaler.get_scale(),'loss':tl,'counts':counts};print('SMOKE_GRAD_DIAG',json.dumps(diag),flush=True)
229
+ + assert changed>0 and grad_vision>0 and grad_text>0 and np.isfinite(tl) and np.isfinite(vl),(changed,grad_vision,grad_text,tl,vl)
230
+ + tmp=root/'checkpoints/smoke.pt';atomic_torch(tmp,{'adapter_state_dict':get_peft_model_state_dict(model.model),'optimizer_state_dict':opt.state_dict(),'scaler_state_dict':scaler.state_dict(),'config_fingerprint':signature(cfg)})
231
+ + x=torch.load(tmp,map_location='cpu',weights_only=False);assert x['config_fingerprint']==signature(cfg);set_peft_model_state_dict(model.model,x['adapter_state_dict']);tmp.unlink();writer.close()
232
+ + result={'status':'PASS','gpu':torch.cuda.get_device_name(0),'gpu_peak_allocated_gb':round(torch.cuda.max_memory_allocated()/1e9,2),'trainable_parameters':counts,'changed_lora_tensors':changed,'nonzero_vision_grads':grad_vision,'nonzero_text_grads':grad_text,'train_loss':tl,'val_loss':vl,'val_accuracy_one_sample':acc,'checkpoint_reload':True}
233
+ + atomic_json(root/'results/smoke_test.json',result);status(root,stage='SMOKE_PASSED',**result)
234
+ + print(json.dumps(result),flush=True)
235
+ +
236
+ +def evaluate_best(root,cfg):
237
+ + x=torch.load(root/'checkpoints/best.pt',map_location='cpu',weights_only=False)
238
+ + assert x['config_fingerprint']==signature(cfg)
239
+ + _,_,_,test_loader=make_loaders(cfg)
240
+ + model,_,_,_=model_setup(cfg);set_peft_model_state_dict(model.model,x['adapter_state_dict']);model.model.eval()
241
+ + with torch.no_grad():
242
+ + mu,_=get_mu_and_kappa(model,cfg['dataset']);mu=mu.to('cuda');cm=np.zeros((cfg['class_count'],cfg['class_count']),dtype=np.int64)
243
+ + for images,labels in test_loader:
244
+ + emb=SPC['get_image_embedding'](model,images);pred=(cfg['logit_scale']*(emb@mu.T)).argmax(dim=1).cpu().numpy()
245
+ + for y,p in zip(labels.numpy(),pred):cm[int(y),int(p)]+=1
246
+ + total=int(cm.sum());correct=int(np.trace(cm));assert total==cfg['test_size']
247
+ + result={'run_id':cfg['run_id'],'test_accuracy':correct/total,'test_correct':correct,'test_total':total,'best_epoch':x['epoch'],'best_val_accuracy':x['best_val_accuracy'],'confusion_matrix':cm.tolist(),'per_class_accuracy':{SUBSET_NAMES[cfg['dataset']][i]:float(cm[i,i]/cm[i].sum()) for i in range(cfg['class_count'])},'evaluated_at':utcnow()}
248
+ + atomic_json(root/'results/final_test.json',result);atomic_json(root/'results/summary.json',{k:v for k,v in result.items() if k not in ['confusion_matrix','per_class_accuracy']})
249
+ + import matplotlib;matplotlib.use('Agg');import matplotlib.pyplot as plt
250
+ + fig,ax=plt.subplots(figsize=(10,9));ax.imshow(cm,cmap='Blues');ax.set(xlabel='Predicted class',ylabel='True class',title=f"{cfg['dataset']} test confusion matrix");fig.tight_layout();fig.savefig(root/'figures/test_confusion_matrix.png',dpi=140);plt.close(fig)
251
+ + return result
252
+ +
253
+ +def run(root,cfg):
254
+ + restore_checkpoints(root,cfg)
255
+ + fix_random_seed(cfg['seed']);train,synth_loader,val_loader,_=make_loaders(cfg)
256
+ + model,opt,scaler,counts=model_setup(cfg);fp=signature(cfg)
257
+ + epoch0=0;step=0;best_acc=-1.0;best_epoch=0;prior_elapsed=0.0
258
+ + current=root/'checkpoints/current.pt';best=root/'checkpoints/best.pt'
259
+ + if current.exists():
260
+ + x=torch.load(current,map_location='cpu',weights_only=False)
261
+ + assert x['config_fingerprint']==fp and x['run_id']==cfg['run_id'] and x['support_selection_sha256']==cfg['support_selection_sha256']
262
+ + set_peft_model_state_dict(model.model,x['adapter_state_dict']);opt.load_state_dict(x['optimizer_state_dict']);scaler.load_state_dict(x['scaler_state_dict'])
263
+ + epoch0=x['epoch'];step=x['global_step'];best_acc=x['best_val_accuracy'];best_epoch=x['best_epoch'];prior_elapsed=x.get('elapsed_seconds',0.0);restore_rng(x['rng_state'])
264
+ + if epoch0>=cfg['epochs']:
265
+ + if not (root/'results/final_test.json').exists():evaluate_best(root,cfg)
266
+ + plot_metrics(root)
267
+ + result=json.loads((root/'results/final_test.json').read_text())
268
+ + status(root,stage='COMPLETED',epoch=epoch0,global_step=step,best_val_accuracy=best_acc,best_epoch=best_epoch,test_accuracy=result['test_accuracy'])
269
+ + files=[(p,str(p.relative_to(root))) for d in ['config','source','manifests','figures','results','logs'] for p in (root/d).rglob('*') if p.is_file() and 'fewshot_upload' not in p.parts and 'tensorboard' not in p.parts and p.stat().st_size<15_000_000]
270
+ + files += [(current,'checkpoints/current.pt'),(best,'checkpoints/best.pt'),(root/'resume_state.json','resume_state.json')]
271
+ + upload_changed(root,cfg,files,f"Finalize resumed SPC {cfg['dataset']} {cfg['run_id']}")
272
+ + return
273
+ + upload_changed(root,cfg,bootstrap_items(root),f"Initialize SPC {cfg['dataset']} run {cfg['run_id']}")
274
+ + writer=CaptureWriter(root/'logs/tensorboard');synth_iter=cycle(synth_loader)
275
+ + for _ in range(step%len(synth_loader)):next(synth_iter)
276
+ + start=time.monotonic();times=[]
277
+ + for epoch in range(epoch0,cfg['epochs']):
278
+ + t=time.monotonic();g=torch.Generator();g.manual_seed(cfg['seed']+1000+epoch)
279
+ + kw={'num_workers':cfg['num_workers'],'pin_memory':True,'collate_fn':raw_image_collate_fn,'generator':g}
280
+ + if cfg['num_workers']:kw['persistent_workers']=True;kw['prefetch_factor']=2
281
+ + train_loader=DataLoader(train,batch_size=cfg['batch_size'],shuffle=True,**kw)
282
+ + status(root,stage='TRAINING',epoch=epoch+1,total_epochs=cfg['epochs'],global_step=step,best_val_accuracy=best_acc,best_epoch=best_epoch)
283
+ + step,tl,vl,va=one_epoch(model,opt,scaler,writer,cfg,train_loader,synth_iter,val_loader,step,epoch)
284
+ + if not all(np.isfinite(x) for x in [tl,vl,va]):raise RuntimeError('Nonfinite train/validation metric')
285
+ + improved=va>best_acc
286
+ + if improved:
287
+ + best_acc=va;best_epoch=epoch+1
288
+ + atomic_torch(best,{'run_id':cfg['run_id'],'epoch':best_epoch,'best_val_accuracy':best_acc,'adapter_state_dict':get_peft_model_state_dict(model.model),'config_fingerprint':fp,'model_name':cfg['model_name']})
289
+ + atomic_json(root/'config/best_config.json',{'run_id':cfg['run_id'],'best_epoch':best_epoch,'best_val_accuracy':best_acc,'resolved_config':cfg})
290
+ + elapsed=prior_elapsed+time.monotonic()-start;times.append(time.monotonic()-t);eta=float(np.mean(times[-5:]))*(cfg['epochs']-epoch-1)
291
+ + payload={'run_id':cfg['run_id'],'epoch':epoch+1,'global_step':step,'best_val_accuracy':best_acc,'best_epoch':best_epoch,'adapter_state_dict':get_peft_model_state_dict(model.model),'optimizer_state_dict':opt.state_dict(),'scheduler_state_dict':None,'scaler_state_dict':scaler.state_dict(),'rng_state':rng_state(),'config_fingerprint':fp,'resolved_config':cfg,'support_selection_sha256':cfg['support_selection_sha256'],'synthetic_archive_sha256':cfg['synthetic_archive_sha256'],'elapsed_seconds':elapsed}
292
+ + atomic_torch(current,payload)
293
+ + assert torch.load(current,map_location='cpu',weights_only=False)['epoch']==epoch+1
294
+ + row={'timestamp':utcnow(),'epoch':epoch+1,'global_step':step,'train_loss':tl,'val_loss':vl,'val_accuracy':va,'best_val_accuracy':best_acc,'best_epoch':best_epoch,'learning_rate':opt.param_groups[0]['lr'],'elapsed_seconds':elapsed,'eta_seconds':eta,'gpu':gpu_state()}
295
+ + append_jsonl(root/'logs/metrics.jsonl',row);status(root,stage='TRAINING',**row,total_epochs=cfg['epochs'],trainable_parameters=counts)
296
+ + atomic_json(root/'resume_state.json',{'run_id':cfg['run_id'],'epoch':epoch+1,'global_step':step,'config_fingerprint':fp,'current_checkpoint':'checkpoints/current.pt','best_checkpoint':'checkpoints/best.pt','updated_at':utcnow()})
297
+ + if (epoch+1)%5==0:plot_metrics(root)
298
+ + items=[(current,'checkpoints/current.pt'),(root/'resume_state.json','resume_state.json'),(root/'logs/status.json','logs/status.json'),(root/'logs/metrics.jsonl','logs/metrics.jsonl')]
299
+ + if improved:items += [(best,'checkpoints/best.pt'),(root/'config/best_config.json','config/best_config.json')]
300
+ + upload_changed(root,cfg,items,f"SPC {cfg['dataset']} epoch {epoch+1}/{cfg['epochs']}")
301
+ + print(f'EPOCH {epoch+1}/{cfg["epochs"]} train_loss={tl:.4f} val_acc={va:.4%} best={best_acc:.4%} elapsed={elapsed:.0f}s',flush=True)
302
+ + writer.close();plot_metrics(root);status(root,stage='EVALUATING',epoch=cfg['epochs'],global_step=step,best_val_accuracy=best_acc,best_epoch=best_epoch)
303
+ + del model,opt,scaler;gc.collect();torch.cuda.empty_cache()
304
+ + result=evaluate_best(root,cfg)
305
+ + status(root,stage='COMPLETED',epoch=cfg['epochs'],global_step=step,best_val_accuracy=best_acc,best_epoch=best_epoch,test_accuracy=result['test_accuracy'])
306
+ + files=[(p,str(p.relative_to(root))) for d in ['config','source','manifests','figures','results','logs'] for p in (root/d).rglob('*') if p.is_file() and 'fewshot_upload' not in p.parts and 'tensorboard' not in p.parts and p.stat().st_size<15_000_000]
307
+ + files += [(current,'checkpoints/current.pt'),(best,'checkpoints/best.pt'),(root/'resume_state.json','resume_state.json')]
308
+ + upload_changed(root,cfg,files,f"Finalize SPC {cfg['dataset']} {cfg['run_id']}")
309
+ + print('FINAL_TEST_ACCURACY',result['test_accuracy'],flush=True)
310
+ +
311
+ +def main():
312
+ + ap=argparse.ArgumentParser();ap.add_argument('--config',required=True);ap.add_argument('--run-root',required=True);ap.add_argument('--smoke',action='store_true');args=ap.parse_args()
313
+ + cfg=json.loads(Path(args.config).read_text());root=Path(args.run_root);root.mkdir(parents=True,exist_ok=True)
314
+ + assert root.name==cfg['run_id'] and torch.cuda.is_available()
315
+ + if args.smoke:smoke(root,cfg)
316
+ + else:run(root,cfg)
317
+ +if __name__=='__main__':main()
318
+ diff --git a/DisEF/disef_spc_supervisor.py b/DisEF/disef_spc_supervisor.py
319
+ new file mode 100644
320
+ index 0000000..c1b7df7
321
+ --- /dev/null
322
+ +++ b/DisEF/disef_spc_supervisor.py
323
+ @@ -0,0 +1,48 @@
324
+ +#!/usr/bin/env python3
325
+ +import argparse,fcntl,json,os,subprocess,sys,time
326
+ +from datetime import datetime,timezone
327
+ +from pathlib import Path
328
+ +
329
+ +def stamp():return datetime.now(timezone.utc).isoformat()
330
+ +def epoch_of(root):
331
+ + p=root/'resume_state.json'
332
+ + try:return json.loads(p.read_text())['epoch']
333
+ + except Exception:return 0
334
+ +
335
+ +def matching_runner(run_id):
336
+ + lines=subprocess.run(['ps','-eww','-o','pid,args'],capture_output=True,text=True).stdout.splitlines()
337
+ + return [(int(x.split(None,1)[0]),x) for x in lines if 'disef_spc_runner.py' in x and run_id in x and '--smoke' not in x and 'ps -eo' not in x]
338
+ +
339
+ +def main():
340
+ + ap=argparse.ArgumentParser();ap.add_argument('--run-root',required=True);ap.add_argument('--config',required=True);args=ap.parse_args()
341
+ + root=Path(args.run_root).resolve();cfg=json.loads(Path(args.config).read_text());assert root.name==cfg['run_id']
342
+ + lock=root/'logs/supervisor.lock';lock.parent.mkdir(parents=True,exist_ok=True)
343
+ + with lock.open('w') as f:
344
+ + try:fcntl.flock(f,fcntl.LOCK_EX|fcntl.LOCK_NB)
345
+ + except BlockingIOError:print('SUPERVISOR_ALREADY_RUNNING',flush=True);return
346
+ + f.write(str(os.getpid()));f.flush()
347
+ + prior=matching_runner(root.name)
348
+ + if prior:
349
+ + print('MATCHING_TRAINER_ALREADY_RUNNING',prior[0][0],flush=True);return
350
+ + log=root/'logs/train.log';events=root/'logs/supervisor_events.jsonl'
351
+ + failures=0;last_epoch=epoch_of(root)
352
+ + while True:
353
+ + prior=matching_runner(root.name)
354
+ + if prior:
355
+ + with events.open('a') as out:out.write(json.dumps({'at':stamp(),'event':'existing_runner','pid':prior[0][0]})+'\n')
356
+ + return
357
+ + cmd=[sys.executable,str(Path(__file__).with_name('disef_spc_runner.py')),'--config',str(args.config),'--run-root',str(root)]
358
+ + with log.open('a') as out:
359
+ + proc=subprocess.Popen(cmd,cwd=str(Path(__file__).resolve().parent.parent),stdout=out,stderr=subprocess.STDOUT,stdin=subprocess.DEVNULL)
360
+ + with events.open('a') as ev:ev.write(json.dumps({'at':stamp(),'event':'runner_start','pid':proc.pid,'resume_epoch':last_epoch})+'\n')
361
+ + rc=proc.wait()
362
+ + now_epoch=epoch_of(root)
363
+ + with events.open('a') as ev:ev.write(json.dumps({'at':stamp(),'event':'runner_exit','pid':proc.pid,'exit_code':rc,'checkpoint_epoch':now_epoch})+'\n')
364
+ + if rc==0:return
365
+ + failures=0 if now_epoch>last_epoch else failures+1
366
+ + last_epoch=now_epoch
367
+ + if failures>=3:
368
+ + (root/'logs/supervisor_blocked.json').write_text(json.dumps({'at':stamp(),'reason':'three consecutive failed launches without checkpoint progress','checkpoint_epoch':now_epoch,'exit_code':rc}))
369
+ + return
370
+ + time.sleep(min(30*failures,90))
371
+ +if __name__=='__main__':main()
372
+ diff --git a/DisEF/main_disef.py b/DisEF/main_disef.py
373
+ index c62e2c4..fd43b56 100644
374
+ --- a/DisEF/main_disef.py
375
+ +++ b/DisEF/main_disef.py
376
+ @@ -46,7 +46,6 @@ def get_dataset_name_for_template(dataset):
377
+ }[dataset]
378
+ return dataset_name
379
+
380
+ -@torch.no_grad()
381
+ def get_mu_and_kappa(model, dataset):
382
+ dataset_name = get_dataset_name_for_template(dataset)
383
+ templates = TEMPLATES_SMALL
384
+ @@ -420,7 +419,7 @@ ablation_acc = [
385
+
386
+ # Shared lambda
387
+ # lambda0: F(S), lambda1: F(G)
388
+ -lambda0, lambda1, lambda2, lambda3 = 0.8, 0.2, 0.04, 0.02, 0.5
389
+ +lambda0, lambda1, lambda2, lambda3 = 0.8, 0.2, 0.04, 0.02
390
+ # number samples each area
391
+ num_samples_area = [30]
392
+ #K_acc = {5: None, 10: None, 30: None, 100: None }
393
+ @@ -498,7 +497,7 @@ for num_samples in num_samples_area:
394
+ use_l4 = False #default for disef
395
+
396
+
397
+ - exp_name = f"{dataset}_disef_{lambda0}_{lamnda1}"
398
+ + exp_name = f"{dataset}_disef_{lambda0}_{lambda1}"
399
+ log_dir_path = f"/data/runs/{exp_name}"
400
+ ckpt_path = f"/data/checkpoints/{exp_name}"
401
+
finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378/source/versions.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "spc_commit": "96834b22d5e59c852e53d713d434cbabb2f0d165",
3
+ "qwen_commit": "393e2978d27852b0d0230d6994f37f9c15bed73c",
4
+ "official_disef_commit": "e06b55e0ffc55f1856b53797060dabae0ac6b942",
5
+ "spc_patch_sha256": "339f9b87dcfb4f64ee03d85f46056dd9946f3a8040aa7c20d704a0281db3d1ed",
6
+ "qwen_patch_sha256": "48373674607381f0a345a4da7e39eef0450c12c2e041e1293c5eb5232cc384f9",
7
+ "pets_reference_run_id": "pets_disef_spc_20261006T095342Z_69107b0a"
8
+ }
finetune_runs/caltech101_disef_spc/latest.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_id": "caltech101_disef_spc_20261006T125607Z_6c63e378",
3
+ "run_path": "finetune_runs/caltech101_disef_spc/caltech101_disef_spc_20261006T125607Z_6c63e378",
4
+ "dataset": "caltech101",
5
+ "stage": "SMOKE_PASSED",
6
+ "config_fingerprint": "9b78a04cd132811962813b6be3c7c27c8a035ada1867665de2002db123cc7f26",
7
+ "updated_at": "2026-10-06T12:58:29.139097+00:00"
8
+ }