Skip to main content
Backbone feature-extractor models (H1, M-Optimus, tissue-seg). Model specifications are loaded from YAML config files in the configs/ directory. The Backbone factory wires them together with a pluggable client so that a single Backbone(...) call works for any backend (HTTP, AWS, GCP, …). Example:
backbone = Backbone("h1", base_url="http://localhost:8080")
backbone = Backbone("h1", backend="aws", endpoint_name="prod")

Backbone

class Backbone()
Factory for creating backbone endpoint models. Model identity (spec, endpoint path) is read from YAML config files. The factory pairs each config with a pluggable client backend to produce a ready-to-use EndpointModel. Usage:
>>> Backbone("h1", base_url="http://localhost:8080")
>>> Backbone("h1", backend="aws", endpoint_name="ep")
>>> Backbone.available_backbones()
['h1', 'm-optimus', 'tissue-seg']

Backend

class Backend(str, Enum)
Supported inference backends.

available_backbones

@classmethod
def available_backbones(cls) -> List[str]
Return list of all registered backbone names.