Skip to main content

visin

CI PyPI Python License: MIT

Send training runs to Visin: epochs, test results, benchmarks, prediction frames and configs. Read them back for analysis.

pip install visin
import visin

with visin.init("unet baseline", project="road-seg") as run:
    for epoch in range(1, 21):
        train_loss, val_loss, val_iou = train_one_epoch()
        run.log_epoch(epoch, train={"loss": train_loss}, val={"loss": val_loss, "mean_iou": val_iou})

Point it at your Visin with two environment variables. Without them, the same script runs and reports nothing.

export VISIN_URL=https://vision-api.visin.eu
export VISIN_TOKEN=…            # a pipeline key, from the project's Settings → Pipeline keys
visin check --write             # confirm this machine can report

What it does for you

  • Never stops your training. Reports go out from a background thread, and failures are logged, never raised.
  • Retries safely. Epochs and test results carry their own ids, so a retried request is never stored twice.
  • Survives the network. Reports wait on disk while Visin is unreachable, and are sent when it answers. With VISIN_MODE=offline, a compute node with no route to Visin keeps everything for visin sync.
  • Keeps crashed runs. A run that crashes, or that the scheduler terminates, still sends its epochs and is marked failed.
  • Takes metrics as they are. NumPy and PyTorch scalars are converted, and NaN becomes a gap in the chart.
  • Reports once in distributed jobs. Only rank zero reports.

More than epochs

run.log_test_results(12, {"day": {"car": {"iou": 0.74}}, "night": {"car": {"iou": 0.61}}})
run.log_benchmark({"device": "cuda", "batch_size": 1, "fps": 119.0})  # machine details filled in
run.upload_visualization(12, "renders/overlay_0001.png", kind="overlay")
run.log_config(args)  # argparse, dataclass, pydantic, Hydra…

Rank checkpoints

checkpoint = visin.local_checkpoint("checkpoints/epoch_40.pth")
evaluation = visin.evaluate(
    results,
    suite="road-test@1",
    checkpoint=checkpoint,
    sample_counts={"day": 1200, "night": 800},
    project="road-seg",
)
print(evaluation.verdict)  # eligible, or incomplete: missing-condition(night)

Visin judges each result against a written-down suite and says whether it can be ranked, and why not. visin leaderboard road-test@1 shows the ranking and where each model is weakest. See evaluating models.

Frameworks

from visin.integrations.lightning import VisinCallback  # or visin.integrations.keras

trainer = L.Trainer(callbacks=[VisinCallback(name="segformer b2", project="road-seg")])

Reading runs back

api = visin.Api()
for run in api.trainings(project="road-seg", status="completed"):
    frame = api.epochs_frame(run)  # pip install 'visin[pandas]'

Datasets

Public datasets on Visin need no account or token. They can be listed and downloaded, once, into VISIN_DATA_DIR:

export VISIN_DATASET_URL=https://dataset-api.visin.eu
visin datasets
visin download zod     # resumes if interrupted; prints the folder

visin.Datasets does the same from Python.

Documentation

visin-platform.github.io/visin-py has the getting-started guide, guides to offline use and each framework, and the API reference.

Contributing

See CONTRIBUTING.md. In short: make install, then make check before a pull request. Changes are listed in the changelog.

License

MIT

Metadata

Release files for visin 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for visin 0.10.0
File Size Uploaded Provenance Actions
visin-0.10.0.tar.gz 233.0 kB With provenance Details for visin-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for visin 0.10.0
File Interpreter ABI Platform Actions
visin-0.10.0-py3-none-any.whl Python 3 none any Details for visin-0.10.0-py3-none-any.whl

Total release size: 355.9 kB

Release files / visin-0.10.0.tar.gz

Download URL visin-0.10.0.tar.gz
Size 233.0 kB
Tags Source
SHA-256 checksum
How to use checksums
75029c3356b4ad0b10beee37a5c2edc21978c8e6951d3bd35ceace85fbf836f8
BLAKE2b-256 checksum
How to use checksums
1253b58f2a2fa3a738d83e6f7f5f48b966309491e6a38dd5d08dba333109988f
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 Oct 22, 2026.

Transparency log

Release files / visin-0.10.0-py3-none-any.whl

Download URL visin-0.10.0-py3-none-any.whl
Size 122.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be24cbc2bc03b724abe4765e84430e9b4cf27ba6c4cbeb158f499e66d68526ac
BLAKE2b-256 checksum
How to use checksums
6b8cc7bf7d3ffce8841250f9228a4ba3edde089e233e04de9e3209752bb6c34a
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 Oct 22, 2026.

Transparency log

Security for visin 0.10.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for visin-0.10.0.tar.gz

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 Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page