Skip to main content

laidline-diffusers

attach(pipe, marker) marks every image a diffusers pipeline returns (TrustMark watermark, C2PA manifest, evidence entry), exactly once per image, and replaces SDXL's artifact-prone invisible watermarker. detach(pipe) undoes it.

from laidline import Marker
from laidline_diffusers import attach

pipe = attach(pipe, Marker.from_config("laidline.yaml"))
out = pipe(prompt="a lighthouse at dusk")
out.assets[0].save("lighthouse.png")   # the signed file: watermark and C2PA manifest
out.images[0]                           # the same pixels, watermark only (a manifest cannot live in pixels)
  • attach swaps the pipeline's class for a cached subclass whose __call__ runs the original and then marks the output; the class name, qualname and module are kept, so type(pipe).__name__ and save_pretrained are unchanged.
  • out.images carry the watermark only, in the original type, shape and dtype; out.assets[i] (MarkedAsset) holds the signed bytes (data, asset_id, manifest_id, save(path)). Store or serve asset.data.
  • SDXL's StableDiffusionXLWatermarker is replaced (pipe.watermark = None; replace_watermarker=False keeps it).
  • A marking failure raises MarkError: no unmarked image is returned.

Status: proven on diffusers 0.40.0 tiny random pipelines on CPU (hf-internal-testing/tiny-stable-diffusion-torch and hf-internal-testing/tiny-stable-diffusion-xl-pipe); no production checkpoint was run. See https://laidline.com/docs/integrations/diffusers.

Metadata

Release files for laidline-diffusers 1.0.1

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

Source distribution (sdist)

Source distribution for laidline-diffusers 1.0.1
File Size Uploaded Provenance Actions
laidline_diffusers-1.0.1.tar.gz 11.6 kB Without provenance Details for laidline_diffusers-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for laidline-diffusers 1.0.1
File Interpreter ABI Platform Actions
laidline_diffusers-1.0.1-py3-none-any.whl Python 3 none any Details for laidline_diffusers-1.0.1-py3-none-any.whl

Total release size: 24.4 kB

Release files / laidline_diffusers-1.0.1.tar.gz

Download URL laidline_diffusers-1.0.1.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
739e52e1e05a156e6bfb2d02cf1366d832ba9d7a8442636e481fd75dee5fdc59
BLAKE2b-256 checksum
How to use checksums
9d8085ace81ceaa2689cea0355c25866d409ce524825c1b5f2acb6d5ce43828b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / laidline_diffusers-1.0.1-py3-none-any.whl

Download URL laidline_diffusers-1.0.1-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae126c95970b895d2bd1bdbda21b4fe3aaae3784293e28fc5da872d4d35ad026
BLAKE2b-256 checksum
How to use checksums
f0c4860b79deb08ca3cca71d0fa150592a9ed0c28cdb28cabbcdca4619b7f11f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for laidline-diffusers 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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