num_blocks_calculator = calculate_num_blocks_wrapper( hf_config, max_dynamic_patch) if isinstance(image_data, Image.Image): width, height = image_data.size num_blocks, _, _ = num_blocks_calculator(width, height) image_feature_size = [num_blocks * num_patches] elif is_list_of(image_da...