Performance in InternVideo2-Stage2-6B Model from huggingface.
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- huggingface, python, pytorch
- Ambito
- computer-vision, machine-learning
Direzione di ricerca
Inizia da demo.py e dalla funzione predict_label, quindi esamina gli input delle feature video e testuali referenziati e il calcolo di softmax. Riproduci entrambe le liste di candidati e confronta le ranking; il lavoro è completato quando spieghi il fattore 100 e la sensibilità alle parafrasi, oppure identifichi un problema concreto supportato da questi risultati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
First of all, I sincerely apologize for the duplicate issue on GitHub and Hugging Face.
I found the model at this link on Hugging Face and proceeded to run the code for implementation.
I tested demo.py and noticed some unusual results.
Initially, I ran the code using the provided sample video file and text descriptions:
text_candidates = ["A playful dog and its owner wrestle in the snowy yard, chasing each other with joyous abandon.",
"A man in a gray coat walks through the snowy landscape, pulling a sleigh loaded with toys.",
"A person dressed in a blue jacket shovels the snow-covered pavement outside their house.",
"A cat excitedly runs through the yard, chasing a rabbit.",
"A person bundled up in a blanket walks through the snowy landscape, enjoying the serene winter scenery."]
The output was:
text: A playful dog and its owner wrestle in the snowy yard, chasing each other with joyous abandon. ~ prob: 0.5354
text: A cat excitedly runs through the yard, chasing a rabbit. ~ prob: 0.2978
text: A man in a gray coat walks through the snowy landscape, pulling a sleigh loaded with toys. ~ prob: 0.0989
text: A person dressed in a blue jacket shovels the snow-covered pavement outside their house. ~ prob: 0.0630
text: A person bundled up in a blanket walks through the snowy landscape, enjoying the serene winter scenery. ~ prob: 0.0048
This result seems reasonable. However, when I tested with the following paraphrased descriptions, the results were not as expected:
paraphrased_text_candidates = [
"A cheerful dog and its owner tumble and chase each other in the snow-covered yard, full of excitement.",
"A man wearing a gray coat strides through the snowy terrain, dragging a sleigh stacked with toys.",
"Wearing a blue jacket, a person clears the snow from their driveway with a shovel.",
"A cat dashes energetically across the yard, pursuing a rabbit.",
"Wrapped in a warm blanket, a person strolls through the snowy landscape, admiring the peaceful winter atmosphere."
]
The output was:
text: A man wearing a gray coat strides through the snowy terrain, dragging a sleigh stacked with toys. ~ prob: 0.7446
text: A cat dashes energetically across the yard, pursuing a rabbit. ~ prob: 0.1992
text: A cheerful dog and its owner tumble and chase each other in the snow-covered yard, full of excitement. ~ prob: 0.0257
text: Wearing a blue jacket, a person clears the snow from their driveway with a shovel. ~ prob: 0.0200
text: Wrapped in a warm blanket, a person strolls through the snowy landscape, admiring the peaceful winter atmosphere. ~ prob: 0.0105
I am curious why the retrieval code (predict_label) multiplies the video embedding (feature) by 100 in the following function:
def predict_label(self,
vid_feat: torch.Tensor,
txt_feat: torch.Tensor,
top: int=5):
label_probs = (100.0 * vid_feat @ txt_feat.T).softmax(dim=-1)
top_probs, top_labels = label_probs.float().cpu().topk(top, dim=-1)
return top_probs, top_labels
- Lingua principale
- Python
- Stelle
- 2.4k
- Fork
- 160
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenGVLab/InternVideo
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
OpenGVLab/InternVideo#324 · 1 commento ·
-
InternVideo2 stage-1 weights Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
OpenGVLab/InternVideo#323 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
OpenGVLab/InternVideo#322 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
OpenGVLab/InternVideo#321 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
OpenGVLab/InternVideo#319 · 1 commento ·
Tutte le issue di OpenGVLab/InternVideo
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·