OmniFood-Bench
收藏资源简介:
OmniFood-Bench是由多所高校研究团队基于MM-Food-100K数据集构建的综合性基准测试集,旨在评估视觉语言模型在营养推理和个性化健康建议方面的能力。该数据集包含1,208个高质量样本,涵盖自制食品、餐厅食品、包装食品和生鲜原料四大类别,并标注了食材、烹饪方法、分量重量及营养成分等关键信息。其构建过程通过精心筛选和人工核查,确保了数据的多样性与可靠性,并依据权威健康标准建立了针对特定临床状况的摄入建议标签。该数据集主要应用于食品计算和医疗保健领域,旨在解决现有模型在从视觉感知到物理属性量化、再到安全关键健康咨询的端到端推理链中存在的“语义-物理鸿沟”问题,推动构建可信赖的自主健康代理。
OmniFood-Bench is a comprehensive benchmark dataset constructed by research teams from multiple universities based on the MM-Food-100K dataset, aiming to evaluate the capabilities of vision-language models in nutritional reasoning and personalized health advice. This dataset includes 1,208 high-quality samples covering four major categories: homemade foods, restaurant dishes, packaged foods, and fresh raw ingredients, with key annotations such as ingredients, cooking methods, serving weights, and nutritional components. Its construction process adopts rigorous screening and manual verification to ensure the diversity and reliability of the data, and establishes intake recommendation labels for specific clinical conditions based on authoritative health standards. Mainly applied in the fields of food computing and healthcare, this dataset aims to solve the "semantic-physical gap" problem in the end-to-end reasoning chain of existing models, which spans from visual perception to physical property quantification and then to safety-critical health consultation, and promotes the construction of trustworthy autonomous health agents.
数据集概述
该页面描述的是一个名为 OmniFood-Bench 的食物图像评估系统,专注于多模态大语言模型在食物图像分析任务上的评估。
数据集规模与内容
- 样本数量:包含 1,200 个食物样本。
- 图像来源:原始图像数据来自 Hugging Face 上的
Codatta/MM-Food-100K数据集。本仓库中图像文件夹food_datasets_1200/images因上传大小限制已被移除,可通过utils/download_1200_samples.py下载。
评估任务
系统支持对多模态模型进行以下四项任务的评估:
- 成分识别:识别食物图像中的食材。
- 营养分析:分析热量、蛋白质、脂肪、碳水化合物等营养成分。
- 疾病风险评估:评估食物对特定疾病的影响。
- 份量估计:估计食物的重量和份量大小。
支持的模型
- 闭源 API 模型:GPT-5.1、Claude-3.5-Sonnet(实际使用
claude-sonnet-4-20250514)、Gemini-3-Pro(实际使用gemini-3-flash系列)、Qwen3-VL-8B-Instruct。 - 开源本地模型:InternVL3.5-8B、Llama-3.2-11B-Vision-Instruct。
注意:部分文件命名中的模型编号可能不准确,实际模型信息请以对应研究论文为准。
输出与分析
评估结果包括:
- JSON 格式详细结果:存放于
output/json/。 - 可视化图表:包括柱状图、折线图、雷达图等,存放于
output/figure/。 - 统计报告:包括 MAPE 误差分析、食物类型分布统计、疾病风险评估统计等,存放于
output/sum_up/。
使用说明
- 环境要求:Python 3.9+、CUDA 11.8+(本地 GPU 模型)、16GB+ 内存。
- 安装:提供一键安装脚本
install_requirements.sh或手动安装方式(pip install -r requirements.txt)。 - 快速启动:可通过
bash/run_all.sh运行全部模型评估,或单独运行特定模型的评估脚本。 - 可视化:通过
utils/draw/run_all_plots.sh生成统计图表。
项目结构
food/ ├── src/ # 评估脚本 ├── bash/ # 执行脚本 ├── utils/ # 工具函数(绘图、数据收集) ├── output/ # 输出结果(JSON、图表、统计报告) ├── dataset/ # 数据集文件 ├── food_datasets_1200/ # 1200样本数据集 └── logs/ # 运行日志




