Subash-Khanal commited on
Commit
faee25e
·
verified ·
1 Parent(s): 280b721

example defaults to JiT-H/16

Browse files
Files changed (1) hide show
  1. example_sr_op.py +4 -4
example_sr_op.py CHANGED
@@ -2,7 +2,7 @@
2
  """
3
  Genesis quick start — super-resolution + outpainting on a live Esri tile.
4
 
5
- Downloads the main JiT-B/16 checkpoints from https://huggingface.co/MVRL/genesis,
6
  fetches one real Esri World Imagery tile (Sydney Opera House / Circular Quay,
7
  zoom 16), then:
8
 
@@ -53,7 +53,7 @@ from utils.genesis_common import ( # demos/utils/genesis_common.py
53
  )
54
 
55
  HF_REPO = "MVRL/genesis"
56
- ARCH = "JiT-B/16" # main B/16 checkpoints (H/16 SR alone is 23 GB)
57
 
58
  # Fixed scenic spot: Sydney Opera House / Circular Quay waterfront.
59
  LAT, LON, ZOOM = -33.8568, 151.2153, 16 # training zoom levels are 10..19
@@ -65,8 +65,8 @@ def main() -> None:
65
 
66
  # 1. Checkpoints from the HF Hub (cached under ~/.cache/huggingface).
67
  # The main SR model is DINOv3-conditioned; the main OP model is no-DINO.
68
- sr_ckpt = hf_hub_download(HF_REPO, "main/superresolution/main_B16/sr-full-tile-stage3-step0800000.ckpt")
69
- op_ckpt = hf_hub_download(HF_REPO, "main/outpainting/main_B16/op-new-stage3-step0800000.ckpt")
70
  dino = hf_hub_download(HF_REPO, "dinov3_vitl16_pretrain_sat493m-eadcf0ff.pth")
71
 
72
  # 2. One real 256x256 Esri World Imagery tile as the input.
 
2
  """
3
  Genesis quick start — super-resolution + outpainting on a live Esri tile.
4
 
5
+ Downloads the main JiT-H/16 checkpoints from https://huggingface.co/MVRL/genesis,
6
  fetches one real Esri World Imagery tile (Sydney Opera House / Circular Quay,
7
  zoom 16), then:
8
 
 
53
  )
54
 
55
  HF_REPO = "MVRL/genesis"
56
+ ARCH = "JiT-H/16" # main H/16 checkpoints (~49 GB download; set "JiT-B/16" for the 7 GB variant)
57
 
58
  # Fixed scenic spot: Sydney Opera House / Circular Quay waterfront.
59
  LAT, LON, ZOOM = -33.8568, 151.2153, 16 # training zoom levels are 10..19
 
65
 
66
  # 1. Checkpoints from the HF Hub (cached under ~/.cache/huggingface).
67
  # The main SR model is DINOv3-conditioned; the main OP model is no-DINO.
68
+ sr_ckpt = hf_hub_download(HF_REPO, "main/superresolution/main_H16/sr-full-tile-stage3-step0800000.ckpt")
69
+ op_ckpt = hf_hub_download(HF_REPO, "main/outpainting/main_H16/op-new-stage3-step0800000.ckpt")
70
  dino = hf_hub_download(HF_REPO, "dinov3_vitl16_pretrain_sat493m-eadcf0ff.pth")
71
 
72
  # 2. One real 256x256 Esri World Imagery tile as the input.