How nie-lang/udis2 works
UDIS++ is an unsupervised, two-stage image-stitching system: it first predicts a projective and mesh warp for overlapping image pairs, then learns masks to blend the warped images into a stitch. Training code, datasets, model/loss code, and geometric transforms are shown for the warp stage; composition training and mask blending are also shown. The README documents the two stages, but the stage-specific READMEs and test implementations were not sampled, so detailed inference and data handoff links are omitted.
Main entry points: Codes/train.py Warp trainer · Codes/network.py Warp network · Codes/train.py Composition trainer · Codes/network.py Mask and stitch model
Components 16
Warp stage
- Warp trainer
Warp/Codes/train.py - Warp network
Warp/Codes/network.py
Warp geometry
- Mesh resolution
Warp/Codes/grid_res.py - DLT solver
Warp/Codes/utils/torch_DLT.py - Homography sampler
Warp/Codes/utils/torch_homo_transform.py - TPS sampler
Warp/Codes/utils/torch_tps_transform.py - TPS sampler variant
Warp/Codes/utils/torch_tps_transform2.py
Composition stage
- Composition trainer
Composition/Codes/train.py - Mask and stitch model
Composition/Codes/network.py
Training data and losses
- Image-pair data
Warp/Codes/dataset.py - Warp losses
Warp/Codes/loss.py - Warped-pair data
Composition/Codes/dataset.py - Composition losses
Composition/Codes/loss.py
Other components
- Researcher
- Warped image pairs
- Stitched image
Connections 16
- Researcher → Warp trainer: trains warp
Warp/Codes/train.py - Warp trainer → Image-pair data: loads pairs
Warp/Codes/train.py - Warp trainer → Warp network: runs model
Warp/Codes/train.py - Warp trainer → Warp losses: computes losses
Warp/Codes/train.py - Warp network → Mesh resolution: uses resolution
Warp/Codes/network.py - Warp network → DLT solver: solves homography
Warp/Codes/network.py - Warp network → Homography sampler: warps projectively
Warp/Codes/network.py - Warp network → TPS sampler: warps by TPS
Warp/Codes/network.py - Warp losses → Mesh resolution: uses resolution
Warp/Codes/loss.py - Warp trainer → Warped image pairs: produces warp outputs
- Warped image pairs → Warped-pair data: feeds composition
- Researcher → Composition trainer: trains composition
Composition/Codes/train.py - Composition trainer → Warped-pair data: loads warped pairs
Composition/Codes/train.py - Composition trainer → Mask and stitch model: runs model
Composition/Codes/train.py - Composition trainer → Composition losses: computes losses
Composition/Codes/train.py - Mask and stitch model → Stitched image: blends images
Composition/Codes/network.py