Add segclr_inputs/: per-token JSONs for SegCLR lookup (clean+merge train)
Browse files
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
segclr_inputs/segclr_inputs_clean_train.json filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
segclr_inputs/segclr_inputs_merge_train.json filter=lfs diff=lfs merge=lfs -text
|
segclr_inputs/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# `segclr_inputs/` — staging JSONs for SegCLR lookup
|
| 2 |
+
|
| 3 |
+
Per-token info for **MERGER FREE** training samples, formatted so a
|
| 4 |
+
SegCLR maintainer can pull one embedding per token without needing
|
| 5 |
+
to touch the raw NPZ training data.
|
| 6 |
+
|
| 7 |
+
## Files
|
| 8 |
+
|
| 9 |
+
| File | n_samples | size | type |
|
| 10 |
+
|---|---|---|---|
|
| 11 |
+
| `segclr_inputs_clean_train.json` | 41,005 | 99 MB | B-clean (single root per sample) |
|
| 12 |
+
| `segclr_inputs_merge_train.json` | 188,812 | 584 MB | A-merge (two roots per sample, per-token y_part) |
|
| 13 |
+
|
| 14 |
+
## Schema
|
| 15 |
+
|
| 16 |
+
```json
|
| 17 |
+
{
|
| 18 |
+
"kind": "B-clean" | "A-merge",
|
| 19 |
+
"n_samples": <int>,
|
| 20 |
+
"samples": [
|
| 21 |
+
{
|
| 22 |
+
"source_npz": "...", // training-data NPZ
|
| 23 |
+
"op_id": 39183, // sample id (B) or merge op id (A)
|
| 24 |
+
"fov_center_um": [x, y, z],
|
| 25 |
+
"n_tokens": 20,
|
| 26 |
+
|
| 27 |
+
// B-clean: single root_id at sample level
|
| 28 |
+
"root_id": 864691136176785158,
|
| 29 |
+
|
| 30 |
+
// A-merge: two roots + post-merge proofread root
|
| 31 |
+
"root_a": 864...,
|
| 32 |
+
"root_b": 864...,
|
| 33 |
+
"proofread_root": 864...,
|
| 34 |
+
|
| 35 |
+
"tokens": [
|
| 36 |
+
{
|
| 37 |
+
"token_idx": 0,
|
| 38 |
+
"abs_um": [x, y, z], // absolute world coords (µm)
|
| 39 |
+
"rel_um": [x, y, z], // relative to fov_center_um
|
| 40 |
+
"root_id": 864..., // per-token root assignment
|
| 41 |
+
"sv_id": "100497...", // A-merge only: supervoxel id (uint64 → str)
|
| 42 |
+
"y_part": 1 // A-merge only: 0=root_a, 1=root_b, -1=ignore
|
| 43 |
+
},
|
| 44 |
+
...
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
...
|
| 48 |
+
]
|
| 49 |
+
}
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Notes for SegCLR lookup
|
| 53 |
+
|
| 54 |
+
- **A-merge tokens already have `sv_id`** — direct SegCLR embedding
|
| 55 |
+
lookup, no CAVE chunkedgraph resolution needed.
|
| 56 |
+
- **B-clean tokens have only `root_id` + `abs_um`** — SV resolution
|
| 57 |
+
via CAVE is required before SegCLR lookup. Happy to do this on
|
| 58 |
+
our side if it saves you time; let me know.
|
| 59 |
+
- `abs_um` is in microns (1 µm = 250 voxels in xy at 4nm, 25 voxels
|
| 60 |
+
in z at 40nm).
|
| 61 |
+
- Datastack: `minnie65_public`.
|
| 62 |
+
|
| 63 |
+
## Direct download
|
| 64 |
+
|
| 65 |
+
```
|
| 66 |
+
https://huggingface.co/datasets/FumingY/MergeFree/resolve/main/segclr_inputs/segclr_inputs_clean_train.json
|
| 67 |
+
https://huggingface.co/datasets/FumingY/MergeFree/resolve/main/segclr_inputs/segclr_inputs_merge_train.json
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## What we'd like back
|
| 71 |
+
|
| 72 |
+
One SegCLR embedding (float32) per token, joinable back via
|
| 73 |
+
`(sample.op_id, token.token_idx)`. NPZ / parquet / per-sample JSON
|
| 74 |
+
all fine.
|
segclr_inputs/segclr_inputs_clean_train.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24392189c9df25601194bd637fa05d6e0e16a81baa36f31ad65b5903a804276a
|
| 3 |
+
size 99290689
|
segclr_inputs/segclr_inputs_merge_train.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c62ac5c31ce397cf41efc9b8cd702e2f7660bfa035a675354cb0f22055e7869
|
| 3 |
+
size 583886576
|