Angelou0516 commited on
Commit
6a41b35
·
verified ·
1 Parent(s): 8831c7b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +121 -0
README.md ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - image-segmentation
5
+ tags:
6
+ - medical-imaging
7
+ - electron-microscopy
8
+ - neuroscience
9
+ - axon-segmentation
10
+ - 3d-segmentation
11
+ - connectomics
12
+ size_categories:
13
+ - 1K<n<10K
14
+ ---
15
+
16
+ # AxonEM Dataset
17
+
18
+ Large-scale 3D Axon Instance Segmentation of Brain Cortical Regions from serial section Electron Microscopy (sEM).
19
+
20
+ ## Dataset Description
21
+
22
+ AxonEM contains high-resolution electron microscopy volumes of mouse and human brain cortex tissue for axon instance segmentation.
23
+
24
+ ### Subsets
25
+
26
+ | Subset | Species | Volumes | Resolution | Original Size |
27
+ |--------|---------|---------|------------|---------------|
28
+ | Human | Homo sapiens | 9 | 30×8×8 nm | 1000×4096×4096 |
29
+ | Mouse | Mus musculus | 9 | 40×8×8 nm | 750×4096×4096 |
30
+
31
+ ### Volume Information
32
+
33
+ Each training sub-volume has shape **(90, 1536, 1536)** voxels with padding:
34
+ - Padding: 20 slices in Z, 512 pixels in Y/X (on each side)
35
+ - Annotated region: (50, 512, 512) after removing padding
36
+
37
+ ### File Structure
38
+
39
+ ```
40
+ AxonEM/
41
+ ├── EM30-H-train-9vol-pad-20-512-512/ # Human subset
42
+ │ ├── im_0-0-0_pad.h5 # Image volume
43
+ │ ├── seg_0-0-0_pad.h5 # Segmentation (instance labels)
44
+ │ └── ...
45
+ ├── EM30-M-train-9vol-pad-20-512-512/ # Mouse subset
46
+ │ ├── im_0-0-0_pad.h5
47
+ │ ├── seg_0-0-0_pad.h5
48
+ │ ├── valid_mask.h5 # Valid annotation mask
49
+ │ └── ...
50
+ └── README.md
51
+ ```
52
+
53
+ ### HDF5 Format
54
+
55
+ Each `.h5` file contains a single dataset with key `'main'`:
56
+ - **Image files** (`im_*.h5`): uint8 grayscale EM images, shape (90, 1536, 1536)
57
+ - **Segmentation files** (`seg_*.h5`): uint8 instance labels, shape (90, 1536, 1536)
58
+ - 0 = background
59
+ - 1-N = axon instance IDs
60
+
61
+ ### Loading Example
62
+
63
+ ```python
64
+ import h5py
65
+ import numpy as np
66
+
67
+ # Load a volume
68
+ with h5py.File('EM30-H-train-9vol-pad-20-512-512/im_0-0-0_pad.h5', 'r') as f:
69
+ image = f['main'][:] # (90, 1536, 1536) uint8
70
+
71
+ with h5py.File('EM30-H-train-9vol-pad-20-512-512/seg_0-0-0_pad.h5', 'r') as f:
72
+ labels = f['main'][:] # (90, 1536, 1536) uint8
73
+
74
+ # Convert to binary mask (axon vs background)
75
+ binary_mask = (labels > 0).astype(np.uint8)
76
+
77
+ # Remove padding to get annotated region
78
+ z_pad, y_pad, x_pad = 20, 512, 512
79
+ image_cropped = image[z_pad:-z_pad, y_pad:-y_pad, x_pad:-x_pad] # (50, 512, 512)
80
+ ```
81
+
82
+ ### Using with EasyMedSeg
83
+
84
+ ```python
85
+ from dataloader.axonem import AxonEMImageDataset, AxonEMVideoDataset
86
+
87
+ # Image mode (2D slices)
88
+ dataset = AxonEMImageDataset(
89
+ hf_repo_id="Angelou0516/AxonEM",
90
+ subset="human", # or "mouse"
91
+ )
92
+
93
+ # Video mode (3D volumes)
94
+ dataset = AxonEMVideoDataset(
95
+ hf_repo_id="Angelou0516/AxonEM",
96
+ subset="human",
97
+ )
98
+ ```
99
+
100
+ ## Citation
101
+
102
+ ```bibtex
103
+ @inproceedings{wei2021miccai,
104
+ title={AxonEM Dataset: 3D Axon Instance Segmentation of Brain Cortical Regions},
105
+ author={Wei, Donglai and Xu, Kisuk and Liao, Ran and Pfister, Hanspeter and
106
+ Haehn, Daniel and Bhanu, Shubham and Bhattacharyya, Chandrajit},
107
+ booktitle={International Conference on Medical Image Computing and
108
+ Computer-Assisted Intervention (MICCAI)},
109
+ year={2021}
110
+ }
111
+ ```
112
+
113
+ ## Links
114
+
115
+ - [Grand Challenge](https://axonem.grand-challenge.org/)
116
+ - [arXiv Paper](https://arxiv.org/abs/2107.05451)
117
+ - [PyTorch Connectomics](https://github.com/zudi-lin/pytorch_connectomics)
118
+
119
+ ## License
120
+
121
+ This dataset is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).