Visual Question Answering
Transformers
Safetensors
English
idefics2
text-classification
text-generation-inference
Instructions to use TIGER-Lab/VideoScore with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TIGER-Lab/VideoScore with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "visual-question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("visual-question-answering", model="TIGER-Lab/VideoScore")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSequenceClassification processor = AutoProcessor.from_pretrained("TIGER-Lab/VideoScore") model = AutoModelForSequenceClassification.from_pretrained("TIGER-Lab/VideoScore", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -86,7 +86,7 @@ from typing import List
|
|
| 86 |
from PIL import Image
|
| 87 |
import torch
|
| 88 |
from transformers import AutoProcessor
|
| 89 |
-
from models.idefics2 import Idefics2ForSequenceClassification
|
| 90 |
|
| 91 |
def _read_video_pyav(
|
| 92 |
frame_paths:List[str],
|
|
|
|
| 86 |
from PIL import Image
|
| 87 |
import torch
|
| 88 |
from transformers import AutoProcessor
|
| 89 |
+
from mantis.models.idefics2 import Idefics2ForSequenceClassification
|
| 90 |
|
| 91 |
def _read_video_pyav(
|
| 92 |
frame_paths:List[str],
|