Subash-Khanal commited on
Commit
d593e34
·
verified ·
1 Parent(s): 881bc85

model card

Browse files
Files changed (1) hide show
  1. README.md +160 -0
README.md ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: pytorch
4
+ pipeline_tag: image-to-image
5
+ tags:
6
+ - satellite-imagery
7
+ - remote-sensing
8
+ - super-resolution
9
+ - image-outpainting
10
+ - flow-matching
11
+ - generative-model
12
+ ---
13
+
14
+ # Genesis
15
+
16
+ **A Generative Engine for Hierarchical Satellite Image Synthesis** — ACM SIGSPATIAL 2026.
17
+
18
+ [![Project Page](https://img.shields.io/badge/Project-Page-2ea44f)](https://subash-khanal.github.io/genesis)
19
+ ![arXiv](https://img.shields.io/badge/arXiv-coming%20soon-b31b1b)
20
+ [![Code](https://img.shields.io/badge/GitHub-Code-181717?logo=github)](https://github.com/subash-khanal/genesis)
21
+
22
+ ![Genesis: sparse seed tiles → full multi-scale quadtree](assets/task.png)
23
+
24
+ Genesis completes a sparse set of seed satellite tiles into a full, zoomable Web-Mercator
25
+ **quadtree** — filling every scale and location. Two flow-matching *JiT* operators do the work: a
26
+ **parent-conditional super-resolution** model (one 256×256 parent tile → the 512×512 mosaic of its
27
+ four children, one zoom level down) and a **mask-based outpainting** model (256×256 completion
28
+ under quadrant masks). Composed into a pyramid engine, they bring the seeds to a common working
29
+ level, greedily outpaint to complete that level, super-resolve down to the leaf tiles, and fill the
30
+ coarser levels by downsampling — yielding a pyramid that is consistent across scales and honors
31
+ every seed. Models are trained on the Git-10M global tile corpus.
32
+
33
+ *Subash Khanal, Yangzhi Cui, Daniel Cher, Eric Xing, Brian Wei, Srikumar Sastry, Nathan Jacobs —
34
+ Washington University in St. Louis.*
35
+
36
+ ![The Genesis pyramid-completion pipeline](assets/pipeline.png)
37
+
38
+ ## Checkpoints
39
+
40
+ All models sample with **50 flow-matching steps, cfg = 1.0** (the paper eval setting) and load
41
+ **EMA** weights. Main runs are trained to 800k steps; the SR ablation grid (JiT-B/16) to 500k,
42
+ toggling {DINOv3 conditioning on/off} × {LPIPS loss on/off}. The main SR models are
43
+ DINOv3-conditioned (+LPIPS); the main outpainting models are no-DINO.
44
+
45
+ | Path | Model / arch | Size | Train steps | What it's for |
46
+ |---|---|---:|---:|---|
47
+ | `main/superresolution/main_B16/sr-full-tile-stage3-step0800000.ckpt` | SR · JiT-B/16 | 3.3 GB | 800k | **Main SR** (DINOv3 + LPIPS), 256→512 |
48
+ | `main/superresolution/main_H16/sr-full-tile-stage3-step0800000.ckpt` | SR · JiT-H/16 | 23 GB | 800k | **Main SR**, largest model |
49
+ | `main/outpainting/main_B16/op-new-stage3-step0800000.ckpt` | OP · JiT-B/16 | 3.6 GB | 800k | **Main outpainting** (no-DINO, quadrant masks) |
50
+ | `main/outpainting/main_H16/op-new-stage3-step0800000.ckpt` | OP · JiT-H/16 | 26 GB | 800k | **Main outpainting**, largest model |
51
+ | `ablations/abl_nodino_nolpips/sr-full-tile-stage3-step0500000.ckpt` | SR · JiT-B/16 | 3.2 GB | 500k | Ablation: DINOv3 off · LPIPS off |
52
+ | `ablations/abl_dino_nolpips/sr-full-tile-stage3-step0500000.ckpt` | SR · JiT-B/16 | 3.3 GB | 500k | Ablation: DINOv3 on · LPIPS off |
53
+ | `ablations/abl_nodino_lpips/sr-full-tile-stage3-step0500000.ckpt` | SR · JiT-B/16 | 3.2 GB | 500k | Ablation: DINOv3 off · LPIPS on |
54
+ | `ablations/abl_dino_lpips/sr-full-tile-stage3-step0500000.ckpt` | SR · JiT-B/16 | 3.3 GB | 500k | Ablation: DINOv3 on · LPIPS on |
55
+ | `shared/git10m_quad_meta.json` | metadata | 1.7 GB | — | Git-10M split metadata (paper eval) |
56
+ | `shared/hierarchy_index_quad.pkl` | metadata | 0.6 GB | — | Parent↔child quadtree index (paper eval) |
57
+ | `dinov3_vitl16_pretrain_sat493m-eadcf0ff.pth` | DINOv3 ViT-L/16 (SAT-493M) | 1.2 GB | — | Frozen conditioning encoder for SR |
58
+ | `example_sr_op.py` | script | — | — | Runnable quick start (below) |
59
+
60
+ ## Quick start
61
+
62
+ Install the code repo (checkpoints download from this HF repo automatically):
63
+
64
+ ```bash
65
+ git clone https://github.com/subash-khanal/genesis && cd genesis
66
+ uv sync && source .venv/bin/activate # Python 3.13, torch 2.8 cu128
67
+ ```
68
+
69
+ Then run one SR ×2 pass and one quadrant-outpainting pass on a **live Esri World Imagery tile**
70
+ (the Sydney Opera House waterfront at zoom 16 serves as the dummy input — the script fetches it
71
+ over the network):
72
+
73
+ ```python
74
+ import os, sys
75
+ sys.path.insert(0, "src")
76
+ sys.path.insert(0, "demos") # demos/ last = highest priority (its utils/ package must win)
77
+
78
+ from huggingface_hub import hf_hub_download
79
+ from PIL import Image
80
+ from utils.genesis_common import (
81
+ fetch_tile_at_zoom, inference_device,
82
+ load_sr_denoiser, load_op_denoiser,
83
+ run_superresolution, run_outpainting,
84
+ )
85
+
86
+ device = inference_device() # cuda if available, else cpu
87
+
88
+ sr_ckpt = hf_hub_download("MVRL/genesis", "main/superresolution/main_B16/sr-full-tile-stage3-step0800000.ckpt")
89
+ op_ckpt = hf_hub_download("MVRL/genesis", "main/outpainting/main_B16/op-new-stage3-step0800000.ckpt")
90
+ dino = hf_hub_download("MVRL/genesis", "dinov3_vitl16_pretrain_sat493m-eadcf0ff.pth")
91
+
92
+ lat, lon, zoom = -33.8568, 151.2153, 16
93
+ tile = fetch_tile_at_zoom(lon, lat, zoom) # one real 256×256 Esri tile
94
+
95
+ # SR: z16 parent → 512×512 mosaic of its four z17 children (steps=50, cfg=1.0 defaults)
96
+ sr_model, _ = load_sr_denoiser(sr_ckpt, "JiT-B/16", dino_weights=dino, device=device)
97
+ run_superresolution(sr_model, tile, device, target_zoom=zoom + 1).save("genesis_sr_out.png")
98
+
99
+ # OP: keep the upper-left quadrant real, outpaint the other three (white = hole)
100
+ mask = Image.new("L", (256, 256), 255)
101
+ mask.paste(0, (0, 0, 128, 128))
102
+ op_model, _ = load_op_denoiser(op_ckpt, "JiT-B/16", dino_weights="", device=device)
103
+ run_outpainting(op_model, tile, mask, device, tile_zoom=zoom).save("genesis_op_out.png")
104
+ ```
105
+
106
+ Or as a one-liner — download [`example_sr_op.py`](example_sr_op.py) from this repo into the
107
+ checkout root and run:
108
+
109
+ ```bash
110
+ python example_sr_op.py
111
+ ```
112
+
113
+ > Live imagery: Esri World Imagery — Source: Esri, Maxar, Earthstar Geographics, and the GIS User
114
+ > Community.
115
+
116
+ ## Demos
117
+
118
+ Interactive Gradio apps live in the code repo — see
119
+ [`demos/README.md`](https://github.com/subash-khanal/genesis/blob/main/demos/README.md).
120
+ The main one is the **full-pyramid builder** (`demos/app_pyramid_unified.py`): click a satellite
121
+ map to drop sparse seed tiles and watch Genesis complete an entire 4-level quadtree live,
122
+ tile-by-tile, with a stitched-PNG download. Companion apps cover single-tile 256→512 SR, quadrant
123
+ outpainting, a large lateral-outpainting grid, a deep 6-level pyramid, and no-model interpolation
124
+ baselines.
125
+
126
+ ## Reproduce the paper
127
+
128
+ One command per paper table — see
129
+ [`docs/EVALUATION.md`](https://github.com/subash-khanal/genesis/blob/main/docs/EVALUATION.md)
130
+ in the code repo:
131
+ `bash src/eval/run_all_sr.sh` · `run_all_op.sh` · `run_all_ablation.sh` · `run_all_dense500.sh`,
132
+ each with the paper-exact defaults baked in.
133
+
134
+ ## Citation
135
+
136
+ ```bibtex
137
+ @inproceedings{khanal2026genesis,
138
+ title = {{Genesis}: A Generative Engine for Hierarchical Satellite Image Synthesis},
139
+ author = {Khanal, Subash and Cui, Yangzhi and Cher, Daniel and Xing, Eric and
140
+ Wei, Brian and Sastry, Srikumar and Jacobs, Nathan},
141
+ booktitle = {ACM SIGSPATIAL International Conference on Advances in
142
+ Geographic Information Systems (SIGSPATIAL)},
143
+ year = {2026},
144
+ }
145
+ ```
146
+
147
+ ## License & acknowledgments
148
+
149
+ The Genesis code and checkpoints are released under the **MIT License** (see the
150
+ [code repo](https://github.com/subash-khanal/genesis)).
151
+
152
+ `dinov3_vitl16_pretrain_sat493m-eadcf0ff.pth` is the satellite-pretrained (SAT-493M) ViT-L/16
153
+ encoder from Meta AI's [DINOv3](https://github.com/facebookresearch/dinov3) release, redistributed
154
+ here unmodified for convenience; it remains governed by Meta's DINOv3 license, not MIT. At
155
+ inference the SR model loads it via `torch.hub.load('facebookresearch/dinov3', 'dinov3_vitl16',
156
+ weights=...)`.
157
+
158
+ Training data comes from the [Git-10M](https://huggingface.co/datasets/lcybuaa/Git-10M) global
159
+ satellite-tile corpus. Demo/example imagery is fetched live from Esri World Imagery (attribution
160
+ above).