--- license: cc-by-nc-4.0 pipeline_tag: image-to-video tags: - video-generation - colonoscopy - endoscopy - camera-control - medical-imaging - cosmos --- # ColonoWorld: Camera-Controlled Full-Procedure Colonoscopy Video Generation [Paper (arXiv:2611.30372)](https://arxiv.org/abs/2611.30372) | [Code](https://github.com/AIDASLab/ColonoWorld) | [Training windows](https://huggingface.co/datasets/snu-aidas/ColonoWorld-Windows) | [Project page](https://aidaslab.github.io/ColonoWorld/) ColonoWorld generates colonoscopy video from a first frame, a camera trajectory and a rendered 3D lumen model (the *tube*). Chunks are chained into a full cecum-to-rectum withdrawal. Optional condition masks add polyps, tools, snares and irrigation, and a global flag switches to narrow-band imaging (NBI). This repository holds the ColonoWorld weights used for all results in the paper. ## News - **2026-12-04:** Weights used in the paper released (`colonoworld.safetensors`). - **2026-12-04:** Training, validation and test windows released as the [ColonoWorld-Windows](https://huggingface.co/datasets/snu-aidas/ColonoWorld-Windows) index. - **Coming:** a later version with enhanced polyp conditioning will be released in this repository. ## Model ColonoWorld is built on the [NVIDIA Cosmos](https://github.com/NVIDIA/cosmos-framework) video world model (Cosmos3-Nano with the Wan2.2 VAE); we used the 2026-09-23 release of cosmos-framework (version 1.2.2, commit [`cf5d68c`](https://github.com/NVIDIA/cosmos-framework/tree/cf5d68c00d97ccd2480a2320ed652b92dec63102)). The released file contains the ColonoWorld-trained tensors on top of the Cosmos base model: - **Camera:** Plücker rays from the fisheye (KB4) camera path, through an input adapter and an encoder in each of the 36 transformer blocks. - **Tube:** the lumen wall rendered along the camera path, VAE-encoded and appended as condition tokens that share positions with the target video, with an anatomical segment embedding. - **Condition masks:** a palette video (polyp, tool, snare, irrigation) encoded as a second condition stream. - **NBI flag:** a global adapter on the target tokens. - **Generation LoRA:** rank 16 on the attention projections of the generation expert. | File | Contents | Size | |---|---|---| | `colonoworld.safetensors` | paper model: EMA weights (decay 0.99), float32, 337 tensors, 22.2 M parameters | 88.9 MB | The Cosmos base weights are not included; download them from the [NVIDIA Cosmos release](https://github.com/NVIDIA/cosmos-framework). ## Intended use Research use only: generation of colonoscopy video for research on video generation, camera control and endoscopy, and as a source of synthetic data for research. The model is not intended for clinical use or diagnosis. ## Inputs | Input | Format | |---|---| | First frame | RGB image on the 1104x832 clip canvas | | Camera trajectory | camera-to-world poses per frame, with the KB4 fisheye calibration | | Tube | rendered tube video or a tube model (`.npz`) rendered along the cameras | | Condition masks (optional) | palette video or class masks: polyp, tool, snare, irrigation | | NBI flag (optional) | global switch to narrow-band imaging | Each chunk has 189 frames at 1104x832 and 24 fps; the full-procedure chain starts every chunk from the last frame of the previous one. ## Recommended settings | Setting | Value | |---|---| | Tube CFG | 1 | | Mask CFG | 3 | | Sampling steps | 35 | | Weights | EMA (this file) | ## Usage ```bash git clone https://github.com/AIDASLab/ColonoWorld.git cd ColonoWorld conda env create -f environment.yml && conda activate colonoworld pip install -e . export COSMOS_WEIGHTS=/path/to/cosmos export COLONOWORLD_CKPT=/path/to/ckpt huggingface-cli download snu-aidas/ColonoWorld colonoworld.safetensors --local-dir $COLONOWORLD_CKPT python scripts/generate.py --config configs/inference.yaml \ inputs.first_frame=frame0.png inputs.cameras=cameras.npy inputs.intrinsics=calib.json \ inputs.tube=tube.npz output.dir=outputs/chunk ``` Full-procedure generation, condition masks, NBI, tube construction, training and evaluation are described in the [code repository](https://github.com/AIDASLab/ColonoWorld). ## Training data The model is trained on colonoscopy videos from REAL-Colon (Biffi et al., Scientific Data 2024), with camera paths and tubes fitted to each training window. The training, validation and test windows are listed in the [ColonoWorld-Windows](https://huggingface.co/datasets/snu-aidas/ColonoWorld-Windows) index, so they can be cut from a local copy of REAL-Colon. ## Licence - **ColonoWorld weights:** [Creative Commons Attribution-NonCommercial 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/) (CC BY-NC 4.0). - **Cosmos base model:** ColonoWorld runs on the NVIDIA Cosmos base model, which is distributed separately by NVIDIA under the [NVIDIA Open Model License](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/). Use of the base model follows that licence. - **REAL-Colon:** the training videos come from the REAL-Colon dataset, released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): C. Biffi et al., "REAL-Colon: A dataset for developing real-world AI applications in colonoscopy", Scientific Data 11, 539 (2024), [doi:10.1038/s41597-024-03359-0](https://doi.org/10.1038/s41597-024-03359-0). ## Citation ```bibtex @article{hong2026colonoworld, title = {ColonoWorld: Camera-Controlled Full-Procedure Colonoscopy Video Generation}, author = {Hong, Jihwan and Cho, Sunghwan Steve and Ho, Ping Shu and Kim, Joo Seong and Kim, Bokyung and Kim, Nam-Joon and See, Simon and Kim, Ji Won and Do, Jaeyoung}, journal = {arXiv preprint arXiv:2611.30372}, year = {2026} } ```