Skip to content
Back to skills

Foodseg103 Eval

ASecurity

Evaluates fine-grained semantic segmentation and ingredient localization in food images. It probes a model's ability to handle pixel-wise mask prediction under high appearance variability, long-tailed class distributions, and cross-domain generalization to unseen cuisines. Use when the user wants to benchmark on FoodSeg103, or asks about evaluating this task. Reports mIoU.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
researchpythontesting

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill foodseg103-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Foodseg103 Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Foodseg103 Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-foodseg103-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-foodseg103-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: foodseg103-eval
description: Evaluates fine-grained semantic segmentation and ingredient localization in food images. It probes a model's ability to handle pixel-wise mask prediction under high appearance variability, long-tailed class distributions, and cross-domain generalization to unseen cuisines. Use when the user wants to benchmark on FoodSeg103, or asks about evaluating this task. Reports mIoU.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2105.05409
  bibtex_key: [REDACTED]
  confidence: high
---

# foodseg103-eval

> A Large-Scale Benchmark for Food Image Segmentation — Xiongwei Wu et al. (2021) (arXiv:2105.05409, 2021)

## What this evaluates

Evaluates fine-grained semantic segmentation and ingredient localization in food images. It probes a model's ability to handle pixel-wise mask prediction under high appearance variability, long-tailed class distributions, and cross-domain generalization to unseen cuisines.

## Datasets

- **FoodSeg103** — total 7118; splits: train (4983), test (2135)

## Metrics

- `mIoU` **(primary)** — range: [0, 1]
  - Mean Intersection over Union across all 103 ingredient classes. Computed as the average of IoU per class, where IoU = true positives / (true positives + false positives + false negatives).

## Input / output format

**Input**: RGB food images (typically resized to 2049×1024 and cropped to 768×768 during training) with pixel-wise ground truth masks labeling 103 fine-grained ingredient classes.

**Output**: Pixel-wise segmentation mask of the same spatial dimensions as the input image, where each pixel is assigned an ingredient class label (0–102).

## Scoring recipe

```python
def compute_miou(pred_masks, gt_masks, num_classes=103):
    ious = []
    for c in range(num_classes):
        pred_c = (pred_masks == c)
        gt_c = (gt_masks == c)
        intersection = np.logical_and(pred_c, gt_c).sum()
        union = np.logical_or(pred_c, gt_c).sum()
        ious.append(intersection / union if union > 0 else 1.0)
    return np.mean(ious)
```

## Common pitfalls

- The 7:3 train/test split is image-level random, which may cause data leakage if image IDs are not strictly separated.
- Cross-domain evaluation on the Asian food subset (FoodSeg154) only evaluates 62 overlapping classes for baseline comparisons, but 112 classes when fine-tuned, requiring careful metric reporting alignment.
- ReLeM variants (LSTM vs Transformer) and backbone choices (ResNet-50 vs ViT-16/B) significantly impact mIoU, so ablation must match these configurations exactly.

## Evidence (verbatim from paper)

> We randomly divide FoodSeg103 dataset into two splits: training set and testing set, according to the 7:3 ratio. Our training set contains 4,983 images with 29,530 ingredient masks, while testing set contains 2,135 images with 12,567 ingredient masks. The experiment results of CCNet, FPN and SeTR on FoodSeg103 are shown in Table [3].

| Methods | mIoU | mAcc | Model Size |

## Citation

```bibtex
@misc{wu2021foodseg103,
  title={A Large-Scale Benchmark for Food Image Segmentation},
  author={Xiongwei Wu et al. (2021)},
  year={2021},
  note={arXiv:2105.05409}
}
```

- arXiv: 2105.05409

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.