nemo_automodel.components.models.glm5_next.image_processing
nemo_automodel.components.models.glm5_next.image_processing
Image-only backport of the GLM-5.3 dynamic patch processor.
Module Contents
Classes
Functions
Data
API
Bases: TorchvisionBackend
Dynamically resize, normalize and flatten GLM-5.3 image patches.
max_image_tokens
merge_size
min_image_tokens
model_input_names
patch_expand_factor
patch_size
resample
rescale_factor
size
temporal_patch_size
Implement TorchvisionBackend’s grouped preprocessing contract.
Return the number of unmerged vision patches for one source image.
staticmethod
Flatten block-major duplicated temporal patches.
Aspect-preserving resize followed by right/bottom zero padding.
Bases: ImagesKwargs
Additional dynamic resize and patchification options.
max_image_tokens
merge_size
min_image_tokens
patch_expand_factor
patch_size
temporal_patch_size
Return an aligned H/W canvas inside the configured token budget.