{"record":{"id":"c33570ebada1f5f3","repo":"tensorflow/models","slug":"unknown-input-image-format","errorCode":null,"errorMessage":"Unknown input image format: {}","messagePattern":"Unknown input image format: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/dataloaders/video_input.py","lineNumber":102,"sourceCode":"    input_image_format: The format of input image which could be jpeg, png or\n      none for unknown or mixed datasets.\n\n  Returns:\n    Processed frames. Tensor of shape\n      [num_frames * num_test_clips, crop_height, crop_width, num_channels].\n  \"\"\"\n  # Validate parameters.\n  if is_training and num_test_clips != 1:\n    logging.warning(\n        '`num_test_clips` %d is ignored since `is_training` is `True`.',\n        num_test_clips)\n\n  if random_stride_range < 0:\n    raise ValueError('Random stride range should be >= 0, got {}'.format(\n        random_stride_range))\n\n  if input_image_format not in ('jpeg', 'png', 'none'):\n    raise ValueError('Unknown input image format: {}'.format(\n        input_image_format))\n\n  if isinstance(crop_size, int):\n    crop_size = (crop_size, crop_size)\n  crop_height, crop_width = crop_size\n\n  # Temporal sampler.\n  if is_training:\n    if random_stride_range > 0:\n      # Uniformly sample different frame-rates\n      stride = tf.random.uniform(\n          [],\n          tf.maximum(stride - random_stride_range, 1),\n          stride + random_stride_range,\n          dtype=tf.int32)\n\n    # Sample random clip.\n    image = preprocess_ops_3d.sample_sequence(image, num_frames, True, stride,","sourceCodeStart":84,"sourceCodeEnd":120,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/dataloaders/video_input.py#L84-L120","documentation":"Error \"Unknown input image format: {}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/dataloaders/video_input.py:102 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}