[ICCV'25] AM-Adapter: Appearance Matching Adapter for Exemplar-based Semantic Image Synthesis in-the-Wild
Siyoon Jin1, Jisu Nam1, Jiyoung Kim1, Dahyun Chung2,
Yeong-Seok Kim3, Joonhyung Park3, HeonJeong Chu3, Seungryong Kim1
1 KAIST AI 2 Korea University 3 Hyundai Mobis
conda create -n am_adapter python=3.10
cd AM-Adapter
pip install -r requirements.txt
cd diffusers
pip install -e .
cd ..We will release the checkpoints soon!
Download UNet, ControlNeXt and AM-Adapter checkpoints from the following URLs:
| Model | Checkpoint |
|---|---|
| UNet | model_1.safetensors |
| ControlNeXt | model.safetensors |
| AM-Adapter | matcher-25000.pth |
Please follow dataset preparation
Modify the configuration file : configs/inference_adapter.yaml
(1) Update the following paths to point to the corresponding checkpoint files :
pretrained_unet_pathnet.appearance_unet_pathnet.semantic_unet_pathnet.controlnext_pathnet.matcher_path
(2) Set output_dir to define the directory where the results will be saved.
(3) Set validation.validation_real_root_path to the BDD100K image directory and
set validation.validation_seg_root_path to the BDD100K label directory
# e.g.
validation:
validation_seg_root_path : "/path/to/bdd100k/labels/sem_seg/colormaps"
validation_real_root_path : "/path/to/bdd100k/images/10k/val"
-
Using Retreived Pairs from BDD100K
(1) Set
validation.versionto"retrieval"and specify the path to the retrieval JSON file invaldiation.retrieval_json_path.(2) Run the inference:
python inference.py -
Inference on Individual Samples
(1) Set
validation.versionto "individual"(2) Define the paths to real images(exemplars) and segmentation images(target):
validation.real_pathsvalidation.seg_paths
(3) Run the inference:
python inference.pyNote that,
$M$ exemplars and$N$ segmentation maps together produces$MN$ results.
To view (appearance, target, result) side by side, set validation.save_type to "triplet".
If you only want to save the result, change it to "result_only".
@misc{jin2025appearancematchingadapterexemplarbased,
title={Appearance Matching Adapter for Exemplar-based Semantic Image Synthesis in-the-Wild},
author={Siyoon Jin and Jisu Nam and Jiyoung Kim and Dahyun Chung and Yeong-Seok Kim and Joonhyung Park and Heonjeong Chu and Seungryong Kim},
year={2025},
eprint={2412.03150},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2412.03150},
}
