Skip to content

About

No description, website, or topics provided.

Resources

Stars

14 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

ControlEarth

ControlEarth: Controllable Ultra-High-Resolution Image Generation for Earth Observation

Ziqi Ye, Zepeng Xin, Zhen Zou, Danfeng Li, Ziyang Gong, Hongruixuan Chen, Di Wang, Xiaoxing Hu, Dongshuo Yin, Zhihang Zhong, Yue Zhou, Xiangyong Cao, Xue Yang, Yansheng Li, Haifeng Li, Feng Xu, Haipeng Wang, Junchi Yan

Official Site GitHub Hugging Face Read the ControlEarth paper on arXiv GitHub stars

This is the official repository for ControlEarth. Given a semantic layout, ControlEarth generates an entire 4096 × 4096 image on a single latent canvas, preserving the arrangement of regions while synthesizing the detail within them.

ControlEarth project film: a semantic layout turns into an image, then the view pulls back from a city to a globe
掌间绘山河,一图生万象
Watch the full-resolution project film ↗

📢 News

🌍 Overview

A scene can look convincing from a distance even when a road breaks at an intersection or a small object disappears. ControlEarth takes a semantic layout as input and generates the full scene at 4096 × 4096 pixels. The teaser illustrates why both scales matter: the layout defines the overall scene structure, and the enlarged crop shows that even small vehicles appear in their prescribed locations.

ControlEarth teaser: layout control, direct 4K synthesis and six downstream uses

🗂️ Building ControlEarth-4K

The pipeline starts with large aerial and satellite images. After cropping them into 4K scenes and screening out unsuitable images, dense semantic predictions are combined with instance masks and available original labels. The final review checks the resulting pairs for errors such as water being assigned to bare ground. The dataset contains 161,012 image–layout pairs.

ControlEarth-4K construction: image collection and filtering, annotation and label fusion, then review and assembly

🧭 What does layout control preserve?

Region text identifies what belongs in a region; the structural condition specifies where it belongs. In the framework below, the generator updates a single latent canvas and decodes it into a 4K image. Panels (b) and (c) show how layout masks connect text to image regions and how each image query combines visual context from the full scene with text from its own region.

ControlEarth framework with semantic and structural conditioning and regional hybrid attention

Qualitative comparison

Read each row from the input layout on the left to the real reference on the right. Across the four baselines and ControlEarth, compare the same road junctions, building footprints and vegetation boundaries. The callouts identify missing objects, misplaced categories and color shifts that are easy to overlook at scene scale.

Matched layouts, four competing generators, ControlEarth and real reference images

The paired crops below give a closer view of the generated and real scenes at the same locations.

ControlEarth images and real references, with corresponding local crops

📊 Results

Against 26 competing methods, ControlEarth achieves the best result on 10 of 12 metrics, including a tie on CLIP-I. FID compares image distributions; mIoU measures semantic agreement with the input layout. In the figure, bubble area encodes SO-mIoU.

Generation comparison by FID, mIoU and small-object mIoU

Explore all 12 generation metrics

Each row is one generator. Arrows indicate the preferred direction; TFR and DDR are ranked by their distance from 1. Bold marks the best value and underlining marks the next distinct value, including ties. An asterisk marks direct native 4K support. A dash (—) indicates that the metric could not be computed for that method.

Model FID ↓ KID ↓ PSNR ↑ SSIM ↑ FSIM ↑ LPIPS ↓ DISTS ↓ CLIP-I ↑ mIoU ↑ TFR → 1 DDR → 1 SO-mIoU ↑
FLUX.2-Max 98.22 0.071 12.25 0.236 0.597 0.626 0.321 0.796 27.16 1.073 0.850 12.95
FLUX.3-image* 73.67 0.047 12.26 0.202 0.572 0.667 0.343 0.797 38.17 1.944 0.575 9.35
Vidu Q2 113.05 0.084 10.24 0.312 0.570 0.678 0.367 0.791 19.25 0.612 1.226 8.19
Seedream 4.5* 70.44 0.043 10.92 0.300 0.579 0.665 0.343 0.790 18.07 0.588 1.090 10.59
Seedream 5.0* 65.90 0.040 10.89 0.291 0.582 0.679 0.357 0.790 17.26 0.680 1.084 3.26
Nano Banana 127.85 0.106 11.96 0.319 0.593 0.742 0.365 0.798 16.70 — — 3.36
Nano Banana 2* 68.26 0.045 11.94 0.323 0.580 0.613 0.302 0.820 33.94 0.938 0.839 22.41
Nano Banana Pro* 72.26 0.049 11.61 0.301 0.572 0.623 0.304 0.813 31.10 1.061 0.816 15.84
Nano Banana 2.1* 66.64 0.044 12.06 0.311 0.584 0.609 0.294 0.828 37.74 0.932 0.835 22.81
GPT-Image-1.5 92.70 0.074 11.34 0.273 0.563 0.803 0.382 0.807 11.67 — — 1.72
GPT-Image-2 75.24 0.052 12.62 0.299 0.604 0.574 0.292 0.833 31.34 0.781 0.886 32.27
GPT-Image-2.5-F 97.52 0.073 12.62 0.295 0.592 0.602 0.299 0.828 26.60 0.817 0.850 24.13
GPT-Image-2.5-S 84.10 0.063 13.05 0.301 0.604 0.567 0.283 0.845 38.69 0.945 0.859 31.56
SenseNova-U1* 132.96 0.110 11.25 0.210 0.545 0.709 0.432 0.768 9.90 1.350 0.760 0.43
SenseNova-U1.5* 105.78 0.076 11.59 0.235 0.538 0.679 0.397 0.787 13.21 1.785 0.875 3.95
DreamOmni 310.49 0.319 12.29 0.276 0.598 0.777 0.544 0.742 32.17 — — 11.33
FLUX.2-dev 155.75 0.123 11.48 0.279 0.616 0.727 0.438 0.781 17.15 0.267 1.155 1.85
FLUX.2-Klein-9B 98.06 0.078 13.28 0.319 0.596 0.621 0.321 0.819 17.93 0.463 1.044 8.53
FLUX.2-Klein-4B 106.93 0.083 12.16 0.247 0.590 0.621 0.352 0.811 15.72 0.873 0.895 4.32
Qwen-Edit-2511 84.75 0.053 10.71 0.267 0.549 0.775 0.413 0.777 5.87 0.579 1.206 0.92
Uni-ControlNet 47.79 0.043 13.27 0.302 0.615 0.593 0.281 0.811 31.17 — — 17.63
CRS-Diff 45.17 0.041 13.21 0.299 0.611 0.593 0.280 0.881 35.72 — — 20.67
OF-Diff 35.21 0.020 12.97 0.315 0.617 0.582 0.276 0.765 37.26 — — 22.75
Text2Earth + CN 102.05 0.083 12.69 0.268 0.564 0.638 0.379 0.771 6.75 — — 0.37
Seg2Any 34.41 0.017 13.02 0.297 0.625 0.533 0.248 0.895 38.27 — — 29.22
Diffusion-4K* + CN 149.47 0.116 10.88 0.349 0.588 0.597 0.343 0.785 22.96 1.075 1.359 19.25
ControlEarth* 20.85 0.005 14.08 0.322 0.629 0.509 0.231 0.895 43.36 0.941 1.019 35.77

