Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
total_videos: int64
total_vectors: int64
embedding_dim: int64
model_name: string
videos: struct<L28_V001: struct<num_frames: int64, npy_file: string, json_file: string>, L28_V017: struct<nu (... 64508 chars omitted)
child 0, L28_V001: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 1, L28_V017: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 2, L25_V007: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 3, L29_V017: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 4, L28_V016: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 5, L29_V009: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 6, L28_V020: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 7,
...
: string
child 2, json_file: string
child 867, L30_V057: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 868, L24_V041: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 869, L24_V044: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 870, L24_V045: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 871, L24_V040: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 872, L30_V041: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
video_id: string
frames: list<item: struct<global_index: int64, frame_idx: int64, image_id: string, path: string>>
child 0, item: struct<global_index: int64, frame_idx: int64, image_id: string, path: string>
child 0, global_index: int64
child 1, frame_idx: int64
child 2, image_id: string
child 3, path: string
num_frames: int64
to
{'video_id': Value('string'), 'num_frames': Value('int64'), 'embedding_dim': Value('int64'), 'frames': List({'global_index': Value('int64'), 'frame_idx': Value('int64'), 'image_id': Value('string'), 'path': Value('string')})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
total_videos: int64
total_vectors: int64
embedding_dim: int64
model_name: string
videos: struct<L28_V001: struct<num_frames: int64, npy_file: string, json_file: string>, L28_V017: struct<nu (... 64508 chars omitted)
child 0, L28_V001: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 1, L28_V017: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 2, L25_V007: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 3, L29_V017: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 4, L28_V016: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 5, L29_V009: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 6, L28_V020: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 7,
...
: string
child 2, json_file: string
child 867, L30_V057: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 868, L24_V041: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 869, L24_V044: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 870, L24_V045: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 871, L24_V040: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
child 872, L30_V041: struct<num_frames: int64, npy_file: string, json_file: string>
child 0, num_frames: int64
child 1, npy_file: string
child 2, json_file: string
video_id: string
frames: list<item: struct<global_index: int64, frame_idx: int64, image_id: string, path: string>>
child 0, item: struct<global_index: int64, frame_idx: int64, image_id: string, path: string>
child 0, global_index: int64
child 1, frame_idx: int64
child 2, image_id: string
child 3, path: string
num_frames: int64
to
{'video_id': Value('string'), 'num_frames': Value('int64'), 'embedding_dim': Value('int64'), 'frames': List({'global_index': Value('int64'), 'frame_idx': Value('int64'), 'image_id': Value('string'), 'path': Value('string')})}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
video_id string | num_frames int64 | embedding_dim int64 | frames list |
|---|---|---|---|
L21_V001 | 489 | 2,048 | [
{
"global_index": 58994,
"frame_idx": 0,
"image_id": "L21_V001_001_0000000000",
"path": "/data/aic/shared/artifacts/keyframes-v13/L21_V001/001_0000000000.jpg"
},
{
"global_index": 58995,
"frame_idx": 72,
"image_id": "L21_V001_002_0000000072",
"path": "/data/aic/shared/artifacts/k... |
L21_V002 | 413 | 2,048 | [
{
"global_index": 79453,
"frame_idx": 6,
"image_id": "L21_V002_001_0000000006",
"path": "/data/aic/shared/artifacts/keyframes-v13/L21_V002/001_0000000006.jpg"
},
{
"global_index": 79454,
"frame_idx": 60,
"image_id": "L21_V002_002_0000000060",
"path": "/data/aic/shared/artifacts/k... |
L21_V003 | 430 | 2,048 | [{"global_index":45241,"frame_idx":0,"image_id":"L21_V003_001_0000000000","path":"/data/aic/shared/a(...TRUNCATED) |
L21_V005 | 368 | 2,048 | [{"global_index":88525,"frame_idx":0,"image_id":"L21_V005_001_0000000000","path":"/data/aic/shared/a(...TRUNCATED) |
L21_V006 | 403 | 2,048 | [{"global_index":81126,"frame_idx":6,"image_id":"L21_V006_001_0000000006","path":"/data/aic/shared/a(...TRUNCATED) |
L21_V007 | 323 | 2,048 | [{"global_index":82201,"frame_idx":6,"image_id":"L21_V007_001_0000000006","path":"/data/aic/shared/a(...TRUNCATED) |
L21_V008 | 532 | 2,048 | [{"global_index":40727,"frame_idx":15,"image_id":"L21_V008_001_0000000015","path":"/data/aic/shared/(...TRUNCATED) |
L21_V009 | 446 | 2,048 | [{"global_index":44510,"frame_idx":0,"image_id":"L21_V009_001_0000000000","path":"/data/aic/shared/a(...TRUNCATED) |
L21_V010 | 426 | 2,048 | [{"global_index":54369,"frame_idx":10,"image_id":"L21_V010_001_0000000010","path":"/data/aic/shared/(...TRUNCATED) |
L21_V011 | 396 | 2,048 | [{"global_index":77129,"frame_idx":0,"image_id":"L21_V011_001_0000000000","path":"/data/aic/shared/a(...TRUNCATED) |
End of preview.
Keyframes-v13 Multimodal Vector Embeddings (Qwen3-VL-Embedding-2B)
Official 2048-dimensional multimodal vector representations extracted from the BIUS-batch1/Keyframes (v13) dataset using the state-of-the-art Qwen/Qwen3-VL-Embedding-2B vision-language foundation model.
π Dataset Overview
- Source Keyframes:
BIUS-batch1/Keyframes(keyframes-v13.tar.zst) - Total Keyframes Indexed: 168,050 images
- Total Videos: 873 videos (Batch 1:
L21_V001throughL30_V041) - Model Backbone:
Qwen/Qwen3-VL-Embedding-2B - Embedding Dimension: 2048-d (
float32) - Vector Normalization: L2 Normalized ($|v|_2 = 1.0$)
- Archive Size: ~605 MB (compressed) / ~1.31 GB (uncompressed)
π Repository Structure
The dataset provides both individual per-video folders and a single compressed archive for fast bulk downloading:
.
βββ README.md
βββ keyframes_v13_embeddings.tar.zst # Complete dataset archive (~605 MB)
βββ keyframes_embeddings/
βββ manifest.json # Global index of all 873 videos & frame counts
βββ L21_V001/
β βββ L21_V001.npy # float32 array of shape (N_keyframes, 2048)
β βββ L21_V001.json # Frame indices, image IDs, and source paths
βββ L21_V002/
β βββ L21_V002.npy
β βββ L21_V002.json
βββ ... (873 video folders)
JSON Metadata Schema ({video_id}.json)
{
"video_id": "L21_V001",
"num_frames": 490,
"embedding_dim": 2048,
"frames": [
{
"global_index": 0,
"frame_idx": 0,
"image_id": "L21_V001_001_0000000000",
"path": "/data/aic/shared/artifacts/keyframes-v13/L21_V001/001_0000000000.jpg"
}
]
}
π Quickstart & Usage
1. Download Dataset with huggingface_hub
from huggingface_hub import hf_hub_download
import tarfile
# Download the unified archive
archive_file = hf_hub_download(
repo_id="BIUS-batch1/Keyframes-Qwen3-VL-Embeddings",
filename="keyframes_v13_embeddings.tar.zst",
repo_type="dataset"
)
print(f"Downloaded archive to: {archive_file}")
2. Loading Embeddings for a Specific Video
import numpy as np
import json
# Load embedding matrix for video L21_V001
embeddings = np.load("keyframes_embeddings/L21_V001/L21_V001.npy")
print(f"Loaded embeddings shape: {embeddings.shape}") # (490, 2048)
with open("keyframes_embeddings/L21_V001/L21_V001.json") as f:
meta = json.load(f)
print(f"Total keyframes: {meta['num_frames']}")
3. Text-to-Image Cross-Modal Retrieval
import numpy as np
from sentence_transformers import SentenceTransformer
# 1. Load query encoder
model = SentenceTransformer("Qwen/Qwen3-VL-Embedding-2B", trust_remote_code=True, device="cuda")
# 2. Encode text query into 2048-d vector
query = "NgΖ°α»i dαΊ«n chΖ°Ζ‘ng trΓ¬nh bαΊ£n tin thα»i sα»± trong trΖ°α»ng quay"
query_vec = model.encode([query], normalize_embeddings=True).astype(np.float32) # shape (1, 2048)
# 3. Compute cosine similarity against video keyframes
video_emb = np.load("keyframes_embeddings/L21_V001/L21_V001.npy") # shape (N, 2048)
scores = np.dot(video_emb, query_vec.T).squeeze() # Dot-product equals Cosine Similarity
best_idx = np.argmax(scores)
print(f"Top match in video L21_V001: Frame index {best_idx} with score: {scores[best_idx]:.4f}")
οΏ½οΏ½οΈ Extraction Specifications
| Specification | Value |
|---|---|
| Model | Qwen/Qwen3-VL-Embedding-2B |
| Input Resolution | $512 \times 288$ RGB Keyframes |
| Precision | Float16 GPU Inference $\to$ Float32 L2-Normalized Storage |
| Batch Size | 64 |
| Total Runtime | ~81.9 minutes (34.2 keyframes/sec on single NVIDIA GPU) |
| Integrity Checks | 0 NaNs, 0 Infs, 100% L2 unit length verified |
π License & Attribution
- Embeddings released under the Apache-2.0 License.
- Based on the Qwen3-VL foundation model by Alibaba Cloud & Qwen Team.
- Downloads last month
- 13