IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python function

hash_video

hash_video()โ€‹

max.support.image.hash_video(pixel_values, grid_thw)

source

Compute the hash of preprocessed video pixels and grid metadata.

The input must already be the sampled, resized, normalized, model-ready video tensor. This helper does not decode or preprocess video frames.

Parameters:

Returns:

The signed 64-bit video hash.

Return type:

int