Datasets:
Vishva R commited on
Create README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263---language: - enlicense: othertask_categories: - visual-question-answering - image-text-to-texttags: - signature-detection - visual-grounding - document-ai - vqa - sft - qwen3.5pretty_name: Signature Detection SFTsize_categories: - 10K<n<100K---
# Signature Detection SFT (`Vishva007/signature-detection-sft`)
Supervised fine-tuning (SFT) multimodal dataset derived from [`Vishva007/signature-detection-annotated`](https://huggingface.co/datasets/Vishva007/signature-detection-annotated) (which itself extends [`tech4humans/signature-detection`](https://huggingface.co/datasets/tech4humans/signature-detection)). Each row pairs a document image and `image_id` with a structured prompt (`question`), a `task_type` label, a JSON-formatted `answer`, and a chat-formatted `messages` list ready for vision-language model (VLM) fine-tuning.
## Dataset Structure
- **Splits**: `train` (12,000 rows).- **Columns**: - `image` (`dict` / `Image`): Document image (JPEG bytes in the viewer/Parquet representation). - `messages` (`list` / `string`): Chat-style conversation list containing a `user` turn (`image` + `text` question) and an `assistant` turn (`text` JSON string). - `question` (`string`): Natural-language prompt asking about signature presence, location/bounding boxes, discovery, count, signed status, or signing roles. - `answer` (`string`): Serialized JSON object with `answer` (string), `is_present` (bool), `count` (int), and `signatures` (list of objects containing `role` and `bbox_2d` in `[ymin, xmin, ymax, xmax]` scaled to `0–1000`). - `task_type` (`string`): Task category expanded from the source annotations, such as: - `positive_grounding`: Signature-presence questions for roles present on the document. - `hard_negative_grounding`: Signature-presence questions for plausible roles absent from the document (`is_present: false`, `count: 0`, `signatures: []`). - `open_discovery`: Prompts asking to identify and locate all signatures present on the document. - `pure_vqa`: Questions about signature count, signed status, or signing roles. - `image_id` (`int64`): Identifier linking back to the source document in `Vishva007/signature-detection-annotated`.
## Data Generation & Provenance
1. **Upstream Source**: Built on top of [`Vishva007/signature-detection-annotated`](https://huggingface.co/datasets/Vishva007/signature-detection-annotated) (teacher annotations generated via `Vishva007/Qwen3.5-9B-W4A16-AutoRound-GPTQ` over orientation-corrected, enhanced document images from `tech4humans/signature-detection`).2. **SFT Formatting**: Unpacks annotation entries across task types into individual VLM training examples with standardized JSON assistant responses and `messages` payloads.
## Usage
```pythonfrom datasets import load_dataset
ds = load_dataset("Vishva007/signature-detection-sft", split="train")sample = ds[0]
print("image_id:", sample["image_id"])print("task_type:", sample["task_type"])print("question:", sample["question"])print("answer:", sample["answer"])
```
## Limitations & Considerations
* **Weak / Synthetic Supervision**: Upstream role labels, bounding boxes, and negative prompts are teacher-generated and not manually verified; treat role titles and hard negatives as noisy/weak supervision.* **Coordinate Space**: `bbox_2d` values are normalized to `0–1000` on the orientation-corrected, enhanced image space used during teacher annotation.* **License**: Marked as `other`; inherit and verify compliance with the upstream [`tech4humans/signature-detection`](https://huggingface.co/datasets/tech4humans/signature-detection) dataset terms before commercial or restricted use.README.mdAdded+63