Skip to main content

Python class

InputModality

InputModality​

class max.pipelines.modeling.types.InputModality(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

source

Bases: str, Enum

Enum representing the types of input a model architecture accepts.

Used by SupportedArchitecture to explicitly declare what each architecture can consume. Currently this is informational only – it drives the generated models table in the docs and has no effect on architecture behavior at runtime.

IMAGE​

IMAGE = 'image'

source

TEXT​

TEXT = 'text'

source

VIDEO​

VIDEO = 'video'

source