Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- InternVideo2/panda/text_embeddings_test.pkl +3 -0
- InternVideo2/panda/text_embeddings_train.pkl +3 -0
- InternVideo2/panda/text_embeddings_train_addition.idx.json +3 -0
- InternVideo2/panda/text_embeddings_train_addition.npy +3 -0
- InternVideo2/panda/text_embeddings_train_addition.npy.meta.json +29 -0
- InternVideo2/panda/text_embeddings_train_addition.pkl +3 -0
- InternVideo2/panda/video_embeddings_test.pkl +3 -0
- InternVideo2/panda/video_embeddings_train.done_1066575.pkl +3 -0
- InternVideo2/panda/video_embeddings_train.pkl +3 -0
- README.md +12 -10
- Xpool/panda_2150k_s42_model_best.pth +3 -0
- __pycache__/download_features.cpython-312.pyc +0 -0
- download_checkpoints.sh +15 -17
- download_features.py +4 -3
.gitattributes
CHANGED
|
@@ -76,3 +76,4 @@ GRDR/panda/best_model/best_model.pt.centroids filter=lfs diff=lfs merge=lfs -tex
|
|
| 76 |
GRDR/panda/best_model/best_model.pt.code filter=lfs diff=lfs merge=lfs -text
|
| 77 |
GRDR/panda/best_model/best_model.pt.embedding filter=lfs diff=lfs merge=lfs -text
|
| 78 |
GRDR/panda/best_model/best_model.pt.videorqvae filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 76 |
GRDR/panda/best_model/best_model.pt.code filter=lfs diff=lfs merge=lfs -text
|
| 77 |
GRDR/panda/best_model/best_model.pt.embedding filter=lfs diff=lfs merge=lfs -text
|
| 78 |
GRDR/panda/best_model/best_model.pt.videorqvae filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
InternVideo2/panda/text_embeddings_train_addition.idx.json filter=lfs diff=lfs merge=lfs -text
|
InternVideo2/panda/text_embeddings_test.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28968b525ece4c09ffaac5c9f5e7c0e9b059333d8786898a27f34e81adf77979
|
| 3 |
+
size 12038894
|
InternVideo2/panda/text_embeddings_train.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abdb96daa74512e0d93070ad2669c00524336bdf116fd11c75572e65ed6118a6
|
| 3 |
+
size 4550866752
|
InternVideo2/panda/text_embeddings_train_addition.idx.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04b3a9f7d2a5bdd3b059b079b5ec5740956274bc97ee481db6d34ba7e3834e19
|
| 3 |
+
size 342975291
|
InternVideo2/panda/text_embeddings_train_addition.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55998d2eebde5a4e6dd3f83df6dde4f12752c2f9c217b21e5a90ca20db0b0ebf
|
| 3 |
+
size 17617223808
|
InternVideo2/panda/text_embeddings_train_addition.npy.meta.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"array_file": "text_embeddings_train_addition.npy",
|
| 3 |
+
"created_at_unix": 1779284747.7011616,
|
| 4 |
+
"dtype": "float32",
|
| 5 |
+
"format_version": 1,
|
| 6 |
+
"index_file": "text_embeddings_train_addition.idx.json",
|
| 7 |
+
"key_mode": "remapped",
|
| 8 |
+
"num_entries": 8602160,
|
| 9 |
+
"shape": [
|
| 10 |
+
8602160,
|
| 11 |
+
512
|
| 12 |
+
],
|
| 13 |
+
"sources": {
|
| 14 |
+
"pseudo_pickle": {
|
| 15 |
+
"mtime_ns": 1779190533084898644,
|
| 16 |
+
"name": "text_embeddings_train_addition.pkl",
|
| 17 |
+
"path": "/data2/uqzzha35/VideoRetrieval/features/InternVideo2/panda/text_embeddings_train_addition.pkl",
|
| 18 |
+
"size": 18140091053
|
| 19 |
+
},
|
| 20 |
+
"train_text_pickle": {
|
| 21 |
+
"mtime_ns": 1778763695652558939,
|
| 22 |
+
"name": "text_embeddings_train.pkl",
|
| 23 |
+
"path": "/data2/uqzzha35/VideoRetrieval/features/InternVideo2/panda/text_embeddings_train.pkl",
|
| 24 |
+
"size": 4550866752
|
| 25 |
+
}
|
| 26 |
+
},
|
| 27 |
+
"train_text_entries": 2150540,
|
| 28 |
+
"verify_samples": 32
|
| 29 |
+
}
|
InternVideo2/panda/text_embeddings_train_addition.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa7f8291c1661c7ede42f4b262edd401a9f3cc2b1e8ed918d117e1cb22f34021
|
| 3 |
+
size 18140091053
|
InternVideo2/panda/video_embeddings_test.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef487b8941cff5c8aa66abc343c5612b41d1d302a807c281b04ffda3bad72ab0
|
| 3 |
+
size 12027452
|
InternVideo2/panda/video_embeddings_train.done_1066575.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05aeebdfffbf51f207d87bec83f85a079d59b932ee0c97a8cb50ce6f59925de3
|
| 3 |
+
size 2253656104
|
InternVideo2/panda/video_embeddings_train.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f872f28fb032598651734c33b06fb616fbee10e9e52085564ba2e7ea928a382
|
| 3 |
+
size 4546559075
|
README.md
CHANGED
|
@@ -11,7 +11,7 @@ tags:
|
|
| 11 |
- semantic-ids
|
| 12 |
- text-to-video
|
| 13 |
size_categories:
|
| 14 |
-
-
|
| 15 |
---
|
| 16 |
|
| 17 |
# GRDR-TVR release assets
|
|
@@ -27,9 +27,10 @@ Pre-extracted InternVideo2 features are available for:
|
|
| 27 |
- `msrvtt`
|
| 28 |
- `actnet`
|
| 29 |
- `didemo`
|
|
|
|
| 30 |
- `lsmdc` legacy assets
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
### GRDR checkpoints
|
| 35 |
|
|
@@ -56,32 +57,33 @@ Legacy `lsmdc` checkpoint files remain available under `GRDR/lsmdc/best_model/`,
|
|
| 56 |
|
| 57 |
### X-Pool checkpoints
|
| 58 |
|
| 59 |
-
X-Pool checkpoint filenames
|
| 60 |
|
| 61 |
```text
|
| 62 |
Xpool/msrvtt9k_model_best.pth
|
| 63 |
Xpool/actnet_model_best.pth
|
| 64 |
Xpool/didemo_model_best.pth
|
|
|
|
| 65 |
Xpool/lsmdc_model_best.pth
|
| 66 |
```
|
| 67 |
|
| 68 |
-
No X-Pool checkpoint file was renamed for this release update.
|
| 69 |
-
|
| 70 |
## Download examples
|
| 71 |
|
| 72 |
-
Use the `download_features.py` script from the GRDR code repository for the
|
| 73 |
|
| 74 |
```bash
|
|
|
|
| 75 |
python download_features.py --grdr --datasets msrvtt panda
|
| 76 |
-
python download_features.py --
|
| 77 |
-
python download_features.py --
|
| 78 |
```
|
| 79 |
|
| 80 |
You can also download directly from the Hub:
|
| 81 |
|
| 82 |
```bash
|
| 83 |
-
hf download JasonCoderMaker/GRDR-TVR --type dataset --include '
|
| 84 |
-
hf download JasonCoderMaker/GRDR-TVR --type dataset --include '
|
|
|
|
| 85 |
```
|
| 86 |
|
| 87 |
The GRDR repository expects checkpoints under `output/checkpoints/GRDR/<dataset>/best_model/`.
|
|
|
|
| 11 |
- semantic-ids
|
| 12 |
- text-to-video
|
| 13 |
size_categories:
|
| 14 |
+
- 1M<n<10M
|
| 15 |
---
|
| 16 |
|
| 17 |
# GRDR-TVR release assets
|
|
|
|
| 27 |
- `msrvtt`
|
| 28 |
- `actnet`
|
| 29 |
- `didemo`
|
| 30 |
+
- `panda`
|
| 31 |
- `lsmdc` legacy assets
|
| 32 |
|
| 33 |
+
The source videos remain under their original dataset licenses and are not mirrored here.
|
| 34 |
|
| 35 |
### GRDR checkpoints
|
| 36 |
|
|
|
|
| 57 |
|
| 58 |
### X-Pool checkpoints
|
| 59 |
|
| 60 |
+
X-Pool checkpoint filenames keep their original flat layout:
|
| 61 |
|
| 62 |
```text
|
| 63 |
Xpool/msrvtt9k_model_best.pth
|
| 64 |
Xpool/actnet_model_best.pth
|
| 65 |
Xpool/didemo_model_best.pth
|
| 66 |
+
Xpool/panda_2150k_s42_model_best.pth
|
| 67 |
Xpool/lsmdc_model_best.pth
|
| 68 |
```
|
| 69 |
|
|
|
|
|
|
|
| 70 |
## Download examples
|
| 71 |
|
| 72 |
+
Use the `download_features.py` script from the GRDR code repository for the full reproduction workflow. This Hub-side copy downloads the hosted release assets directly:
|
| 73 |
|
| 74 |
```bash
|
| 75 |
+
python download_features.py --features --datasets panda
|
| 76 |
python download_features.py --grdr --datasets msrvtt panda
|
| 77 |
+
python download_features.py --xpool --datasets msrvtt actnet didemo panda
|
| 78 |
+
python download_features.py --all --datasets panda
|
| 79 |
```
|
| 80 |
|
| 81 |
You can also download directly from the Hub:
|
| 82 |
|
| 83 |
```bash
|
| 84 |
+
hf download JasonCoderMaker/GRDR-TVR --type dataset --include 'InternVideo2/panda/**' --local-dir ./dataset/features
|
| 85 |
+
hf download JasonCoderMaker/GRDR-TVR --type dataset --include 'GRDR/panda/best_model/*' --local-dir ./output/checkpoints
|
| 86 |
+
hf download JasonCoderMaker/GRDR-TVR --type dataset --include 'Xpool/panda_2150k_s42_model_best.pth' --local-dir ./reranker/xpool/ckpt
|
| 87 |
```
|
| 88 |
|
| 89 |
The GRDR repository expects checkpoints under `output/checkpoints/GRDR/<dataset>/best_model/`.
|
Xpool/panda_2150k_s42_model_best.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9f7613387290d4a9c179fafd77b3c7a744f55850e346fb1b2c62f24418500a4
|
| 3 |
+
size 1831539287
|
__pycache__/download_features.cpython-312.pyc
ADDED
|
Binary file (5.21 kB). View file
|
|
|
download_checkpoints.sh
CHANGED
|
@@ -13,7 +13,7 @@ Datasets: msrvtt, actnet, didemo, panda, lsmdc
|
|
| 13 |
Examples:
|
| 14 |
./download_checkpoints.sh --grdr msrvtt
|
| 15 |
./download_checkpoints.sh --grdr panda
|
| 16 |
-
./download_checkpoints.sh --xpool
|
| 17 |
EOF
|
| 18 |
}
|
| 19 |
|
|
@@ -21,19 +21,24 @@ hf_download() {
|
|
| 21 |
hf download "$REPO_ID" --type dataset --include "$1" --local-dir "$OUTPUT_DIR"
|
| 22 |
}
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
cmd="${1:---all}"
|
| 25 |
case "$cmd" in
|
| 26 |
--all)
|
| 27 |
if [[ -n "$DATASET" ]]; then
|
| 28 |
hf_download "GRDR/${DATASET}/best_model/*"
|
| 29 |
-
hf_download "InternVideo2/${DATASET}/**"
|
| 30 |
-
|
| 31 |
-
msrvtt) hf_download "Xpool/msrvtt9k_model_best.pth" ;;
|
| 32 |
-
actnet) hf_download "Xpool/actnet_model_best.pth" ;;
|
| 33 |
-
didemo) hf_download "Xpool/didemo_model_best.pth" ;;
|
| 34 |
-
lsmdc) hf_download "Xpool/lsmdc_model_best.pth" ;;
|
| 35 |
-
panda) echo "No Panda X-Pool checkpoint is hosted in this repo" ;;
|
| 36 |
-
esac
|
| 37 |
else
|
| 38 |
hf_download "GRDR/*/best_model/*"
|
| 39 |
hf_download "InternVideo2/**"
|
|
@@ -50,14 +55,7 @@ case "$cmd" in
|
|
| 50 |
if [[ -z "$DATASET" ]]; then
|
| 51 |
hf_download "Xpool/*"
|
| 52 |
else
|
| 53 |
-
|
| 54 |
-
msrvtt) hf_download "Xpool/msrvtt9k_model_best.pth" ;;
|
| 55 |
-
actnet) hf_download "Xpool/actnet_model_best.pth" ;;
|
| 56 |
-
didemo) hf_download "Xpool/didemo_model_best.pth" ;;
|
| 57 |
-
lsmdc) hf_download "Xpool/lsmdc_model_best.pth" ;;
|
| 58 |
-
panda) echo "No Panda X-Pool checkpoint is hosted in this repo" ;;
|
| 59 |
-
*) echo "Unknown dataset: $DATASET" >&2; exit 1 ;;
|
| 60 |
-
esac
|
| 61 |
fi
|
| 62 |
;;
|
| 63 |
-h|--help)
|
|
|
|
| 13 |
Examples:
|
| 14 |
./download_checkpoints.sh --grdr msrvtt
|
| 15 |
./download_checkpoints.sh --grdr panda
|
| 16 |
+
./download_checkpoints.sh --xpool panda
|
| 17 |
EOF
|
| 18 |
}
|
| 19 |
|
|
|
|
| 21 |
hf download "$REPO_ID" --type dataset --include "$1" --local-dir "$OUTPUT_DIR"
|
| 22 |
}
|
| 23 |
|
| 24 |
+
download_xpool_dataset() {
|
| 25 |
+
case "$1" in
|
| 26 |
+
msrvtt) hf_download "Xpool/msrvtt9k_model_best.pth" ;;
|
| 27 |
+
actnet) hf_download "Xpool/actnet_model_best.pth" ;;
|
| 28 |
+
didemo) hf_download "Xpool/didemo_model_best.pth" ;;
|
| 29 |
+
panda) hf_download "Xpool/panda_2150k_s42_model_best.pth" ;;
|
| 30 |
+
lsmdc) hf_download "Xpool/lsmdc_model_best.pth" ;;
|
| 31 |
+
*) echo "Unknown dataset: $1" >&2; exit 1 ;;
|
| 32 |
+
esac
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
cmd="${1:---all}"
|
| 36 |
case "$cmd" in
|
| 37 |
--all)
|
| 38 |
if [[ -n "$DATASET" ]]; then
|
| 39 |
hf_download "GRDR/${DATASET}/best_model/*"
|
| 40 |
+
hf_download "InternVideo2/${DATASET}/**"
|
| 41 |
+
download_xpool_dataset "$DATASET"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
else
|
| 43 |
hf_download "GRDR/*/best_model/*"
|
| 44 |
hf_download "InternVideo2/**"
|
|
|
|
| 55 |
if [[ -z "$DATASET" ]]; then
|
| 56 |
hf_download "Xpool/*"
|
| 57 |
else
|
| 58 |
+
download_xpool_dataset "$DATASET"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
fi
|
| 60 |
;;
|
| 61 |
-h|--help)
|
download_features.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
-
"""Download GRDR-TVR release assets from Hugging Face Hub."""
|
| 3 |
|
| 4 |
import argparse
|
| 5 |
import shutil
|
|
@@ -8,13 +8,14 @@ from pathlib import Path
|
|
| 8 |
|
| 9 |
REPO_ID = "JasonCoderMaker/GRDR-TVR"
|
| 10 |
DATASETS = ["msrvtt", "actnet", "didemo", "panda", "lsmdc"]
|
| 11 |
-
FEATURE_DATASETS = {"msrvtt", "actnet", "didemo", "lsmdc"}
|
| 12 |
GRDR_DATASETS = {"msrvtt", "actnet", "didemo", "panda", "lsmdc"}
|
| 13 |
XPOOL_FILES = {
|
| 14 |
"actnet": "actnet_model_best.pth",
|
| 15 |
"didemo": "didemo_model_best.pth",
|
| 16 |
"lsmdc": "lsmdc_model_best.pth",
|
| 17 |
"msrvtt": "msrvtt9k_model_best.pth",
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
|
|
@@ -74,7 +75,7 @@ def download_xpool(datasets, output_dir="./reranker/xpool/ckpt"):
|
|
| 74 |
|
| 75 |
|
| 76 |
def main():
|
| 77 |
-
parser = argparse.ArgumentParser(description="Download GRDR-TVR release assets")
|
| 78 |
parser.add_argument("--all", action="store_true", help="Download hosted features, GRDR checkpoints, and X-Pool checkpoints")
|
| 79 |
parser.add_argument("--features", action="store_true", help="Download hosted InternVideo2 features")
|
| 80 |
parser.add_argument("--grdr", action="store_true", help="Download GRDR checkpoints")
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
"""Download hosted GRDR-TVR release assets from Hugging Face Hub."""
|
| 3 |
|
| 4 |
import argparse
|
| 5 |
import shutil
|
|
|
|
| 8 |
|
| 9 |
REPO_ID = "JasonCoderMaker/GRDR-TVR"
|
| 10 |
DATASETS = ["msrvtt", "actnet", "didemo", "panda", "lsmdc"]
|
| 11 |
+
FEATURE_DATASETS = {"msrvtt", "actnet", "didemo", "panda", "lsmdc"}
|
| 12 |
GRDR_DATASETS = {"msrvtt", "actnet", "didemo", "panda", "lsmdc"}
|
| 13 |
XPOOL_FILES = {
|
| 14 |
"actnet": "actnet_model_best.pth",
|
| 15 |
"didemo": "didemo_model_best.pth",
|
| 16 |
"lsmdc": "lsmdc_model_best.pth",
|
| 17 |
"msrvtt": "msrvtt9k_model_best.pth",
|
| 18 |
+
"panda": "panda_2150k_s42_model_best.pth",
|
| 19 |
}
|
| 20 |
|
| 21 |
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
def main():
|
| 78 |
+
parser = argparse.ArgumentParser(description="Download hosted GRDR-TVR release assets")
|
| 79 |
parser.add_argument("--all", action="store_true", help="Download hosted features, GRDR checkpoints, and X-Pool checkpoints")
|
| 80 |
parser.add_argument("--features", action="store_true", help="Download hosted InternVideo2 features")
|
| 81 |
parser.add_argument("--grdr", action="store_true", help="Download GRDR checkpoints")
|