Skip to content
fn

list_pretrained

→list of str
list_pretrained(model_name: str)

List the available weight tags for a model.

Parameters

model_namestr
Factory name, e.g. "resnet_18".

Returns

list of str

Tag names (e.g. ["IMAGENET1K_V1"]). Empty if the model has no registered pretrained weights. The DEFAULT alias is not listed separately — enum iteration yields only canonical members.

Examples

>>> import lucid.models              # registers the zoo's weights enums
>>> import lucid.weights as W
>>> W.list_pretrained("resnet_18_cls")
['IMAGENET1K_V1']

Used by 1