Downloads · 30 days
18
4% of all-time downloads
jasperai/LBM_normals
LBM_normals is a image-to-image model from jasperai. Use it when you need one image transformed into another. The card lists the license as cc-by-nc-4.0.
Latent Bridge Matching (LBM) is a new, versatile and scalable method proposed in LBM: Latent Bridge Matching for Fast Image-to-Image Translation that relies on Bridge Matching in a latent space to achieve fast image-t…
Downloads · 30 days
18
4% of all-time downloads
All-time downloads
425
Public
Parameters
2.5B
5 GB on disk
Likes
12
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
Latent Bridge Matching (LBM) is a new, versatile and scalable method proposed in LBM: Latent Bridge Matching for Fast Image-to-Image Translation that relies on Bridge Matching in a latent space to achieve fast image-to-image translation. This model was trained to estimate the normal map from a given input image. See also our live demo for image relighting and official Github repo.
To use this model you need first to install the associated lbm library by running the following
pip install git+https://github.com/gojasper/LBM.git
Then, you can infer with the model on your input images
import torch
from PIL import Image
from lbm.inference import evaluate, get_model
# Load model
model = get_model(
"jasperai/LBM_normals",
torch_dtype=torch.bfloat16,
device="cuda",
)
# Load a source image
source_image = Image.open("your_image")
# Perform inference
output_image = evaluate(model, source_image, num_sampling_steps=1)
This model achieves the following metrics
| Metrics | mean ↓ | 11.25 ↑ | 30.0 ↑ |
|---|---|---|---|
| NYUv2 | 15.5 | 62.5 | 84.9 |
| ScanNet | 14.1 | 65.8 | 87.0 |
| iBims | 16.9 | 68.3 | 82.7 |
| Sintel | 32.2 | 24.0 | 58.6 |
This code is released under the Creative Commons BY-NC 4.0 license.
If you find this work useful or use it in your research, please consider citing us
@article{chadebec2025lbm,
title={LBM: Latent Bridge Matching for Fast Image-to-Image Translation},
author={Clément Chadebec and Onur Tasar and Sanjeev Sreetharan and Benjamin Aubin},
year={2025},
journal = {arXiv preprint arXiv:2503.07535},
}