Image-to-Image
Diffusers
reflection-removal
reflection-separation
image-restoration
diffusion
stable-diffusion
cvpr2026
Instructions to use Brian9999/diff-reflection-separation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Brian9999/diff-reflection-separation with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Brian9999/diff-reflection-separation", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| base_model: | |
| - stabilityai/stable-diffusion-2 | |
| pipeline_tag: image-to-image | |
| library_name: diffusers | |
| tags: | |
| - reflection-removal | |
| - reflection-separation | |
| - image-restoration | |
| - diffusion | |
| - stable-diffusion | |
| - cvpr2026 | |
| # Reflection Separation from a Single Image via Joint Latent Diffusion | |
| Pre-trained checkpoints for the CVPR 2026 paper. Given a single photo taken | |
| through glass, the model jointly generates the **transmission** and | |
| **reflection** layers. | |
| - π Project page: https://brian90709.github.io/diff-reflection-separation/ | |
| - π» Code: https://github.com/Brian90709/diff-reflection-separation-code | |
| - π Paper: arXiv (coming soon) | |
| [Zheng-Hui Huang](https://github.com/Brian90709), [Zhixiang Wang](https://lightchaserx.github.io), [Yu-Lun Liu](https://yulunalexliu.github.io), [Yung-Yu Chuang](https://www.csie.ntu.edu.tw/~cyy/) | |
| ## Files | |
| | File | Size | Description | | |
| | --- | --- | --- | | |
| | `iter_016000/unet/diffusion_pytorch_model.bin` | ~3.5 GB | Trained layer-separation UNet. | | |
| | `fuse_blocks.bin` | ~264 MB | CFW refiner for the VAE decoder. | | |
| | `lrm/iter_008000/aux_net.bin` | ~1.3 MB | Latent composition module (LRM), used by `--optimization`. | | |
| ## Usage | |
| Download the weights into `./checkpoints`, then follow the | |
| [code repository](https://github.com/Brian90709/diff-reflection-separation-code): | |
| ```bash | |
| huggingface-cli download Brian9999/diff-reflection-separation --repo-type model --local-dir ./checkpoints | |
| ``` | |
| ## Citation | |
| ```bibtex | |
| @inproceedings{huang2026reflection, | |
| title = {Reflection Separation from a Single Image via Joint Latent Diffusion}, | |
| author = {Huang, Zheng-Hui and Wang, Zhixiang and Liu, Yu-Lun and Chuang, Yung-Yu}, | |
| booktitle = {CVPR}, | |
| year = {2026} | |
| } | |
| ``` | |