Skip to main content

Lightweight, torch-free remote client for nnInteractive (nnInteractiveRemoteInferenceSession)

Project description

nninteractive-client

Lightweight, torch-free remote client for nnInteractive.

Install this package if you only want to drive a remote nninteractive-server (e.g. from a GUI, a thin client, or a host with its own torch policy such as 3D Slicer). It pulls in only the wire dependencies (numpy, httpx, blosc2) — no torch, no nnU-Net.

pip install nninteractive-client
from nnInteractive.inference.remote import nnInteractiveRemoteInferenceSession
import numpy as np

session = nnInteractiveRemoteInferenceSession("http://gpu-box:1527", api_key="…")
session.set_image(image_4d)                       # numpy, [C, X, Y, Z]
session.set_target_buffer(np.zeros(image_4d.shape[1:], dtype=np.uint8))
session.add_point_interaction([60, 70, 30], include_interaction=True)

The client exposes the same public API and capability attributes as the local nnInteractiveInferenceSession, so it is a drop-in replacement. See SERVER_CLIENT.md for the full client/server guide.

Need local inference or the server?

Those live in the full package. Installing it gives you everything (it depends on this client):

pip install nnInteractive

If you try to use a full-only feature from a client-only install, you'll get a clear error pointing you here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nninteractive_client-2.5.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nninteractive_client-2.5.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file nninteractive_client-2.5.0.tar.gz.

File metadata

  • Download URL: nninteractive_client-2.5.0.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nninteractive_client-2.5.0.tar.gz
Algorithm Hash digest
SHA256 4e7874201d13a19be87b26f11d09319678a858ffd37b67567f514a83ae2e76a3
MD5 e84e6dba5e254321f8caa93fd6de58bc
BLAKE2b-256 ffe4cbac7c8e569b29040cde8f09d5470f58737242c884dbd54faaa88775a5ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for nninteractive_client-2.5.0.tar.gz:

Publisher: publish.yml on MIC-DKFZ/nnInteractive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nninteractive_client-2.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nninteractive_client-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e41b3666951ea812a6960ed3d0bdc208c0663a48deae4c769686b704163bd0d
MD5 2231dfa5ed489c69f0041d9e6da4ad97
BLAKE2b-256 05370c49d9a828d26500ee08ec143b4b4297a862cf59097e9fd161e810417729

See more details on using hashes here.

Provenance

The following attestation bundles were made for nninteractive_client-2.5.0-py3-none-any.whl:

Publisher: publish.yml on MIC-DKFZ/nnInteractive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page