List all registered model names, optionally filtered by task / family.
Parameters
task(str or None, optional, keyword - only)= NoneRestrict to entries with this task tag (e.g.
"image-classification"). None returns all tasks.family(str or None, optional, keyword - only)= NoneRestrict to entries from this architecture family (e.g.
"resnet"). None returns all families.Returns
list[str]Sorted list of normalised model names matching the filters.
Notes
Use this for discovery — pair with create_model to build any
listed name. The returned strings are the canonical (normalised)
forms; either "resnet_50" or "ResNet-50" is accepted as input
elsewhere, but the listing always returns the canonical spelling.
Examples
>>> from lucid.models import list_models
>>> list_models(family="resnet")[:3]
['resnet_101', 'resnet_152', 'resnet_18']
>>> "vit_base_16" in list_models(task="image-classification")
True