Radar overview

The radar plot compares selected generators across the same 12 metrics. Follow one curve around the plot to see where its strengths lie.

Radar profiles of selected generators across 12 metrics

🛰️ Six downstream applications

Figure 10 pairs each task's input with the image generated from it. In the top row, a dense layout assigns semantic categories, an object layout locates detection targets, and a scene description specifies the scene category. In the bottom row, binary masks specify building footprints, road networks and flooded regions. The conditions supply the supervision for the corresponding synthetic training examples.

Figure 10: conditioning inputs and generated examples for segmentation, detection, scene classification, building extraction, road extraction and flood detection

See the downstream augmentation results on the project page.

🚀 Getting started

Environment

Start in an isolated Python environment with a CUDA-compatible PyTorch and torchvision installation. From the repository root, install the Python dependencies:

python -m pip install -r requirements.txt

The tested Python, PyTorch and CUDA versions will accompany the training release.

Dataset

Download ControlEarth-4K into data/ at the repository root (ControlEarth/data/) and extract the tar shards for the splits you need. In each stage YAML, set image_root and segm_root to the corresponding images/ and grayscale labels/ directories.

Training

Run the contour recipe in three stages: 0 (1024 × 1024), 1 (2048 × 2048), then 2 (4096 × 4096). From the repository root, set the image, label, tokenizer, base model and output paths for your installation. Before starting stages 1 and 2, point resume_from_checkpoint to the intended checkpoint from the previous stage.

STAGE=0  # Run again with 1, then 2, after the preceding stage completes.
accelerate launch \
  --config_file config/accelerate_default_config_8h200.yaml \
  --num_processes=8 \
  train.py \
  "config/controlearth_flux2_stage${STAGE}_contour.yaml"

Inference

For 4K generation, use the stage 2 configuration and the matching trained checkpoint. Set data.val to the layouts to evaluate and choose a fresh output directory.

STAGE=2
CHECKPOINT="your_path_to/ControlEarth/ckpt/your_checkpoint"
accelerate launch \
  --config_file config/accelerate_default_config_8h200.yaml \
  --num_processes=8 \
  eval/generate_image.py \
  "config/controlearth_flux2_stage${STAGE}_contour.yaml" \
  --eval.num_images_per_prompt=1 \
  --eval.guidance_scale=3.5 \
  --resume_from_checkpoint="${CHECKPOINT}" \
  --project.gen_image_dir="gen_imgs/stage${STAGE}_contour"

☑️ Todo list

  • Publish the ControlEarth paper
  • Release the ControlEarth training and inference code
  • Release the complete ControlEarth-4K dataset on HuggingFace
  • Launch the ControlEarth project homepage
  • Further training of the model on the ControlEarth-4K dataset.

✉️ Contact

If you have any questions regarding this project, the thesis, the code or the data, please feel free to contact me. I would also be delighted to discuss and exchange ideas with you.

Email: ye.ziqi19@foxmail.com · WeChat: yzq825315158

📄 License

The repository code is released under the MIT License. The ControlEarth-4K dataset is licensed under CC BY-NC-SA 4.0.

📜 Citation

@misc{controlearth,
  title  = {ControlEarth: Controllable Ultra-High-Resolution Image Generation for Earth Observation},
  author = {Ye, Ziqi and Xin, Zepeng and Zou, Zhen and Li, Danfeng and
            Gong, Ziyang and Chen, Hongruixuan and Wang, Di and Hu, Xiaoxing and
            Yin, Dongshuo and Zhong, Zhihang and Zhou, Yue and Cao, Xiangyong and
            Yang, Xue and Li, Yansheng and Li, Haifeng and Xu, Feng and
            Wang, Haipeng and Yan, Junchi},
  year = {2026},
  eprint = {2612.06315},
  archivePrefix = {arXiv},
  primaryClass = {cs.CV},
  url = {https://arxiv.org/abs/2612.06315}
}

About

No description, website, or topics provided.

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages