johnpolat commited on
Commit
75cc41b
·
verified ·
1 Parent(s): 5d7bf7e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +114 -3
README.md CHANGED
@@ -1,3 +1,114 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - reinforcement-learning
5
+ tags:
6
+ - stem-microscopy
7
+ - electron-microscopy
8
+ - materials-science
9
+ - gymnasium
10
+ - benchmark
11
+ - dose-efficiency
12
+ pretty_name: STEMGym
13
+ size_categories:
14
+ - 1K<n<10K
15
+ ---
16
+
17
+ # STEMGym: Benchmark Data for Dose-Efficient Autonomous STEM Microscopy
18
+
19
+ This dataset accompanies the [STEMGym](https://github.com/KurbanIntelligenceLab/STEMGym) benchmark — a Gymnasium-based environment for evaluating autonomous dose-efficient scanning transmission electron microscopy (STEM) agents.
20
+
21
+ ## Dataset Description
22
+
23
+ STEMGym provides simulated STEM specimens as HDF5 world files. Each world contains:
24
+
25
+ - **Overview image**: Low-magnification survey of the full specimen
26
+ - **Tile grid**: High-resolution STEM images (128×128 px tiles, 4px overlap, stride=124) arranged in an 8×8 grid
27
+ - **Ground truth annotations**: Atom positions, defect types, and phase maps for scoring
28
+ - **Metadata**: Pixel size, accelerating voltage, detector geometry, material parameters
29
+
30
+ ### Materials
31
+
32
+ | Material | Description | Defect Types |
33
+ |----------|-------------|-------------|
34
+ | SrTiO₃ | Perovskite oxide | O vacancies, Sr vacancies, Ti antisites |
35
+ | BaTiO₃ | Ferroelectric perovskite | O vacancies, Ba vacancies, domain boundaries |
36
+ | SiGe | Semiconductor alloy | Ge substitutions, strain fields |
37
+
38
+ ### Difficulty Levels
39
+
40
+ Each material is provided at three difficulty levels (easy, medium, hard) controlling defect density, noise level, and spatial distribution.
41
+
42
+ ## Files
43
+
44
+ ### Simulated Worlds (`worlds/`)
45
+
46
+ | File | Material | Difficulty | Size |
47
+ |------|----------|-----------|------|
48
+ | `test_world.h5` | Synthetic (Gaussian blobs) | — | ~5 MB |
49
+ | `srtio3_easy.h5` | SrTiO₃ | Easy | ~50 MB |
50
+ | `srtio3_medium.h5` | SrTiO₃ | Medium | ~50 MB |
51
+ | `srtio3_hard.h5` | SrTiO₃ | Hard | ~50 MB |
52
+ | `batio3_easy.h5` | BaTiO₃ | Easy | ~50 MB |
53
+ | `batio3_medium.h5` | BaTiO₃ | Medium | ~50 MB |
54
+ | `batio3_hard.h5` | BaTiO₃ | Hard | ~50 MB |
55
+ | `sige_easy.h5` | SiGe | Easy | ~50 MB |
56
+ | `sige_medium.h5` | SiGe | Medium | ~50 MB |
57
+ | `sige_hard.h5` | SiGe | Hard | ~50 MB |
58
+
59
+ ### Model Checkpoints (`checkpoints/`)
60
+
61
+ | File | Model | Description | Size |
62
+ |------|-------|-------------|------|
63
+ | `atom_finder.pt` | AtomFinderUNet | Atomic column detection ensemble (3 members) | ~88 MB |
64
+ | `defect_classifier.pt` | DefectClassifierCNN | Defect type classification | ~1.4 MB |
65
+ | `phase_identifier.pt` | PhaseIdentifierResNet | Material phase identification | ~7.4 MB |
66
+
67
+ ## HDF5 World Format
68
+
69
+ Each world file follows this layout:
70
+
71
+ ```
72
+ /metadata/
73
+ pixel_size_nm # Physical pixel size
74
+ tile_size_px # Tile dimensions (128)
75
+ tile_overlap_px # Overlap between tiles (4)
76
+ grid_rows, grid_cols # Grid dimensions
77
+ accelerating_voltage # Beam energy (keV)
78
+ convergence_angle # Probe convergence (mrad)
79
+ detector_inner/outer # HAADF detector angles (mrad)
80
+ /overview # Low-magnification survey image
81
+ /tiles/{row}_{col} # High-resolution tile images
82
+ /ground_truth/
83
+ atom_positions # (N, 3) array: x, y, atomic_number
84
+ defect_types # (M, 4) array: x, y, type_id, severity
85
+ phase_map # 2D array: phase labels per pixel
86
+ /valid_region # Boolean mask of valid scan area
87
+ ```
88
+
89
+ ## Usage
90
+
91
+ ```bash
92
+ # Install STEMGym
93
+ pip install -e .
94
+
95
+ # Download this data
96
+ python scripts/download_data.py
97
+
98
+ # Run a benchmark
99
+ stemgym run --agent raster_equipped --task defect_census --world srtio3_medium --seeds 3
100
+ ```
101
+
102
+ ## License
103
+
104
+ This dataset is released under the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) license.
105
+
106
+ ## Citation
107
+
108
+ ```bibtex
109
+ @inproceedings{stemgym2026,
110
+ title={STEMGym: A Benchmark for Dose-Efficient Autonomous STEM Microscopy},
111
+ author={Polat, John},
112
+ year={2026}
113
+ }
114
+ ```