multimodalart's picture
multimodalart HF Staff
Upload folder using huggingface_hub
c7de77a verified
|
Raw
History Blame Contribute Delete
1.41 kB

A newer version of the Gradio SDK is available: 6.22.0

Upgrade
metadata
title: Structured Defect Grounding
emoji: πŸ”Ž
colorFrom: red
colorTo: yellow
sdk: gradio
sdk_version: 6.19.0
app_file: app.py
python_version: '3.12'
short_description: Ground localized defects in AI-generated images
startup_duration_timeout: 1h
pinned: false

Structured Defect Grounding for Text-to-Image Feedback

Interactive demo of the SDG detector from "Where, What, Why, and Importance: Structured Defect Grounding for Text-to-Image Feedback" (arXiv:2606.06113).

The detector (P1n3/sdg-detector-grpo) is a GRPO-tuned Qwen3-VL-4B model that turns text-to-image diagnosis into structured set prediction. For every localized defect it predicts:

  • Where β€” a bounding box (normalized 0–1000).
  • What β€” artifact (visual defect) or misalignment (caption/image mismatch).
  • Why β€” a short natural-language description.
  • Importance β€” a severity estimate when the model emits one.

Usage

Upload an AI-generated image and, optionally, the caption/prompt it was meant to depict (used for the misalignment checks). The app overlays the predicted defect boxes and renders a structured feedback table plus the model's reasoning.

Links