FruitBench / README.md
TJIET's picture
Update README.md
8ddd040 verified
metadata
pretty_name: Fruit Ripeness Dataset
task_categories:
  - image-to-text
dataset_info:
  features:
    - name: id
      dtype: string
    - name: fruit_type
      dtype: string
    - name: image
      dtype: image
    - name: growth_stage
      dtype: string
    - name: recommendation
      dtype: string
    - name: consumer_score
      dtype: int32
    - name: local_path
      dtype: string
  splits:
    - name: Apple
    - name: Banana
    - name: DragonFruit
    - name: Grape
    - name: Guava
    - name: Kiwi
    - name: Lychee
    - name: Mango
    - name: Orange
    - name: Papaya
    - name: Peach
    - name: pear
    - name: Pomegranate
    - name: Pomelo
    - name: Strawberry
    - name: Tomato
configs:
  - config_name: default
    data_files:
      - split: Apple
        path: label/Apple_dataset.parquet
      - split: Banana
        path: label/Banana_dataset.parquet
      - split: DragonFruit
        path: label/DragonFruit_dataset.parquet
      - split: Grape
        path: label/Grape_dataset.parquet
      - split: Guava
        path: label/Guava_dataset.parquet
      - split: Kiwi
        path: label/Kiwi_dataset.parquet
      - split: Lychee
        path: label/Lychee_dataset.parquet
      - split: Mango
        path: label/Mango_dataset.parquet
      - split: Orange
        path: label/Orange_dataset.parquet
      - split: Papaya
        path: label/Papaya_dataset.parquet
      - split: Peach
        path: label/Peach_dataset.parquet
      - split: pear
        path: label/pear_dataset.parquet
      - split: Pomegranate
        path: label/Pomegranate_dataset.parquet
      - split: Pomelo
        path: label/Pomelo_dataset.parquet
      - split: Strawberry
        path: label/Strawberry_dataset.parquet
      - split: Tomato
        path: label/Tomato_dataset.parquet

πŸ₯­ FruitBench: A Multimodal Benchmark for Fruit Growth Understanding

Paper: FruitBench: A Multimodal Benchmark for Comprehensive Fruit Growth Understanding in Real-World Agriculture
Conference: NeurIPS 2025 (submitted)
Authors: Jihao Li*, Jincheng Hu*, Pengyu Fu*, Ming Liu, et al.


πŸ“Œ Dataset Summary

FruitBench is the first large-scale multimodal benchmark designed to evaluate vision-language models on real-world agricultural understanding. It focuses on fruit growth modeling, supporting:

  • 🍎 Fruit Type Classification
  • 🌱 Growth Stage Recognition (unripe, pest-damaged, mature, rotten)
  • 🌾 Agricultural Action Recommendation (keep for further growth, picking it, try to recover it, discard it)
  • 🍽️ Consumer Score Prediction (1–100)

The dataset contains 3,200 high-quality expert-annotated images covering 16 fruit categories, each across 4 growth stages.

Dataset sample


πŸ” Tasks

Task Overview

  1. Type Classification
  2. Growth Stage Identification
  3. Action Recommendation
  4. Consumer Score Prediction

All tasks are evaluated under both zero-shot and one-shot settings using multimodal large language models (MLLMs).


πŸ“‚ Data Structure

The dataset is organized as follow:

FruitBench/
β”œβ”€β”€ Data/
β”‚ β”œβ”€β”€ Apple/
β”‚ β”‚ β”œβ”€β”€ Mature/
      β”œβ”€β”€0001.png
      β”œβ”€β”€0002.png
      β”œβ”€β”€0003.png
      β”œβ”€β”€...
      └──0050.png
β”‚ β”‚ β”œβ”€β”€ Unripe/
β”‚ β”‚ β”œβ”€β”€ Rotten/
β”‚ β”‚ └── Pest-damage/
β”‚ β”œβ”€β”€ Banana/
β”‚ β”œβ”€β”€ Mango/
β”‚ └── ...
β”œβ”€β”€ label/
β”‚ β”œβ”€β”€ Apple_dataset.parquet
β”‚ β”œβ”€β”€ Banana_dataset.parquet
β”‚ β”œβ”€β”€ Mango_dataset.parquet
β”‚ └── ...
β”œβ”€β”€ json/
β”‚ β”œβ”€β”€ Apple.json
β”‚ β”œβ”€β”€ Banana.json
β”‚ └── ...

Evaluation

We evaluate a total of 15 multimodal models of different types and sizes, covering diverse model architectures, parameter scales, and vision-language capabilities. The evaluated models include:

  • CogVLM2-Llama3-Chat
  • DeepSeek-VL-Chat
  • DeepSeek-VL2
  • InternVL2_5
  • Janus-Pro
  • Mantis-siglip-llama3
  • Mantis-Idefics2
  • MiniCPM-Llama3-V2_5
  • MiniCPM-o-2.6
  • mPLUG-OWL3
  • Qwen2.5-VL-Instruct
  • Yi-VL
    (15 models in total, with various types and sizes)

βš™οΈ Environment Setup

We provide both conda and pip setup options (Python 3.11 recommended).

βœ… Option A: Conda (Recommended)

conda env create -f environment.yml
conda activate fruitbench

βœ… Option B: pip

pip install -r requirements.txt

πŸš€ Usage

1. Clone the Repository

git lfs install
git clone https://huggingface.co/datasets/TJIET/FruitBench

3. Evaluate Models

As an example, the evaluation command for CogVLM2-Llama3-Chat is:

python scripts/CogVLM2-0-shot.py

πŸ“Š Benchmark Details

  • βœ… 3,200 annotated fruit images
  • πŸ“¦ 16 fruit types: strawberry, tomato, guava, dragon fruit, orange, pear, lychee, mango, kiwi, papaya, apple, grape, pomegranate, peach, banana, pomelo
  • 🌱 4 growth stages: unripe, pest-damaged, mature, rotten
  • πŸ§‘β€πŸŒΎ Expert action labels: keep for growth / pick it / recover / discard
  • 🎯 Consumer scores: average of 30 human ratings (range: 1–100)