Skip to content

video-classification pipeline looks for image processors #41950

@merveenoyan

Description

@merveenoyan

System Info

4.57.1

Who can help?

@zucchini-nlp I can take a stab at this sometime

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

from transformers import pipeline, infer_device
import torch
device = infer_device()
checkpoint = "facebook/vjepa2-vitl-fpc64-256"
pipe = pipeline("video-classification", model=checkpoint, device=device)

Expected behavior

Full trace:

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
[/usr/local/lib/python3.12/dist-packages/transformers/image_processing_base.py](https://localhost:8080/#) in get_image_processor_dict(cls, pretrained_model_name_or_path, **kwargs)
    353                 ]
--> 354                 resolved_image_processor_file = resolved_image_processor_files[0]
    355             except OSError:

IndexError: list index out of range

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
5 frames
[/usr/local/lib/python3.12/dist-packages/transformers/image_processing_base.py](https://localhost:8080/#) in get_image_processor_dict(cls, pretrained_model_name_or_path, **kwargs)
    359             except Exception:
    360                 # For any other exception, we throw a generic error.
--> 361                 raise OSError(
    362                     f"Can't load image processor for '{pretrained_model_name_or_path}'. If you were trying to load"
    363                     " it from 'https://huggingface.co/models', make sure you don't have a local directory with the"

OSError: Can't load image processor for 'facebook/vjepa2-vitl-fpc64-256'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'facebook/vjepa2-vitl-fpc64-256' is the correct path to a directory containing a preprocessor_config.json file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions