Dataset Preview
Duplicate
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:    ValueError
Message:      Expected object or value
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
                  pa_table = paj.read_json(
                      io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
                  )
                File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0
              
              During handling of the above exception, another exception occurred:
              
              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 304, in _generate_tables
                  batch = json_encode_fields_in_json_lines(original_batch, json_field_paths)
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 111, in json_encode_fields_in_json_lines
                  examples = [ujson_loads(line) for line in original_batch.splitlines()]
                              ~~~~~~~~~~~^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 20, in ujson_loads
                  return pd.io.json.ujson_loads(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
              ValueError: Expected object or value
              
              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 dataset

Need 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
1,262
2,048
[ { "global_index": 14910, "frame_idx": 0, "image_id": "L21_V001_000000", "path": "/data/aic/shared/artifacts/1fps720/L21_V001/000000.jpg" }, { "global_index": 14911, "frame_idx": 30, "image_id": "L21_V001_000030", "path": "/data/aic/shared/artifacts/1fps720/L21_V001/000030.jpg" ...
L21_V002
1,058
2,048
[{"global_index":10257,"frame_idx":0,"image_id":"L21_V002_000000","path":"/data/aic/shared/artifacts(...TRUNCATED)
L21_V003
1,198
2,048
[{"global_index":6968,"frame_idx":0,"image_id":"L21_V003_000000","path":"/data/aic/shared/artifacts/(...TRUNCATED)
L21_V005
944
2,048
[{"global_index":3731,"frame_idx":0,"image_id":"L21_V005_000000","path":"/data/aic/shared/artifacts/(...TRUNCATED)
L21_V006
1,036
2,048
[{"global_index":8166,"frame_idx":0,"image_id":"L21_V006_000000","path":"/data/aic/shared/artifacts/(...TRUNCATED)
L21_V007
842
2,048
[{"global_index":1956,"frame_idx":0,"image_id":"L21_V007_000000","path":"/data/aic/shared/artifacts/(...TRUNCATED)
L21_V008
1,350
2,048
[{"global_index":12433,"frame_idx":0,"image_id":"L21_V008_000000","path":"/data/aic/shared/artifacts(...TRUNCATED)
L21_V009
1,160
2,048
[{"global_index":5808,"frame_idx":0,"image_id":"L21_V009_000000","path":"/data/aic/shared/artifacts/(...TRUNCATED)
L21_V010
1,133
2,048
[{"global_index":4675,"frame_idx":0,"image_id":"L21_V010_000000","path":"/data/aic/shared/artifacts/(...TRUNCATED)
L21_V011
1,005
2,048
[{"global_index":951,"frame_idx":0,"image_id":"L21_V011_000000","path":"/data/aic/shared/artifacts/1(...TRUNCATED)
End of preview.

1fps 720p HD Multimodal Vector Embeddings (Qwen3-VL-Embedding-2B)

Official 2048-dimensional multimodal dense vector representations extracted from the BIUS-batch1/1fps720 HD frame dataset (1 frame per second) using Qwen/Qwen3-VL-Embedding-2B.


πŸ“Œ Dataset Overview

  • Source Dataset: BIUS-batch1/1fps720 (1fps 720p frames)
  • Total Frames Indexed: 470,804 images
  • Total Videos: 873 videos (Batch 1: L21_V001 through L30_V041)
  • Model Backbone: Qwen/Qwen3-VL-Embedding-2B
  • Embedding Dimension: 2048-d (float32)
  • Vector Normalization: L2 Normalized ($|v|_2 = 1.0$)
  • Archive Size: ~1.7 GB (compressed) / ~3.6 GB (uncompressed)

πŸ“‚ Repository Structure

The dataset provides both individual per-video folders and a single compressed archive for fast bulk downloading:

.
β”œβ”€β”€ README.md
β”œβ”€β”€ 1fps720_embeddings.tar.zst          # Complete dataset archive (~1.7 GB)
└── keyframes_embeddings/
    β”œβ”€β”€ manifest.json                   # Global index of all 873 videos & frame counts
    β”œβ”€β”€ L21_V001/
    β”‚   β”œβ”€β”€ L21_V001.npy                # float32 array of shape (N_frames, 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_000000",
      "path": "/data/aic/shared/artifacts/1fps720/L21_V001/000000.jpg"
    }
  ]
}

πŸš€ Quickstart & Usage

1. Download Dataset with huggingface_hub

from huggingface_hub import hf_hub_download

archive_file = hf_hub_download(
    repo_id="BIUS-batch1/1fps720-Qwen3-VL-Embeddings",
    filename="1fps720_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 1fps embedding matrix for video L21_V017
embeddings = np.load("keyframes_embeddings/L21_V017/L21_V017.npy")
print(f"Loaded embeddings shape: {embeddings.shape}")  # (N_frames, 2048)

with open("keyframes_embeddings/L21_V017/L21_V017.json") as f:
    meta = json.load(f)
print(f"Total frames: {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 = "Xe cα»™ vΓ  người Δ‘i đường tham gia giao thΓ΄ng trΓͺn phα»‘"
query_vec = model.encode([query], normalize_embeddings=True).astype(np.float32)  # shape (1, 2048)

# 3. Compute cosine similarity against 1fps frames
video_emb = np.load("keyframes_embeddings/L21_V017/L21_V017.npy")  # shape (N, 2048)
scores = np.dot(video_emb, query_vec.T).squeeze()  # Dot-product equals Cosine Similarity

best_idx = np.argmax(scores)
best_frame = meta["frames"][best_idx]
print(f"Top match at second/frame: {best_frame['frame_idx']} with score: {scores[best_idx]:.4f}")

πŸ› οΈ Extraction Specifications

Specification Value
Model Qwen/Qwen3-VL-Embedding-2B
Input Resolution $1280 \times 720$ (720p HD) 1fps Frames
Precision Float16 GPU Inference $\to$ Float32 L2-Normalized Storage
Integrity Checks 0 NaNs, 0 Infs, 100% L2 unit length verified

πŸ“„ License & Attribution

  • Released under the Apache-2.0 License.
  • Based on the Qwen3-VL foundation model by Alibaba Cloud & Qwen Team.
Downloads last month
13