or not to return a ImagePipelineOutput instead of a plain tuple.



Function invoked when calling the pipeline for generation.

get_label_ids

<
source
>
(
label: typing.Union[str, typing.List[str]]

)
→
list of int

Parameters 

label (str or dict of str) — label strings to be mapped to class ids.


Returns

list of int



Class ids to be processed by pipeline.


Map label strings, e.g. from ImageNet, to corresponding class ids.
