Skip to main content

JEPA Embedding Distance - for video distribution quality assessment.

Project description

logo

Beyond FVD: Enhanced Evaluation Metrics for Video Generation Quality

Static Badge

Installation

Install our package from PyPI

pip install --upgrade videojedi

Tutorial

Our metric has a simple setup process. To compute V-JEPA features and the JEDi metric, follow these simple steps:

  • Pixel values are in the range [0, 1]
  • Input dimension order is T, 3, H, W (frames, channels, height, width)
from videojedi import JEDiMetric
jedi = JEDiMetric(feature_path=..., model_dir=...)
jedi.load_features(loaderA, loaderB, num_samples=...)
print(f"JEDi Metric: {jedi.compute_metric()}")

If V-JEPA features are already precomputed, simply load them and compute the JEDi metric.

from videojedi import JEDiMetric
import numpy as np
jedi = JEDiMetric()
jedi.train_features = np.random.rand(5000, 1280)
jedi.test_features = np.random.rand(5000, 1280)
print(f"JEDi Metric: {jedi.compute_metric()}") 

Follow our interactive tutorial notebook for a detailed walkthrough: Tutorial.

Citation

@misc{luo2024jedi,
        title={Beyond FVD: Enhanced Evaluation Metrics for Video Generation Quality}, 
        author={Ge Ya Luo and Gian Favero and Zhi Hao Luo and Alexia Jolicoeur-Martineau and Christopher Pal},
        year={2024},
        eprint={2410.05203},
        archivePrefix={arXiv},
        primaryClass={cs.CV},
        url={https://arxiv.org/abs/2410.05203}, 
  }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

videojedi-1.1.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

videojedi-1.1.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file videojedi-1.1.0.tar.gz.

File metadata

  • Download URL: videojedi-1.1.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.4 Linux/5.15.0-101-generic

File hashes

Hashes for videojedi-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3ca5efe3f24e0696b64d21cee3070f1a6661972cd3b4512d11c41fb9f6d0fcc0
MD5 5526ae7936fcea1083217ed635b0b5c4
BLAKE2b-256 a53467600f047ced9d615dc715cbc8d293eeba29b95d61924921d89e72997db0

See more details on using hashes here.

File details

Details for the file videojedi-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: videojedi-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.4 Linux/5.15.0-101-generic

File hashes

Hashes for videojedi-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4478291a41b504e874100e285b88e8e071ba2a1f93597ed0abc404e95974fe6c
MD5 c4bfad6c1dc0a052b81fa63fcb9cc64e
BLAKE2b-256 d2fb27e50376b02d32cc41f518298808f29db0800b2ef0be5300f046fa3213c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page