SuperAPI AI Directory

ULMEvalKit

ULMEvalKit is an open-source evaluation toolkit for unified understanding and generation models (ULM) and benchmark evaluation of image generation by generative models. It supports running multiple generation benchmarks with a single command, avoiding the heavy work of preparing data across multiple repositories. It currently supports text-to-image and image-plus-text-to-image generation tasks, features distributed inference and evaluation, and can flexibly use local models (such as CLIP, Mask2Former) and API models (such as GPT-4o) for evaluation. Version v0.1 has been released, supporting models such as BAGEL, FLUX.1, and Janus-Pro as well as benchmarks such as GenEval, DPG-Bench, and T2I-CompBench, and the model and benchmark lists are continuously updated.

Open website

About this tool

ULMEvalKit is an open-source evaluation toolkit (Python package name: ulmeval), focused on benchmark evaluation of image generation by unified understanding and generation models (ULM) and generative models. Its goal is to provide a one-stop evaluation solution so that researchers and developers can conveniently perform reproducible evaluation of existing ULM and generative models.

Purpose

ULMEvalKit aims to solve the cumbersome data preparation problem in multi-benchmark evaluation. With a single command, it can evaluate ULM on multiple generation benchmarks, eliminating the heavy burden of preparing data across multiple repositories. At the same time, it makes it convenient for developers to evaluate their own models on multiple benchmarks by implementing only one batch_generate_inner() or generate_inner() function, while data download, data preprocessing, prediction inference, and metric computation are all handled automatically by the codebase.

Main Capabilities

  • Currently supports text-to-image and image-text-to-image generation tasks.
  • Supports distributed inference and evaluation.
  • Flexible evaluation methods: it can use either local models (such as CLIP, Mask2Former) or API models (such as GPT-4o).
  • Supported models: BAGEL, FLUX.1, Janus-Pro, etc. (see the documentation for the full list).
  • Supported benchmarks: GenEval, DPG-Bench, T2I-CompBench, etc. (see the documentation for the full list).
  • Models and benchmarks are continuously being added.

Usage

The project provides a QuickStart guide, and specific installation and running steps can be obtained through the official documentation. The codebase is a fork of VLMEvalKit and follows its main structure and class definitions, but with key modifications:

  • Inference results are saved as pickle files (rather than TSV) in order to include images.
  • The judger has been moved to ulmeval/dataset/utils and supports multiple types such as local models (CLIP, Mask2Former) and API models (GPT-4o).
  • Distributed evaluation support has been added.

Applicable Scenarios

It is suitable for researchers and developers who need to evaluate the performance of unified understanding and generation models (ULM) or generative models on image generation tasks, and is especially suitable for teams or individuals who want reproducible evaluation across multiple benchmarks without having to deal with complex data preparation.

Limitations

This codebase is not designed forReproducing the exact accuracy values reported in the original papers of third-party benchmarks, for reasons including: randomness factors (different random seeds for different models; image generation uses seed 42 by default); the temperature setting when using large multimodal models (such as GPT-4o, Qwen2.5-VL) for scoring is variable and is not consistently zero across papers; different prompt versions (by default, the exact same prompts in the benchmark are used, but some models may use rewritten versions, such as BAGEL). The project requires the use of the official environment configuration; although it is recommended to follow it, other versions may also be usable. Regarding information such as fees, prices, specific platforms, or effects, no information is currently provided.

Project Information

Project leaders: Dongzhi Jiang, Renrui Zhang; core contributors: Yankai Shu, Yuyang Peng, Zhuofan Zong, Yuchen Duan, Zihao Wang, Jiaming Liu, Hao Chen, Ziyu Guo, Junyan Ye; corresponding authors: Renrui Zhang, Hongsheng Li, Rui Liu, Jiaming Liu, Shanghang Zhang, Pheng Ann Heng. ULMEvalKit is a fork of VLMEvalKit, following its main structure and class definitions with key modifications.