callmezuy commited on
Commit
7d05fdd
·
verified ·
1 Parent(s): 9e5204b

Data v0: card Features section (VG features merged)

Browse files
Files changed (1) hide show
  1. README.md +22 -8
README.md CHANGED
@@ -27,7 +27,7 @@ Code: [github.com/callmezuy/Geometry-MMKG](https://github.com/callmezuy/Geometry
27
  | test | 137,984 | 176,343 |
28
 
29
  1,441,984 entities in `entity2id.txt` (every box of `VG-SGG.h5`; entity id = box index, so most boxes are in no
30
- triple), 50 relations, 108,073 images.
31
 
32
  ## Sources and cleaning
33
 
@@ -41,11 +41,26 @@ triple), 50 relations, 108,073 images.
41
 
42
  ## Features
43
 
44
- **Not in this commit yet.** The v0 features (`ent_rgb_emb.pt`, `ent_depth_emb.pt`, `ent_text_emb.pt`,
45
- `ent_img_mask.pt`, `ent_fill.pt`, `feature_stats.json`, `feature_quality.json`) are being extracted with
46
- `notebooks/extract-vg-features.py` and will be added before the tag `v0` is created. Same recipe as
47
- `callmezuy/spatial-vrd`: DINOv2-base on the box crop (rgb), ZipDepth depth map of the whole image cropped to the box
48
- and encoded by DINOv2-base (depth), RoBERTa-base on the class name (text). This repo has no mean / concat tables.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  ## File formats
51
 
@@ -56,8 +71,7 @@ and encoded by DINOv2-base (depth), RoBERTa-base on the class name (text). This
56
 
57
  ## Versions
58
 
59
- `v0` is the first version of this repo (earlier repos with this name were deleted); the tag is created once the
60
- features are in. Pin it with `snapshot_download("callmezuy/spatial-vg", repo_type="dataset", revision="v0")`.
61
 
62
  ## License
63
 
 
27
  | test | 137,984 | 176,343 |
28
 
29
  1,441,984 entities in `entity2id.txt` (every box of `VG-SGG.h5`; entity id = box index, so most boxes are in no
30
+ triple), 50 relations, 108,073 images (105,814 of them have at least one box).
31
 
32
  ## Sources and cleaning
33
 
 
41
 
42
  ## Features
43
 
44
+ `*.pt`, float32, row i = entity id i of `entity2id.txt`. Extracted on Molab with `notebooks/extract-vg-features.py`
45
+ (`scripts/extract_features.py vg`, 105,814 images that have at least one box), same recipe as `callmezuy/spatial-vrd`.
46
+
47
+ | File | Shape | Content |
48
+ |---|---|---|
49
+ | `ent_rgb_emb.pt` | [1441984, 768] | DINOv2-base pooler output of the box crop |
50
+ | `ent_depth_emb.pt` | [1441984, 768] | ZipDepth (base, 384 px, per-image min-max) depth map of the whole image, box region cropped (roi_align) -> DINOv2-base pooler |
51
+ | `ent_text_emb.pt` | [1441984, 768] | RoBERTa-base masked mean of `entity2text.txt` (the class name: only 150 distinct strings) |
52
+ | `ent_img_mask.pt` | [1441984] bool | True = entity has a usable box |
53
+ | `ent_fill.pt` | dict | vectors written into the rows of entities without a usable box |
54
+
55
+ 6 boxes (ids 77901, 77906, 77908, 77914, 77915, 77916, all of image index 5763) lie entirely outside their image
56
+ (annotation error); they are treated as missing and filled with the mean rgb / depth feature of the 389,410 train
57
+ entities that have a box. This repo has **no** mean / concat tables (compute `(rgb + depth) / 2` or `[rgb, depth]`
58
+ from the two tables if needed).
59
+
60
+ Quality (`feature_quality.json`; linear probe of the 150 object classes on 30,000 entities, majority class 8.2%):
61
+ rgb 40.1%, depth 13.6%, text 100% (the text is the class name). Mean pairwise cosine: rgb 0.066, depth 0.348,
62
+ text 0.986. The 10 nearest neighbours of depth and of rgb overlap by 1.5% (chance 0.005%).
63
+ `feature_stats.json`, `extract.log` and `quality.log` record the run (code commit, ZipDepth commit, timings).
64
 
65
  ## File formats
66
 
 
71
 
72
  ## Versions
73
 
74
+ `v0` (18/11/2026) is the first version of this repo (earlier repos with this name were deleted). Pin it with `snapshot_download("callmezuy/spatial-vg", repo_type="dataset", revision="v0")`.
 
75
 
76
  ## License
77