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-0.1.3.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

videojedi-0.1.3-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: videojedi-0.1.3.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for videojedi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5a75385caf6e2830a440a235a6b161e20487d5f767bb1bee2594848d802a5038
MD5 18047292a631c4b3d68fa67bf7935dbe
BLAKE2b-256 098385d385dc0309c5960ee4abf0feb904bba825a2a05739598fed3cb95c8700

See more details on using hashes here.

File details

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

File metadata

  • Download URL: videojedi-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for videojedi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 90ff66498c4046521826f5c6e2fac0a530fe1f520dcfab16a329ddbf28430769
MD5 761af8786a7dd46d99f4406c90e87fd2
BLAKE2b-256 3f3716ca5573d878194b600b6d6547255eb1a86a409db8e0eee9f8f28ac6e283

See more details on using hashes here.

Supported by

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