Downloads · 30 days
0
alistairfoggin/CroCoDiLight
CroCoDiLight is a image-to-image model from alistairfoggin. Use it when you need one image transformed into another. The card lists the license as cc-by-nc-sa-4.0.
Disentangles illumination from scene content in CroCo (Cross-view Completion) latent representations. A learned lighting extractor separates each encoder embedding into a single lighting vector and lighting-invariant…
Downloads · 30 days
0
Access
Public
Updated Sep 25, 2026
Repo size
5.7 GB
Likes
1
Public
Click a slice to open those files.
.pth5.4 GB · 100%
From the Hugging Face model README
Disentangles illumination from scene content in CroCo (Cross-view Completion) latent representations. A learned lighting extractor separates each encoder embedding into a single lighting vector and lighting-invariant patch features, which can then be recombined with target lighting conditions. This enables shadow removal, albedo estimation, lighting transfer, and interpolation, trained on datasets two orders of magnitude smaller than the original CroCo pretraining.
Paper: OpenReview (ICLR 2026)
Code: GitHub
Project Page: alistairfoggin.com/projects/crocodilight/
| File | Required for | Description |
|---|---|---|
| Inference | ||
CroCoDiLight.pth | All inference scripts | Full CroCoDiLight model (includes the CroCo encoder, single-view decoder, lighting extractor, and lighting entangler) |
CroCoDiLight_shadow_mapper.pth | Shadow removal | Lighting mapper trained for shadow removal |
CroCoDiLight_albedo_mapper.pth | Albedo estimation | Lighting mapper trained for intrinsic image decomposition |
| Training | ||
CroCoDiLight_decoder.pth | Training of CroCoDiLight.pth | The pretrained monocular decoder for the CroCo v2 encoder |
CroCoDiLight.pth is the base model needed by every inference and evaluation script. The mapper weights are only needed for their respective tasks. Lighting transfer, freezing, and interpolation use the base model only.
CroCoDiLight_decoder.pth is not necessary for inference as it is embedded into CroCoDiLight.pth, but can be used as a standalone decoder for the CroCo v2 ViTLarge encoder (which is embedded in the model weights too).
See the GitHub repository for setup instructions, inference scripts, Gradio demos, training, and evaluation.
@inproceedings{foggin2026crocodilight,
title={{CroCoDiLight}: Repurposing Cross-View Completion Encoders for Relighting},
author={Foggin, Alistair J and Smith, William A P},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://openreview.net/forum?id=GKvb3HCyNk}
}
This project, including its source code and pretrained model weights, is licensed under CC BY-NC-SA 4.0. The pretrained weights are additionally subject to the license terms of the upstream training data documented in the NOTICE file.
CroCoDiLight builds on CroCo (Weinzaepfel et al.), licensed under CC BY-NC-SA 4.0 by Naver Corporation.
Model training was performed on the Viking cluster, a high performance compute facility provided by the University of York. We are grateful for computational support from the University of York, IT Services and the Research IT team.