Run this model with HF Jobs
Run snu-aidas/ColonoWorld on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/snu-aidas/ColonoWorld. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/snu-aidas/ColonoWorld on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use snu-aidas/ColonoWorld with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use snu-aidas/ColonoWorld with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
ColonoWorld: Camera-Controlled Full-Procedure Colonoscopy Video Generation
Paper (arXiv:2611.30372) | Code | Training windows | Project page
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 index.
- Coming: a later version with enhanced polyp conditioning will be released in this repository.
Model
ColonoWorld is built on the NVIDIA Cosmos 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).
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.
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
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.
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 index, so they can be cut from a local copy of REAL-Colon.
Licence
- ColonoWorld weights: Creative Commons Attribution-NonCommercial 4.0 International (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. 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: 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.
Citation
@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}
}
- Downloads last month
- -