oonat commited on
Commit
170300a
·
verified ·
1 Parent(s): cc23334

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -30
README.md CHANGED
@@ -45,48 +45,67 @@ Supported backbones: **CLIP RN50**, **CLIP ViT-B/32**, **CLIP ViT-L/14**, **SigL
45
 
46
  ## Repository Layout
47
 
 
 
48
  ```
49
  data/
50
  ├── CIFAR-100/
51
- │ ├── config/
52
- │ │ ├── cifar100_classes.txt # class names
53
- │ │ └── cifar100_filtered.txt # concept vocabulary
54
  │ └── embeddings/
 
 
 
 
 
 
 
 
 
 
55
  │ └── splits/
56
- │ ├── class_split.pt # {seen_classes, unseen_classes}
57
- │ ├── RN50_seen_train_embs.pt # (N_train_seen, d)
58
- │ ├── RN50_seen_test_embs.pt # (N_test_seen, d)
59
- │ ├── RN50_unseen_test_embs.pt # (N_test_unseen, d)
60
- │ ├── seen_test_ids.pt # (N_test_seen,)
61
- │ ├── unseen_test_ids.pt # (N_test_unseen,)
62
  │ ├── ViT-B-32_seen_train_embs.pt
63
- │ ├── ...
64
- │ └── ViT-SO400M-14-SigLIP-384_unseen_test_embs.pt
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  ├── CUB-200-2011/
66
- │ ├── config/
67
- │ │ ├── cub_classes.txt
68
- │ │ └── cub_filtered.txt
69
- │ └── embeddings/splits/ ...
70
  ├── ImageNet/
71
- │ ├── config/
72
- │ │ ├── class_mapping.json
73
- │ │ ├── imagenet_classes.txt
74
- │ │ └── imagenet_filtered.txt
75
- │ └── embeddings/splits/ ...
76
  ├── ImageNet-100/
77
- │ ├── config/
78
- │ │ ├── Labels.json
79
- │ │ ├── imagenet100_classes.txt
80
- │ │ └── imagenet_filtered.txt
81
- │ └── embeddings/splits/ ...
82
  └── Places365/
83
- ├── config/
84
- │ ├── categories_places365_clean.txt
85
- │ └── places365_filtered.txt
86
- └── embeddings/splits/ ...
87
  ```
88
 
89
- All `.pt` files are standard PyTorch tensors saved with `torch.save`. Embedding tensors have shape `(N, d)` where `d` is the backbone output dimension (1024 for RN50, 512 for ViT-B/32, 768 for ViT-L/14, 1152 for SigLIP SO400M). Target tensors are `(N,)` `int64` class indices.
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
  ## Quickstart
92
 
 
45
 
46
  ## Repository Layout
47
 
48
+ Each dataset follows the same two-level structure: top-level `embeddings/` holds the **full** feature dump (all classes), and `embeddings/splits/` holds the **seen/unseen partition** used throughout the paper.
49
+
50
  ```
51
  data/
52
  ├── CIFAR-100/
 
 
 
53
  │ └── embeddings/
54
+ │ ├── RN50_train_embeddings.pt # (N_train, d) - all classes
55
+ │ ├── RN50_test_embeddings.pt # (N_test, d) - all classes
56
+ │ ├── ViT-B-32_train_embeddings.pt
57
+ │ ├── ViT-B-32_test_embeddings.pt
58
+ │ ├── ViT-L-14_train_embeddings.pt
59
+ │ ├── ViT-L-14_test_embeddings.pt
60
+ │ ├── siglip-so400m-patch14-384_train_embeddings.pt
61
+ │ ├── siglip-so400m-patch14-384_test_embeddings.pt
62
+ │ ├── train_ids.pt # (N_train,) - class indices
63
+ │ ├── test_ids.pt # (N_test,) - class indices
64
  │ └── splits/
65
+ │ ├── class_split.pt # {seen_classes, unseen_classes}
66
+ │ ├── RN50_seen_train_embs.pt
67
+ │ ├── RN50_seen_test_embs.pt
68
+ │ ├── RN50_unseen_train_embs.pt
69
+ │ ├── RN50_unseen_test_embs.pt
 
70
  │ ├── ViT-B-32_seen_train_embs.pt
71
+ │ ├── ViT-B-32_seen_test_embs.pt
72
+ │ ├── ViT-B-32_unseen_train_embs.pt
73
+ │ ├── ViT-B-32_unseen_test_embs.pt
74
+ │ ├── ViT-L-14_seen_train_embs.pt
75
+ │ ├── ViT-L-14_seen_test_embs.pt
76
+ │ ├── ViT-L-14_unseen_train_embs.pt
77
+ │ ├── ViT-L-14_unseen_test_embs.pt
78
+ │ ├── siglip-so400m-patch14-384_seen_train_embs.pt
79
+ │ ├── siglip-so400m-patch14-384_seen_test_embs.pt
80
+ │ ├── siglip-so400m-patch14-384_unseen_train_embs.pt
81
+ │ ├── siglip-so400m-patch14-384_unseen_test_embs.pt
82
+ │ ├── seen_train_ids.pt
83
+ │ ├── seen_test_ids.pt
84
+ │ ├── unseen_train_ids.pt
85
+ │ └── unseen_test_ids.pt
86
  ├── CUB-200-2011/
87
+ │ └── embeddings/ ...
 
 
 
88
  ├── ImageNet/
89
+ │ └── embeddings/ ...
 
 
 
 
90
  ├── ImageNet-100/
91
+ │ └── embeddings/ ...
 
 
 
 
92
  └── Places365/
93
+ └── embeddings/ ...
 
 
 
94
  ```
95
 
96
+ **File conventions:**
97
+
98
+ | File | Shape | Dtype | Description |
99
+ |:--|:--|:--|:--|
100
+ | `{backbone}_train_embeddings.pt` / `{backbone}_test_embeddings.pt` | `(N, d)` | `float32` | Full feature dump across all classes |
101
+ | `train_ids.pt` / `test_ids.pt` | `(N,)` | `int64` | Class indices aligned with the full embeddings above |
102
+ | `splits/class_split.pt` | `dict` | - | `{"seen_classes": [...], "unseen_classes": [...]}` |
103
+ | `splits/{backbone}_seen_train_embs.pt` etc. | `(N', d)` | `float32` | Embeddings restricted to seen/unseen classes |
104
+ | `splits/seen_train_ids.pt` etc. | `(N',)` | `int64` | Class indices for the corresponding split |
105
+
106
+ Embedding dimensions: **1024** (RN50), **512** (ViT-B/32), **768** (ViT-L/14), **1152** (SigLIP SO400M/14).
107
+
108
+ All `.pt` files are standard PyTorch tensors saved with `torch.save` and can be loaded with `torch.load(..., weights_only=True)`.
109
 
110
  ## Quickstart
111