Downloads · 30 days
7
26% of all-time downloads
ErezYosef/Difuzcam_model
Difuzcam_model is a machine learning model from ErezYosef. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as apache-2.0.
Erez Yosef, Raja Giryes (Tel Aviv University)
Downloads · 30 days
7
26% of all-time downloads
All-time downloads
27
Public
Parameters
369M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.5 GB · 100%
From the Hugging Face model README
Erez Yosef, Raja Giryes (Tel Aviv University)
Published in Scientific Reports, Volume 15, Nature Publishing Group, 2025. paper
ControlNet model for flat camera image reconstruction using diffusion-based generative AI. This model enables lensless imaging by reconstructing high-quality RGB images from raw flat camera sensor measurements.
Model type: ControlNet for Stable Diffusion 2.1 License: Apache-2.0
Clone the Difuzcam GitHub repository
from diffusers import UNet2DConditionModel
from models.flat_controlnet import FlatControlNetModel_Efull
unet = UNet2DConditionModel.from_pretrained(
'stabilityai/stable-diffusion-2-1-base',
subfolder="unet"
)
controlnet = FlatControlNetModel_Efull.from_pretrained(
'ErezYosef/controlnet',
low_cpu_mem_usage=False,
unet=unet
)
For complete training and inference code, see the Difuzcam GitHub repository.
Training dataset available at ErezYosef/Difuzcam_dataset
@article{yosef2025difuzcam,
title={DifuzCam: Replacing Camera Lens with a Mask and a Diffusion Model for Generative AI Based Flat Camera Design},
author={Yosef, Erez and Giryes, Raja},
journal={Scientific Reports},
volume={15},
number={1},
pages={43059},
year={2025},
publisher={Nature Publishing Group UK London}
}