phenotypic.abc_.WeightRequirement#

class phenotypic.abc_.WeightRequirement(model: str, license_key: str | None, is_cached: Callable[[], bool | None])[source]#

Bases: object

Model weights an operation loads at run time.

Parameters:
model#

A readable identifier, e.g. "sam2:tiny" or "dinov3:base".

Type:

str

license_key#

The PHENOTYPIC_ACCEPT_MODEL_LICENSE token that must be accepted before the weights may be downloaded or used, or None when the weights are not gated.

Type:

str | None

is_cached#

Reports whether the weights are already on local disk, without importing torch and without network access. Returns None when that cannot be told.

Type:

Callable[[], bool | None]

Methods

__init__

Attributes

model: str#
license_key: str | None#
is_cached: Callable[[], bool | None]#