Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mieb] 'VLM2VecWrapper' object has no attribute 'calculate_probs' #1416

Open
Muennighoff opened this issue Nov 9, 2024 · 1 comment
Open
Assignees
Labels
mieb The image extension of MTEB

Comments

@Muennighoff
Copy link
Contributor

ERROR:mteb.evaluation.MTEB:Error while evaluating BirdsnapZeroShot: 'VLM2VecWrapper' object has no attribute 'calculate_probs'
Traceback (most recent call last):
  File "/data/niklas/mieb/mteb/scripts/run_mieb.py", line 91, in <module>
    results = evaluation.run(model, output_folder="/data/niklas/mieb/results-mieb-final", batch_size=32)
  File "/data/niklas/mieb/mteb/mteb/evaluation/MTEB.py", line 464, in run
    raise e
  File "/data/niklas/mieb/mteb/mteb/evaluation/MTEB.py", line 425, in run
    results, tick, tock = self._run_eval(
  File "/data/niklas/mieb/mteb/mteb/evaluation/MTEB.py", line 300, in _run_eval
    results = task.evaluate(
  File "/data/niklas/mieb/mteb/mteb/abstasks/AbsTask.py", line 126, in evaluate
    scores[hf_subset] = self._evaluate_subset(
  File "/data/niklas/mieb/mteb/mteb/abstasks/Image/AbsTaskZeroshotClassification.py", line 56, in _evaluate_subset
    metrics = evaluator(model, encode_kwargs=encode_kwargs)
  File "/data/niklas/mieb/mteb/mteb/evaluation/evaluators/Image/ZeroshotClassificationEvaluator.py", line 82, in __call__
    probs = model.calculate_probs(text_embeddings, image_embeddings)
AttributeError: 'VLM2VecWrapper' object has no attribute 'calculate_probs'
(/env/lib/conda/gritkto4) niklas@dojo-a3-ghpc-55:/data/niklas/mieb/mteb$ 

@isaac-chung isaac-chung self-assigned this Nov 9, 2024
@isaac-chung
Copy link
Collaborator

isaac-chung commented Nov 9, 2024

I can look into this. Which task was running? ZeroShot classification.

@isaac-chung isaac-chung added the mieb The image extension of MTEB label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mieb The image extension of MTEB
Projects
None yet
Development

No branches or pull requests

2 participants