Visin Fusion
A Python library for semantic segmentation from camera images and projected LiDAR. Five research
model families share one call: model(rgb, lidar) returns class logits shaped
[batch, classes, height, width].
Install
Install from a source checkout:
git clone https://github.com/visin-platform/visin-fusion.git
cd visin-fusion
python -m pip install -e .
The base install provides the models. Add .[train] for the training and evaluation pipeline,
.[visin] for Visin reporting and datasets, or .[dev] for tests. See the
installation and API guide for details.
Use a model
import torch
from visin_fusion.models import CLFTv2
model = CLFTv2(num_classes=4, mode="cross_fusion", pretrained=False).eval()
rgb = torch.randn(1, 3, 256, 256)
lidar = torch.randn(1, 3, 256, 256) # camera-aligned LiDAR projection
with torch.inference_mode():
logits = model(rgb, lidar) # [1, 4, 256, 256]
| Model | Main difference |
|---|---|
| CLFT | Global ViT features fused during decoding |
| CLFTv2 | Hierarchical Swin fusion pyramid |
| MaskFormerFusion | Class-labelled mask queries |
| Mask2FormerFusion | Multi-scale masked-attention queries |
| DeepLabV3+ | Two convolutional branches with late fusion |
Each model page links its research papers. See model comparison for the fusion points and Python API for modes, training and checkpoints. The LiDAR input is a three-channel projected image, not a raw point cloud.
Optional pipeline
Train, test, visualize and benchmark CLFTv2 on the included sample dataset:
python -m pip install -e '.[train]'
visin-fusion run -c configs/quickstart.json
The pipeline guide covers configs, Docker, SLURM and individual stages. Add
.[train,visin] and a Visin pipeline key to report runs; see the Visin integration guide.
Tests
python -m pip install -e '.[train,visin,dev]'
pytest tests/unit
python tools/coverage.py # unit + end-to-end; requires >90% package coverage
See tests/README.md for focused end-to-end commands. The full documentation is at visin-platform.github.io/visin-fusion.
License
MIT.
Metadata
Release files for visin-fusion 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| visin_fusion-0.1.0.tar.gz | 83.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| visin_fusion-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 190.3 kB
Release files / visin_fusion-0.1.0.tar.gz
| Download URL | visin_fusion-0.1.0.tar.gz |
|---|---|
| Size | 83.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c1fe950426315ed724cfe112573090bc6f8e2c81886da22a1696c3ada4f8e3a
|
|
BLAKE2b-256 checksum How to use checksums |
0db985ffad9432d0d0f8d8ee033acc21ec57fbf0a2daba124f50d4e50a9bc87d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / visin_fusion-0.1.0-py3-none-any.whl
| Download URL | visin_fusion-0.1.0-py3-none-any.whl |
|---|---|
| Size | 106.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85fbbede71efa8d7f145bf358a1e14d325bd993a7272c5552ff2205d5bdeb310
|
|
BLAKE2b-256 checksum How to use checksums |
62e0c59a2ab704b0171f2ff5a2a6f7fef6601a46e8dbb385cd4b0fa7bcca7eed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency log