Vishva R commited on
Update README.md
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610723456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960---dataset_info: features: - name: image_id dtype: int64 - name: image dtype: image - name: width dtype: int32 - name: height dtype: int32 - name: objects struct: - name: id list: int64 - name: area list: int64 - name: bbox list: list: float32 length: 4 - name: category list: class_label: names: '0': signature - name: ground_truth_bboxes_norm_1000 struct: - name: '1' list: int64 - name: '2' list: int64 - name: '3' list: int64 - name: '4' list: int64 - name: '5' list: int64 - name: '6' list: int64 - name: '7' list: int64 - name: '8' list: int64 - name: has_signatures dtype: bool - name: marks list: - name: id dtype: int64 - name: label dtype: string - name: positive_grounding list: - name: queried_role dtype: string - name: question dtype: string - name: answer_text dtype: string - name: target_ids list: int64 - name: hard_negative_grounding list: - name: queried_role dtype: string - name: question dtype: string - name: answer_text dtype: string - name: target_ids list: int64 - name: open_discovery list: - name: question dtype: string - name: answer_text dtype: string - name: target_ids list: int64 - name: pure_vqa list: - name: question dtype: string - name: answer_text dtype: string splits: - name: train num_bytes: 115855298 num_examples: 1980 - name: validation num_bytes: 18509159 num_examples: 420 - name: test num_bytes: 18733823 num_examples: 419 download_size: 150529595 dataset_size: 153098280configs:- config_name: default data_files: - split: train path: data/train-* - split: validation path: data/validation-* - split: test path: data/test-*pretty_name: Signature Detection Annotatedlicense: othertask_categories:- question-answering- image-text-to-textlanguage:- ensize_categories:- 1K<n<10Ktags:- signature-detection- visual-grounding- document-ai- vqa---
# Signature Detection Annotated
Teacher-annotated extension of [`tech4humans/signature-detection`](https://huggingface.co/datasets/tech4humans/signature-detection). Every original column and every original row of the source splits (`train`, `validation`, `test`) is preserved. Seven annotation columns generated by `dataset_generation.py` are added on top.
Rows without a generated annotation JSON keep the source row and get `null` / empty values in the added columns, so the splits remain row-for-row identical to the source dataset.
## Added columns
| Column | Type | Description || --- | --- | --- || `ground_truth_bboxes_norm_1000` | struct of `list<int64>` | Ground-truth signature boxes, keyed by badge id (`"1"`, `"2"`, ...), in normalized `(x1, y1, x2, y2)` coordinates on a 0-1000 grid. `null` for boxes that do not exist in that sample. || `has_signatures` | bool | Whether the document contains at least one signature. || `marks` | list of `{id, label}` | Badge id and inferred role/title (e.g. `Director`, `Secretary`) for every marked region. || `positive_grounding` | list of QA | Signature-presence questions whose answers point to one or more badge ids in `target_ids`. || `hard_negative_grounding` | list of QA | Signature-presence questions for plausible roles that are absent; `target_ids` is empty. || `open_discovery` | list of QA | Ask to identify and locate all signatures; `target_ids` holds every badge id. || `pure_vqa` | list of QA | Questions about signature count, signed status, or which roles signed; no bounding-box targets. |
Questions and answers never mention badge numbers or red boxes; ids appear only in `marks[].id` and `target_ids`.
## How the annotations were produced
1. Document images are orientation-corrected with `PP-LCNet_x1_0_doc_ori`; COCO boxes are rotated with the image.2. Images are upscaled (min dimension 1600 px), sharpened, and contrast-adjusted.3. Signature regions are drawn as red boxes with numbered badges (Set-of-Mark).4. `Vishva007/Qwen3.5-9B-W4A16-AutoRound-GPTQ` served through vLLM returns structured JSON teacher annotations, which are post-processed to enforce per-task caps, valid target ids, and text rules.
Source: `tech4humans/signature-detection`. See that dataset's card for its license, citation, and provenance.
## Limitations
- Annotations are model-generated and not human-verified; treat role labels and negative questions as weak supervision.- Rows without a generated JSON have empty annotation columns; filter on `has_signatures` or on non-empty `marks` when a fully annotated subset is needed.- Bounding boxes are normalized to 0-1000 and refer to the orientation-corrected, enhanced image.
## Usage
```pythonfrom datasets import load_dataset
ds = load_dataset("Vishva007/signature-detection-annotated")print(ds["train"][0])```README.md+58-106