FanLR commited on
Commit
28dbedc
·
verified ·
1 Parent(s): e8aa2ba

Deploy private GroundingPI Gradio interface and ZeroGPU runtime

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .env.example +10 -0
  2. .gitattributes +21 -0
  3. .gitignore +14 -0
  4. LICENSE_PENDING.md +9 -0
  5. README.md +118 -8
  6. app.py +515 -0
  7. assets/Manrope-OFL.txt +93 -0
  8. assets/Manrope-variable.ttf +3 -0
  9. assets/SOURCES.md +7 -0
  10. assets/console.js +274 -0
  11. assets/frosted.css +148 -0
  12. assets/original.css +272 -0
  13. assets/paper.css +62 -0
  14. assets/xpeng-logo.png +0 -0
  15. cases/dense/dense-01-o365_bbox_gt50_00009110.jpg +3 -0
  16. cases/dense/dense-02-o365_bbox_gt50_00004676.jpg +3 -0
  17. cases/dense/dense-03-o365_bbox_gt50_00011992.jpg +3 -0
  18. cases/dense_point/dense_point-01-sensenova_sa1b_point_1067906__phrase_000.jpg +3 -0
  19. cases/dense_point/dense_point-02-sensenova_sa1b_point_1445784__phrase_002.jpg +3 -0
  20. cases/dense_point/dense_point-03-sensenova_sa1b_point_1451598__phrase_001.jpg +3 -0
  21. cases/grounding/grounding-01-object365-locate_anything_object365_object365-file-0027-row-000000119924.jpg +0 -0
  22. cases/grounding/grounding-02-object365-locate_anything_object365_object365-file-0027-row-000001469030.jpg +0 -0
  23. cases/grounding/grounding-03-object365-locate_anything_object365_object365-file-0027-row-000001076761.jpg +0 -0
  24. cases/gui/gui-01-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000043686__gui_0008.jpg +3 -0
  25. cases/gui/gui-02-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000006009__gui_0028.jpg +3 -0
  26. cases/gui/gui-03-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000041853__gui_0052.jpg +3 -0
  27. cases/layout/layout-01-layout_doclaynet_train_16966.jpg +3 -0
  28. cases/layout/layout-02-layout_doclaynet_train_20356.jpg +3 -0
  29. cases/layout/layout-03-layout_doclaynet_train_3435.jpg +3 -0
  30. cases/ocr/ocr-01-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000019189.jpg +0 -0
  31. cases/ocr/ocr-02-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000018671.jpg +3 -0
  32. cases/ocr/ocr-03-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000021130.jpg +3 -0
  33. cases/refer_point/refer_point-01-roboafford_affordance_point_paco_491580_000.jpg +0 -0
  34. cases/refer_point/refer_point-02-roboafford_affordance_point_paco_558444_002.jpg +0 -0
  35. cases/refer_point/refer_point-03-roboafford_affordance_point_paco_311488_000.jpg +0 -0
  36. cases/referring/referring-01-humanref_nocot_lf2_00007963.jpg +3 -0
  37. cases/referring/referring-02-humanref_nocot_lf2_00004121.jpg +3 -0
  38. cases/referring/referring-03-humanref_nocot_lf2_00011458.jpg +3 -0
  39. cases/visual_prompt/visual_prompt-01-sensenova_sa1b_visual_1718306.jpg +3 -0
  40. cases/visual_prompt/visual_prompt-02-sensenova_sa1b_visual_2475968.jpg +3 -0
  41. cases/visual_prompt/visual_prompt-03-sensenova_sa1b_visual_1573415.jpg +3 -0
  42. constraints-app.txt +68 -0
  43. data/cases.json +677 -0
  44. docs/HF_SPACE_DEPLOYMENT.md +67 -0
  45. docs/UI_PAPER_R7.md +26 -0
  46. docs/VERIFICATION.md +44 -0
  47. docs/ZEROGPU_DEPLOYMENT.md +47 -0
  48. docs/ui_lock.json +47 -0
  49. docs/ui_paper_r7_lock.json +47 -0
  50. grounding_demo/__init__.py +4 -0
.env.example ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Hugging Face Space -> Settings -> Variables
2
+ GROUNDING_BACKEND=zerogpu
3
+ GROUNDING_MODEL_REPO=XPENG-AI/GroundingPI-4B
4
+ GROUNDING_MODEL_REVISION=REPLACE_WITH_40_CHARACTER_MODEL_COMMIT_SHA
5
+ GROUNDING_MAX_TOKENS=1024
6
+ GROUNDING_GPU_SECONDS=120
7
+
8
+ # For a private/gated model, put HF_TOKEN in Settings -> Secrets, not this file.
9
+ # Local CUDA test alternative: unset REPO/REVISION and set GROUNDING_MODEL_PATH.
10
+ # HTTP rollback: GROUNDING_BACKEND=http and your approved GROUNDING_API_BASE.
.gitattributes CHANGED
@@ -33,3 +33,24 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/Manrope-variable.ttf filter=lfs diff=lfs merge=lfs -text
37
+ cases/dense/dense-01-o365_bbox_gt50_00009110.jpg filter=lfs diff=lfs merge=lfs -text
38
+ cases/dense/dense-02-o365_bbox_gt50_00004676.jpg filter=lfs diff=lfs merge=lfs -text
39
+ cases/dense/dense-03-o365_bbox_gt50_00011992.jpg filter=lfs diff=lfs merge=lfs -text
40
+ cases/dense_point/dense_point-01-sensenova_sa1b_point_1067906__phrase_000.jpg filter=lfs diff=lfs merge=lfs -text
41
+ cases/dense_point/dense_point-02-sensenova_sa1b_point_1445784__phrase_002.jpg filter=lfs diff=lfs merge=lfs -text
42
+ cases/dense_point/dense_point-03-sensenova_sa1b_point_1451598__phrase_001.jpg filter=lfs diff=lfs merge=lfs -text
43
+ cases/gui/gui-01-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000043686__gui_0008.jpg filter=lfs diff=lfs merge=lfs -text
44
+ cases/gui/gui-02-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000006009__gui_0028.jpg filter=lfs diff=lfs merge=lfs -text
45
+ cases/gui/gui-03-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000041853__gui_0052.jpg filter=lfs diff=lfs merge=lfs -text
46
+ cases/layout/layout-01-layout_doclaynet_train_16966.jpg filter=lfs diff=lfs merge=lfs -text
47
+ cases/layout/layout-02-layout_doclaynet_train_20356.jpg filter=lfs diff=lfs merge=lfs -text
48
+ cases/layout/layout-03-layout_doclaynet_train_3435.jpg filter=lfs diff=lfs merge=lfs -text
49
+ cases/ocr/ocr-02-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000018671.jpg filter=lfs diff=lfs merge=lfs -text
50
+ cases/ocr/ocr-03-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000021130.jpg filter=lfs diff=lfs merge=lfs -text
51
+ cases/referring/referring-01-humanref_nocot_lf2_00007963.jpg filter=lfs diff=lfs merge=lfs -text
52
+ cases/referring/referring-02-humanref_nocot_lf2_00004121.jpg filter=lfs diff=lfs merge=lfs -text
53
+ cases/referring/referring-03-humanref_nocot_lf2_00011458.jpg filter=lfs diff=lfs merge=lfs -text
54
+ cases/visual_prompt/visual_prompt-01-sensenova_sa1b_visual_1718306.jpg filter=lfs diff=lfs merge=lfs -text
55
+ cases/visual_prompt/visual_prompt-02-sensenova_sa1b_visual_2475968.jpg filter=lfs diff=lfs merge=lfs -text
56
+ cases/visual_prompt/visual_prompt-03-sensenova_sa1b_visual_1573415.jpg filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ .env
5
+ .env.*
6
+ !.env.example
7
+ .cache/
8
+ *.log
9
+ *.zip
10
+ *.safetensors
11
+ *.bin
12
+ model/
13
+ models/
14
+ verification/
LICENSE_PENDING.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # License and asset review pending
2
+
3
+ This preparation does not grant a new project-wide license. The rights owner must
4
+ approve code distribution, model access, example-image reuse and XPENG branding
5
+ before public release. This notice is not a LICENSE file. Existing third-party
6
+ notices, including the bundled Manrope SIL Open Font License, remain applicable.
7
+
8
+ Private upload also requires authorization to transfer these assets to the hosting
9
+ provider. Do not infer image redistribution rights from a training-pool path.
README.md CHANGED
@@ -1,15 +1,125 @@
1
  ---
2
- title: GroundingPI 4B
3
- emoji: 🚀
4
- colorFrom: red
5
  colorTo: green
6
  sdk: gradio
7
- sdk_version: 6.27.0
8
- python_version: '3.12'
9
- app_file: app.py
10
  pinned: false
11
  license: cc-by-nc-sa-4.0
12
- short_description: GroundingPI-4B
 
13
  ---
14
 
15
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: GroundingPI
3
+ emoji: 🎯
4
+ colorFrom: purple
5
  colorTo: green
6
  sdk: gradio
7
+ sdk_version: 5.49.1
8
+ python_version: 3.12.12
9
+ app_file: space_app.py
10
  pinned: false
11
  license: cc-by-nc-sa-4.0
12
+ models:
13
+ - XPENG-AI/GroundingPI-4B
14
  ---
15
 
16
+ # GroundingPI · Precise Visual Grounding
17
+
18
+ **From language to spatial evidence.**
19
+
20
+ An interactive research workspace for locating objects, reading text and exploring
21
+ interaction targets. Choose a task, provide an image and a prompt, then inspect
22
+ the model's predictions directly on the image.
23
+
24
+ Model: [XPENG-AI/GroundingPI-4B](https://huggingface.co/XPENG-AI/GroundingPI-4B).
25
+ This private preview is hosted at `FanLR/GroundingPI-4B`. HF ZeroGPU inference
26
+ acceptance remains pending. Licensing and asset permissions are pending:
27
+ see [license status](LICENSE_PENDING.md).
28
+
29
+ ## Explore visual evidence
30
+
31
+ | Task | Interaction |
32
+ | --- | --- |
33
+ | Grounding | Enter object categories separated by commas |
34
+ | Dense | Localize instances in crowded or small-object scenes |
35
+ | Referring | Describe a particular object or person |
36
+ | Dense Point | Locate multiple targets as image-relative points |
37
+ | Referring Point | Identify a target position from a referring expression |
38
+ | Visual Prompt | Supply an input region as a visual condition |
39
+ | OCR | Read text with its associated location |
40
+ | Layout | Localize document regions |
41
+ | GUI | Point to an interface target; no UI action is executed |
42
+
43
+ 1. Select a task and a curated example, or upload your own image.
44
+ 2. Write the request in the prompt field and select **Run Grounding**.
45
+ 3. Select a category to focus individual instances. Use next/previous, zoom and
46
+ fit-to-canvas; press Escape to leave focus.
47
+ 4. Inspect the compiled prompt, normalized coordinates and raw GAM tokens.
48
+
49
+ Predictions are drawn directly on the canvas. There is no original/model/reference
50
+ view switch. Large regions use unfilled outlines; labels avoid obscuring small
51
+ targets. The renderer does not delete, merge or relocate predictions for appearance.
52
+ Visual Prompt's marked region is an **input condition**, not a model prediction.
53
+
54
+ Examples are qualitative scenarios selected from training pools, not a held-out
55
+ benchmark. An operational demo is not evidence of a reported accuracy or speedup.
56
+
57
+ ## Run locally
58
+
59
+ Use a separate Python 3.12 environment:
60
+
61
+ ```bash
62
+ python3 -m venv .venv
63
+ .venv/bin/python -m pip install -r requirements.txt
64
+ .venv/bin/python -m pip check
65
+ .venv/bin/python -m unittest discover -s tests -v
66
+ .venv/bin/python scripts/verify_ui.py
67
+ bash scripts/start.sh
68
+ ```
69
+
70
+ Without a model source, the page is an explicitly disconnected UI preview.
71
+ For a compatible NVIDIA GPU, set `GROUNDING_MODEL_PATH=/absolute/model/directory`
72
+ before startup. Do not also set `GROUNDING_MODEL_REPO`. Local execution does not
73
+ automatically allocate Hugging Face GPU resources.
74
+
75
+ The model is custom Oxygen-VL-v3 with a Kimi-K3 vision component, not a standard
76
+ Qwen3-VL package. Keep the checkpoint's tokenizer, processor, template and custom
77
+ code. Native generation uses BF16, SDPA and greedy decoding; vLLM/SGLang are not
78
+ required for this Space runtime.
79
+
80
+ ## Deploy a private Hugging Face Space
81
+
82
+ Follow [the deployment guide](docs/HF_SPACE_DEPLOYMENT.md). Upload the contents of
83
+ this directory to a **Gradio Space**, not the parent release workspace and not a ZIP.
84
+
85
+ Configure `GROUNDING_BACKEND=zerogpu`, `GROUNDING_MODEL_REPO` and
86
+ `GROUNDING_MODEL_REVISION` with the reviewed full 40-character model commit SHA.
87
+ Store a scoped read-only `HF_TOKEN` as a Space **Secret** for private weights.
88
+ Do not put credentials in code or Variables.
89
+
90
+ The model is initialized once at process startup. ZeroGPU leases GPU compute for
91
+ inference; it is not an instruction to reload model weights on every request.
92
+ See [runtime design](docs/ZEROGPU_DEPLOYMENT.md).
93
+
94
+ ## Verification boundary
95
+
96
+ The existing PPU implementation has completed real generation and UI checks.
97
+ This package includes automated regressions for prompts, parsing, stale-result
98
+ clearing, error recovery and overlay geometry. **NVIDIA / HF ZeroGPU acceptance
99
+ remains pending.** See [verification](docs/VERIFICATION.md).
100
+
101
+ The default queue is single-concurrency with at most eight waiting requests.
102
+ Uploads are limited to 30 MiB / 50 megapixels, and input plus output to 8,192 tokens.
103
+ The default output budget is 1,024 tokens. Truncation is reported rather than
104
+ presented as a complete prediction. Failed calls never fall back to annotations.
105
+
106
+ ## Project map
107
+
108
+ ```text
109
+ space_app.py Startup and queue
110
+ app.py + assets/ Canvas, controls and presentation
111
+ grounding_demo/ Native inference, prompt compiler, GAM parser and overlays
112
+ cases/ + data/ Qualitative examples and provenance metadata
113
+ scripts/ Launch, package checks and regression helpers
114
+ tests/ Automated behavior and integrity checks
115
+ docs/ Deployment, runtime and verification notes
116
+ ```
117
+
118
+ ## Responsible release
119
+
120
+ Do not upload confidential or personal images without permission. The demo is not
121
+ a safety-critical controller, and its coordinates are not calibrated robot/world
122
+ coordinates. Source data licenses, example redistribution, XPENG branding and final
123
+ model/code licenses require owner review. Font and asset notices are in
124
+ [assets/SOURCES.md](assets/SOURCES.md). Paper citation and approved benchmark results
125
+ will be added after confirmation; they are not invented in this release candidate.
app.py ADDED
@@ -0,0 +1,515 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import base64
4
+ import html
5
+ import json
6
+ import os
7
+ from io import BytesIO
8
+
9
+ import gradio as gr
10
+ from PIL import Image
11
+
12
+ from grounding_demo.catalog import ROOT, load_cases
13
+ from grounding_demo.client import GroundingClient
14
+ from grounding_demo.console import TASK_HELP, compile_query, metrics_html, query_from_prompt, targets_html, task_help_html
15
+ from grounding_demo.protocol import parse_gam, parse_reference_boxes
16
+ from grounding_demo.render import draw_primitives
17
+
18
+ ROUTE_META = {
19
+ "grounding": ("Grounding", "Open-vocabulary object localization"),
20
+ "dense": ("Dense", "Dense instance localization"),
21
+ "referring": ("Referring", "Language-guided referring"),
22
+ "dense_point": ("Dense Point", "Dense point prediction"),
23
+ "refer_point": ("Referring Point", "Relational and affordance pointing"),
24
+ "visual_prompt": ("Visual Prompt", "Exemplar-guided localization"),
25
+ "ocr": ("OCR", "Text recognition and localization"),
26
+ "layout": ("Layout", "Document structure analysis"),
27
+ "gui": ("GUI", "Interface element grounding"),
28
+ }
29
+ CASES = load_cases()
30
+ BY_ID = {row["id"]: row for row in CASES}
31
+ BY_ROUTE = {route: [row for row in CASES if row["route"] == route] for route in ROUTE_META}
32
+
33
+
34
+ def route_choices(route):
35
+ return [(row["title"], row["id"]) for row in BY_ROUTE[route]]
36
+
37
+
38
+ def gallery_items(route):
39
+ return [
40
+ (str(ROOT / row["image"]), case_caption(row, i))
41
+ for i, row in enumerate(BY_ROUTE[route], 1)
42
+ ]
43
+
44
+
45
+ def case_caption(row, index):
46
+ return f"{ROUTE_META[row['route']][0]} {index:02d}"
47
+
48
+
49
+ def input_view(path, canonical, route):
50
+ """Show only user-supplied reference boxes; the client still receives raw path."""
51
+ references = parse_reference_boxes(canonical) if route == "visual_prompt" else ()
52
+ if not references or not path:
53
+ return path
54
+ with Image.open(path) as source:
55
+ return draw_primitives(source, (), references, "INPUT · example boxes")
56
+
57
+
58
+ def query_update(canonical, route):
59
+ return gr.update(value=query_from_prompt(canonical, route), placeholder=TASK_HELP[route][3])
60
+
61
+
62
+ def case_meta(row):
63
+ return (
64
+ "<div class='source-meta'><span>TRAINING SOURCE</span>"
65
+ f"<b>{html.escape(row['source'])}</b><span>IMAGE SHA256</span>"
66
+ f"<code>{row.get('image_sha256', '')[:16]}</code>"
67
+ "<small>Curated research examples for qualitative exploration, not a held-out benchmark. Inference receives only the image and task prompt.</small></div>"
68
+ )
69
+
70
+
71
+ def status_html(text, kind="ready"):
72
+ return (
73
+ f"<div class='stage-status {kind}' data-phase='{kind}' role='status' aria-live='polite'>"
74
+ f"<i aria-hidden='true'></i><span>{html.escape(text)}</span>"
75
+ + ("<time class='wait-clock' aria-hidden='true'>0.0 s</time>" if kind == "busy" else "")
76
+ + "</div>"
77
+ )
78
+
79
+
80
+ def reset_image(path, case_id, route, canonical, meta):
81
+ return (
82
+ path,
83
+ case_id,
84
+ input_view(path, canonical, route),
85
+ query_update(canonical, route),
86
+ canonical,
87
+ meta,
88
+ metrics_html(ROUTE_META[route][0]),
89
+ targets_html([]),
90
+ "[]",
91
+ "",
92
+ status_html("Image ready · Run grounding to extract visual evidence"),
93
+ task_help_html(route),
94
+ )
95
+
96
+
97
+ def load_case(case_id):
98
+ row = BY_ID[case_id]
99
+ return reset_image(
100
+ str(ROOT / row["image"]), case_id, row["route"], row["prompt"], case_meta(row)
101
+ )
102
+
103
+
104
+ def change_route(route):
105
+ row = BY_ROUTE[route][0]
106
+ return (
107
+ gr.update(choices=route_choices(route), value=row["id"]),
108
+ gr.update(value=gallery_items(route), selected_index=0),
109
+ *load_case(row["id"]),
110
+ )
111
+
112
+
113
+ def choose_case(case_id):
114
+ row = BY_ID[case_id]
115
+ return gr.update(selected_index=BY_ROUTE[row["route"]].index(row)), *load_case(case_id)
116
+
117
+
118
+ def choose_gallery(route, evt: gr.SelectData):
119
+ index = evt.index[0] if isinstance(evt.index, tuple | list) else evt.index
120
+ row = BY_ROUTE[route][index]
121
+ return gr.update(value=row["id"]), *load_case(row["id"])
122
+
123
+
124
+ def upload_image(path, route, canonical):
125
+ if not path:
126
+ raise gr.Error("Select an image to continue.")
127
+ with Image.open(path) as image:
128
+ image.verify()
129
+ return reset_image(
130
+ path,
131
+ None,
132
+ route,
133
+ canonical,
134
+ "<div class='source-meta'><span>YOUR IMAGE</span><b>Uploaded image</b>"
135
+ "<small>Select a task and describe the visual evidence to extract.</small></div>",
136
+ )
137
+
138
+
139
+ def choose_upload(path, route, canonical):
140
+ return (
141
+ gr.update(value=None),
142
+ gr.update(selected_index=None),
143
+ *upload_image(path, route, canonical),
144
+ )
145
+
146
+
147
+ def edit_query(text, route, path):
148
+ return (
149
+ compile_query(text, route),
150
+ input_view(path, compile_query(text, route), route),
151
+ metrics_html(ROUTE_META[route][0]),
152
+ targets_html([]),
153
+ "[]",
154
+ "",
155
+ status_html("Prompt updated · Run grounding to refresh the overlay"),
156
+ )
157
+
158
+
159
+ def result_bundle(path, canonical, route, raw, elapsed=None, usage=None):
160
+ parsed = parse_gam(raw, route)
161
+ items = [dict(label=p.label, coordinates=list(p.coordinates)) for p in parsed.primitives]
162
+ valid_items = items if parsed.valid else []
163
+ image = Image.open(path).convert("RGB")
164
+ source_bytes = BytesIO()
165
+ image.save(source_bytes, format="PNG")
166
+ image_source = "data:image/png;base64," + base64.b64encode(source_bytes.getvalue()).decode()
167
+ rendered = (
168
+ draw_primitives(
169
+ image,
170
+ parsed.primitives,
171
+ parse_reference_boxes(canonical),
172
+ )
173
+ if parsed.valid
174
+ else image
175
+ )
176
+ state = "Completed"
177
+ if not parsed.valid:
178
+ state = "Protocol error"
179
+ message = (
180
+ f"Complete · {len(valid_items)} visual targets"
181
+ if parsed.valid
182
+ else "Output validation failed · " + "; ".join(parsed.errors)
183
+ )
184
+ return dict(
185
+ image=rendered,
186
+ metrics=metrics_html(ROUTE_META[route][0], state, len(valid_items), elapsed, usage),
187
+ targets=targets_html(valid_items, image_source=image_source),
188
+ normalized=json.dumps(valid_items, ensure_ascii=False, indent=2),
189
+ raw=raw,
190
+ status=status_html(
191
+ message, "error" if not parsed.valid else "ready"
192
+ ),
193
+ )
194
+
195
+
196
+ def display_bundle(bundle):
197
+ return tuple(
198
+ bundle[key] for key in ("image", "metrics", "targets", "normalized", "raw", "status")
199
+ )
200
+
201
+
202
+ def inference_error(exc):
203
+ timed_out = "timeout" in type(exc).__name__.lower()
204
+ return (
205
+ "Request timed out. Check the connection and retry; your image and prompt are preserved."
206
+ if timed_out else
207
+ "Inference unavailable. Check the connection and retry; your image and prompt are preserved."
208
+ )
209
+
210
+
211
+ def run_inference(path, query_text, route):
212
+ if not path:
213
+ raise gr.Error("Choose an example or upload an image first.")
214
+ canonical = compile_query(query_text, route)
215
+ try:
216
+ raw, elapsed, usage = GroundingClient().infer(path, canonical)
217
+ bundle = result_bundle(path, canonical, route, raw, elapsed, usage)
218
+ except Exception as exc:
219
+ message = inference_error(exc)
220
+ return (
221
+ path,
222
+ metrics_html(ROUTE_META[route][0], "API error"),
223
+ targets_html([]),
224
+ "[]",
225
+ f"{type(exc).__name__}: {exc}",
226
+ status_html(message, "error"),
227
+ )
228
+ return display_bundle(bundle)
229
+
230
+
231
+ RUN_LABEL = "Run Grounding"
232
+
233
+
234
+ def run_inference_stream(path, query_text, route):
235
+ """Expose real request state without an opaque progress mask or synthetic steps."""
236
+ if not path:
237
+ raise gr.Error("Choose an example or upload an image first.")
238
+ yield (
239
+ path,
240
+ metrics_html(ROUTE_META[route][0], "Awaiting inference"),
241
+ targets_html([], pending=True),
242
+ "[]",
243
+ "",
244
+ status_html("Awaiting inference", "busy"),
245
+ gr.update(value="Grounding in progress…", interactive=False),
246
+ )
247
+ try:
248
+ result = run_inference(path, query_text, route)
249
+ except Exception as exc:
250
+ result = (
251
+ path,
252
+ metrics_html(ROUTE_META[route][0], "API error"),
253
+ targets_html([]),
254
+ "[]",
255
+ f"{type(exc).__name__}: {exc}",
256
+ status_html(inference_error(exc), "error"),
257
+ )
258
+ yield (*result, gr.update(value=RUN_LABEL, interactive=True))
259
+
260
+
261
+ def run_console(path, query_text, route):
262
+ for state in run_inference_stream(path, query_text, route):
263
+ yield (*state, state[-1])
264
+
265
+
266
+ def service_status():
267
+ ok, detail = GroundingClient().health()
268
+ return (
269
+ f"<div class='api-status {'online' if ok else 'offline'}' role='status' aria-live='polite'>"
270
+ f"<i aria-hidden='true'></i><b>{'Inference ready' if ok else 'Inference offline'}</b>"
271
+ f"<small>{'Model loaded. Ready to process your image.' if ok else 'Explore examples while the inference service is unavailable.'}</small></div>"
272
+ f"<details class='connection-detail'><summary>Runtime details</summary><code>{html.escape(detail)}</code></details>"
273
+ )
274
+
275
+
276
+ CSS = (ROOT / "assets" / "paper.css").read_text(encoding="utf-8")
277
+ CSS += "\n" + (ROOT / "assets" / "original.css").read_text(encoding="utf-8")
278
+ CSS = CSS.replace(
279
+ "__MANROPE_DATA__",
280
+ base64.b64encode((ROOT / "assets" / "Manrope-variable.ttf").read_bytes()).decode(),
281
+ )
282
+ # Gradio 5 scopes css= rules inside .contain, including media-query selectors.
283
+ # Host sizing must live in head; workbench styling remains scoped.
284
+ HOST_HEAD = """<style id="grounding-host-layout">
285
+ gradio-app:has(#console) .gradio-container { width:100%!important; max-width:1800px!important; min-width:0!important; box-sizing:border-box; overflow:clip!important; padding:24px 32px 32px!important; margin:0 auto!important; }
286
+ gradio-app:has(#console) .gradio-container>main { width:100%!important; max-width:none!important; min-width:0!important; padding:0!important; }
287
+ gradio-app:has(#console) .gradio-container .contain { max-width:none!important; }
288
+ gradio-app:has(#console) footer:not(.studio-footer) { display:none!important; }
289
+ @media(max-width:760px) { gradio-app:has(#console) .gradio-container { padding:16px 14px!important; } }
290
+ @media(max-width:430px) { gradio-app:has(#console) .gradio-container { padding:12px 10px!important; } }
291
+ </style>"""
292
+ JS = (ROOT / "assets" / "console.js").read_text(encoding="utf-8")
293
+ LOGO = (
294
+ "data:image/png;base64,"
295
+ + base64.b64encode((ROOT / "assets" / "xpeng-logo.png").read_bytes()).decode()
296
+ )
297
+ first_route = "grounding"
298
+ first_case = BY_ROUTE[first_route][2]
299
+
300
+ with gr.Blocks(
301
+ css=CSS,
302
+ js=JS,
303
+ head=HOST_HEAD,
304
+ title="GroundingPI · Visual Studio",
305
+ theme=gr.themes.Base(font=["Manrope", "sans-serif"], font_mono=["ui-monospace", "monospace"]),
306
+ analytics_enabled=False,
307
+ ) as demo:
308
+ image_state = gr.State(str(ROOT / first_case["image"]))
309
+ case_state = gr.State(first_case["id"])
310
+ gr.HTML(
311
+ """<header class="studio-header">
312
+ <div><h1>Precise Visual Grounding</h1><p class="header-description">From language to spatial evidence. Explore objects, text, and interaction targets in a unified visual workspace.</p></div>
313
+ <span class="header-scope">INTERACTIVE RESEARCH DEMO</span>
314
+ </header>
315
+ """
316
+ )
317
+ with gr.Column(elem_id="console"):
318
+ with gr.Row(elem_id="workspace-top", equal_height=True):
319
+ with gr.Column(scale=3, min_width=280, elem_id="controls"):
320
+ gr.HTML(
321
+ """<div class="control-brand">
322
+ <img class="xpeng-logo" src="__XPENG_LOGO__" alt="XPENG" width="180" height="46"/>
323
+ <h2>Grounding<span>PI</span></h2>
324
+ <p>A visual foundation for spatial understanding.</p>
325
+ </div>""".replace("__XPENG_LOGO__", LOGO)
326
+ )
327
+ with gr.Column(elem_id="control-settings"):
328
+ with gr.Row(elem_id="control-fields"):
329
+ gr.HTML(
330
+ """<div class="media-field"><span>Media Type</span><div>
331
+ <span>Image</span></div></div>""",
332
+ elem_id="media-type",
333
+ )
334
+ route = gr.Dropdown(
335
+ [(name, key) for key, (name, _) in ROUTE_META.items()],
336
+ value=first_route,
337
+ label="Task Type",
338
+ filterable=False,
339
+ elem_id="route-select",
340
+ )
341
+ case = gr.Dropdown(
342
+ route_choices(first_route),
343
+ value=first_case["id"],
344
+ label="Selected example",
345
+ filterable=False,
346
+ visible=False,
347
+ elem_id="case-select",
348
+ )
349
+ upload = gr.UploadButton(
350
+ "Upload Image", file_types=["image"], type="filepath", elem_id="upload-button"
351
+ )
352
+ with gr.Accordion("Advanced Parameters", open=False, elem_id="advanced-options"):
353
+ gr.HTML(
354
+ "<div class='runtime-options'><span>Model</span><b>"
355
+ + html.escape(os.getenv("GROUNDING_MODEL", "grounding-pi-vlm"))
356
+ + "</b><span>Max output tokens</span><b>"
357
+ + html.escape(os.getenv("GROUNDING_MAX_TOKENS", "1024"))
358
+ + "</b><small>Read-only runtime configuration. Only the current image and task prompt enter inference.</small></div>"
359
+ )
360
+ with gr.Column(elem_id="service-panel"):
361
+ health = gr.HTML("<div class='api-status'>Checking inference service…</div>")
362
+ health_btn = gr.Button("Refresh connection", size="sm", elem_id="health-button")
363
+ run_btn = gr.Button(RUN_LABEL, variant="primary", elem_id="run-button")
364
+ with gr.Column(scale=7, min_width=400, elem_id="visual-stage"):
365
+ task_help = gr.HTML(task_help_html(first_route), elem_id="task-guide")
366
+ with gr.Row(elem_id="stage-toolbar"):
367
+ status = gr.HTML(status_html("Image ready"), elem_id="stage-status")
368
+ with gr.Column(elem_id="canvas-viewport"):
369
+ stage = gr.Image(
370
+ value=input_view(str(ROOT / first_case["image"]), first_case["prompt"], first_route),
371
+ type="filepath",
372
+ interactive=False,
373
+ show_label=False,
374
+ height=400,
375
+ elem_id="stage-image",
376
+ show_download_button=False,
377
+ show_fullscreen_button=False,
378
+ )
379
+ gr.HTML(
380
+ """<div class="canvas-tools" aria-label="Canvas tools">
381
+ <span class="image-dimensions">Image canvas</span>
382
+ <div class="zoom-tools">
383
+ <button type="button" data-canvas="out" aria-label="Zoom out" title="Zoom out">
384
+ <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M5 10h10"/></svg></button>
385
+ <output class="zoom-value" aria-label="Canvas zoom">100%</output>
386
+ <button type="button" data-canvas="in" aria-label="Zoom in" title="Zoom in">
387
+ <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M5 10h10M10 5v10"/></svg></button>
388
+ <span class="tool-divider"></span>
389
+ <button type="button" data-canvas="fit" aria-label="Fit to canvas" title="Fit to canvas">
390
+ <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M7 3H3v4m10-4h4v4M3 13v4h4m10-4v4h-4"/></svg></button>
391
+ <a class="canvas-download" download="grounding.png" aria-label="Download image" title="Download image">
392
+ <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 3v10m-4-4 4 4 4-4M4 14v3h12v-3"/></svg></a>
393
+ </div>
394
+ </div>""",
395
+ elem_id="canvas-chrome",
396
+ )
397
+ with gr.Row(elem_id="query-row"):
398
+ query = gr.Textbox(
399
+ value=query_from_prompt(first_case["prompt"], first_route),
400
+ label="What would you like to locate?",
401
+ show_label=False,
402
+ lines=2,
403
+ max_lines=4,
404
+ placeholder=TASK_HELP[first_route][3],
405
+ elem_id="query-dock",
406
+ )
407
+ gr.HTML("<p class='query-hint'>Enter to run · Shift + Enter for a new line</p>")
408
+ mobile_run = gr.Button(RUN_LABEL, variant="primary", elem_id="mobile-run-button")
409
+ with gr.Row(elem_id="review-row", equal_height=True):
410
+ with gr.Column(scale=4, min_width=320, elem_id="sandbox-panel"):
411
+ gr.HTML(
412
+ "<div class='film-heading'><h2>Explore Examples</h2><small>Curated visual scenarios</small></div>"
413
+ )
414
+ gallery = gr.Gallery(
415
+ value=gallery_items(first_route),
416
+ columns=3,
417
+ rows=1,
418
+ height=170,
419
+ show_label=False,
420
+ allow_preview=False,
421
+ object_fit="cover",
422
+ selected_index=2,
423
+ interactive=False,
424
+ elem_id="case-gallery",
425
+ )
426
+ with gr.Accordion("Data provenance", open=False, elem_id="source-details"):
427
+ meta = gr.HTML(case_meta(first_case))
428
+ with gr.Column(scale=6, min_width=420, elem_id="review-summary"):
429
+ with gr.Row(elem_id="result-columns", equal_height=True):
430
+ with gr.Column(scale=4, min_width=200, elem_id="metrics-panel"):
431
+ gr.HTML("<h2 class='inspector-subheading'>Inference Metrics</h2>")
432
+ metrics = gr.HTML(metrics_html(ROUTE_META[first_route][0]))
433
+ with gr.Column(scale=6, min_width=240, elem_id="sidebar"):
434
+ gr.HTML(
435
+ "<div class='inspector-heading'><h2>Visual Evidence</h2><span class='live-mark'>Select a category to inspect individual instances.</span></div>"
436
+ )
437
+ with gr.Column(elem_id="targets-panel"):
438
+ targets = gr.HTML(targets_html([]), elem_id="targets-content")
439
+ gr.HTML(
440
+ "<div class='evidence-detail' hidden><div class='detail-heading'><span>Detail View</span><small>Original pixels · magnified</small></div><div class='detail-image'></div><div class='detail-coordinates'></div></div>",
441
+ elem_id="detail-panel",
442
+ )
443
+ with gr.Accordion("Prompt Console", open=True, elem_id="prompt-console"):
444
+ prompt = gr.Textbox(
445
+ value=first_case["prompt"], label="COMPILED PROMPT", lines=3, interactive=False
446
+ )
447
+ gr.HTML(
448
+ "<div class='console-note'>Transparent inputs: only this image and compiled prompt are sent to the model. No annotations, training answers, or expected counts are included.</div>"
449
+ )
450
+ with gr.Accordion("Structured Output", open=True, elem_id="output-console"):
451
+ normalized = gr.Code(
452
+ value="[]", language="json", label="PARSED COORDINATES · 0–999", interactive=False
453
+ )
454
+ with gr.Accordion("Native Token Sequence", open=False):
455
+ raw = gr.Textbox(label="RAW GAM SPECIAL TOKENS", lines=4, interactive=False)
456
+ gr.HTML(
457
+ "<footer class='studio-footer'><span>GroundingPI · Visual Evidence, Precisely Grounded</span><span>Research demonstration <i>Qualitative examples, not benchmark results.</i></span></footer>"
458
+ )
459
+
460
+ reset_outputs = [
461
+ image_state,
462
+ case_state,
463
+ stage,
464
+ query,
465
+ prompt,
466
+ meta,
467
+ metrics,
468
+ targets,
469
+ normalized,
470
+ raw,
471
+ status,
472
+ task_help,
473
+ ]
474
+ event_options = dict(concurrency_id="console", concurrency_limit=1, show_progress="hidden")
475
+ case.input(choose_case, case, [gallery, *reset_outputs], **event_options)
476
+ route.input(change_route, route, [case, gallery, *reset_outputs], **event_options)
477
+ gallery.select(choose_gallery, route, [case, *reset_outputs], **event_options)
478
+ upload.upload(
479
+ choose_upload, [upload, route, prompt], [case, gallery, *reset_outputs], **event_options
480
+ )
481
+ query.input(
482
+ edit_query,
483
+ [query, route, image_state],
484
+ [prompt, stage, metrics, targets, normalized, raw, status],
485
+ trigger_mode="always_last",
486
+ **event_options,
487
+ )
488
+ run_btn.click(
489
+ run_console,
490
+ [image_state, query, route],
491
+ [stage, metrics, targets, normalized, raw, status, run_btn, mobile_run],
492
+ **event_options,
493
+ )
494
+ query.submit(
495
+ run_console,
496
+ [image_state, query, route],
497
+ [stage, metrics, targets, normalized, raw, status, run_btn, mobile_run],
498
+ **event_options,
499
+ )
500
+ mobile_run.click(
501
+ run_console, [image_state, query, route],
502
+ [stage, metrics, targets, normalized, raw, status, run_btn, mobile_run],
503
+ **event_options,
504
+ )
505
+ health_btn.click(service_status, outputs=health, show_progress="hidden")
506
+ demo.load(service_status, outputs=health, show_progress="hidden")
507
+
508
+
509
+ if __name__ == "__main__":
510
+ demo.queue(default_concurrency_limit=1).launch(
511
+ server_name="0.0.0.0",
512
+ server_port=int(os.getenv("DEMO_PORT", "7860")),
513
+ root_path=os.getenv("DEMO_ROOT_PATH") or None,
514
+ show_error=True,
515
+ )
assets/Manrope-OFL.txt ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2018 The Manrope Project Authors (https://github.com/sharanda/manrope)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
assets/Manrope-variable.ttf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0639be45d0af36e798172419d7bd173c4bd4f29e2b76cbb69db1d11bf8b0a40
3
+ size 165420
assets/SOURCES.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # UI assets
2
+
3
+ - `xpeng-logo.png`: unchanged asset reused from the existing Oxygen demo at `X-CG_demo/public/xpeng-logo.png`; SHA256 `ff0db78ddf8f9a122eec74e8eb79581f8e5dbc46803dddeb780a06f5ae295750`. XPENG brand ownership is unchanged. The image is not a newly drawn logo.
4
+ - `Manrope-variable.ttf`: [Google Fonts Manrope source](https://github.com/google/fonts/tree/main/ofl/manrope), SIL Open Font License bundled as `Manrope-OFL.txt`. Embedded locally to avoid font-service requests through the Fuyao proxy.
5
+ - Empty-state, close and focus marks: authored SVG geometry in `grounding_demo/console.py` and `console.js`; focus geometry is generated exclusively from validated GAM coordinates.
6
+
7
+ Design guidance consulted: [Anthropic frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design) and [Impeccable](https://github.com/pbakaus/impeccable), animate/polish workflows. These are design references, not runtime dependencies.
assets/console.js ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ () => {
2
+ // Progressive enhancement: inference and view controls work without this script.
3
+ window.groundingConsoleCleanup?.();
4
+ const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');
5
+ const abort = new AbortController();
6
+ const listen = (el, event, fn) => el.addEventListener(event, fn, { signal: abort.signal });
7
+ let observer, resize, frame, interval, selected, targetRoot, image, lastSrc, lastDraw;
8
+ let waiting = false, waitStart = 0, ready = false, watchdog, instanceIndex = 0;
9
+ let zoom = 1, panX = 0, panY = 0, drag, moved = false;
10
+ const $ = s => document.querySelector(s);
11
+ const svg = (tag, attrs = {}) => {
12
+ const el = document.createElementNS('http://www.w3.org/2000/svg', tag);
13
+ Object.entries(attrs).forEach(([name, value]) => el.setAttribute(name, String(value)));
14
+ return el;
15
+ };
16
+ function removeLayer() {
17
+ $('#stage-image .focus-layer')?.remove();
18
+ $('#stage-image .focus-pixels')?.remove();
19
+ $('#canvas-viewport .focus-caption')?.remove();
20
+ lastDraw = null;
21
+ }
22
+ function clearSelection() {
23
+ selected = null;
24
+ instanceIndex = 0;
25
+ document.querySelectorAll('.target-chip[aria-pressed=true]').forEach(b => b.setAttribute('aria-pressed', 'false'));
26
+ const clear = $('.clear-focus');
27
+ if (clear) clear.hidden = true;
28
+ removeLayer();
29
+ const detail = $('.evidence-detail'); if (detail) detail.hidden = true;
30
+ }
31
+ function showDetail(coords) {
32
+ const detail = $('.evidence-detail'), preview = $('.detail-image');
33
+ if (!detail || !preview || !image?.naturalWidth) return;
34
+ detail.hidden = false;
35
+ const p = coords[instanceIndex];
36
+ const box = p.length === 4 ? p : [Math.max(0,p[0]-65), Math.max(0,p[1]-65), Math.min(999,p[0]+65), Math.min(999,p[1]+65)];
37
+ const iw = image.naturalWidth, ih = image.naturalHeight;
38
+ const cx = (box[0]+box[2])/1998*iw, cy = (box[1]+box[3])/1998*ih;
39
+ const cw = Math.max(32,(box[2]-box[0])/999*iw*1.3), ch = Math.max(32,(box[3]-box[1])/999*ih*1.3);
40
+ const scale = Math.min(preview.clientWidth/cw, preview.clientHeight/ch, 8);
41
+ const source = $('.focus-source');
42
+ preview.style.backgroundImage = `url(${JSON.stringify(source?.src || image.currentSrc || image.src)})`;
43
+ preview.style.backgroundSize = `${iw*scale}px ${ih*scale}px`;
44
+ preview.style.backgroundPosition = `${preview.clientWidth/2-cx*scale}px ${preview.clientHeight/2-cy*scale}px`;
45
+ $('.detail-coordinates').textContent = `Instance ${instanceIndex + 1} / ${coords.length} · [${p.join(', ')}]`;
46
+ }
47
+ function canvasTransform() {
48
+ const stage = $('#stage-image'); if (!stage) return;
49
+ const maxX = stage.clientWidth*(zoom-1)/2, maxY = stage.clientHeight*(zoom-1)/2;
50
+ panX = Math.max(-maxX,Math.min(maxX,panX)); panY = Math.max(-maxY,Math.min(maxY,panY));
51
+ stage.style.transform = `translate(${panX}px,${panY}px) scale(${zoom})`;
52
+ $('#canvas-viewport')?.classList.toggle('is-zoomed',zoom>1);
53
+ const value = $('.zoom-value'); if (value) value.textContent = `${Math.round(zoom*100)}%`;
54
+ const out = $('[data-canvas=out]'), up = $('[data-canvas=in]');
55
+ if (out) out.disabled = zoom<=1; if (up) up.disabled = zoom>=4;
56
+ }
57
+ function resetCanvas() { zoom=1; panX=panY=0; canvasTransform(); }
58
+ function drawSelection() {
59
+ const stage = $('#stage-image');
60
+ if (!selected?.isConnected || !image?.complete || !image.naturalWidth || waiting) return;
61
+ let coords;
62
+ try { coords = JSON.parse(selected.dataset.coordinates); } catch { clearSelection(); return; }
63
+ if (!Array.isArray(coords) || !coords.length || !coords.every(p => [2, 4].includes(p.length) && p.every(n => Number.isFinite(n) && n >= 0 && n <= 999))) {
64
+ clearSelection(); return;
65
+ }
66
+ const rect = image.getBoundingClientRect(), outer = stage.getBoundingClientRect();
67
+ const matrix = getComputedStyle(stage).transform;
68
+ const zoomNow = matrix === 'none' ? 1 : new DOMMatrixReadOnly(matrix).a;
69
+ const scale = Math.min(rect.width / zoomNow / image.naturalWidth, rect.height / zoomNow / image.naturalHeight);
70
+ const w = image.naturalWidth * scale, h = image.naturalHeight * scale;
71
+ if (w <= 0 || h <= 0) return;
72
+ const left = (rect.left - outer.left) / zoomNow + (rect.width / zoomNow - w) / 2;
73
+ const top = (rect.top - outer.top) / zoomNow + (rect.height / zoomNow - h) / 2;
74
+ instanceIndex = Math.max(0, Math.min(instanceIndex, coords.length - 1));
75
+ const signature = JSON.stringify([selected.dataset.label, instanceIndex, coords, image.currentSrc, left, top, w, h]);
76
+ if (signature === lastDraw) return;
77
+ const activeAction = document.activeElement?.closest('.focus-caption button')?.dataset.instance;
78
+ removeLayer(); lastDraw = signature;
79
+ const source = $('.focus-source');
80
+ if (source) {
81
+ const pixels = document.createElement('img');
82
+ pixels.className = 'focus-pixels'; pixels.alt = ''; pixels.setAttribute('aria-hidden', 'true'); pixels.src = source.src;
83
+ Object.assign(pixels.style, {left: `${left}px`, top: `${top}px`, width: `${w}px`, height: `${h}px`});
84
+ stage.append(pixels);
85
+ }
86
+ const layer = svg('svg', { viewBox: `0 0 ${w} ${h}`, 'aria-hidden': 'true', class: 'focus-layer' });
87
+ Object.assign(layer.style, { left: `${left}px`, top: `${top}px`, width: `${w}px`, height: `${h}px` });
88
+ const defs = svg('defs'), mask = svg('mask', { id: 'grounding-focus-mask', maskUnits: 'userSpaceOnUse', x: 0, y: 0, width: w, height: h });
89
+ mask.append(svg('rect', { width: w, height: h, fill: 'white' }));
90
+ const marks = [];
91
+ for (const p of [coords[instanceIndex]]) {
92
+ const attr = p.length === 4
93
+ ? { x: p[0] / 999 * w, y: p[1] / 999 * h, width: (p[2] - p[0]) / 999 * w, height: (p[3] - p[1]) / 999 * h, rx: 2 }
94
+ : { cx: p[0] / 999 * w, cy: p[1] / 999 * h, r: 13 };
95
+ const tag = p.length === 4 ? 'rect' : 'circle';
96
+ mask.append(svg(tag, { ...attr, fill: 'black' }));
97
+ marks.push(svg(tag, { ...attr, class: 'focus-outline', pathLength: 1 }));
98
+ }
99
+ defs.append(mask); layer.append(defs);
100
+ layer.append(svg('rect', { width: w, height: h, mask: 'url(#grounding-focus-mask)', class: 'focus-dimmer' }), ...marks);
101
+ const caption = document.createElement('div'); caption.className = 'focus-caption';
102
+ const label = document.createElement('span');
103
+ label.setAttribute('role', 'status'); label.setAttribute('aria-live', 'polite');
104
+ const evidence = 'Prediction';
105
+ label.textContent = `${evidence} · ${selected.dataset.label} · ${instanceIndex + 1} / ${coords.length}`;
106
+ label.title = label.textContent;
107
+ caption.append(label);
108
+ for (const [action, name, path] of [['prev', 'Previous instance', 'm12 5-5 5 5 5'], ['next', 'Next instance', 'm8 5 5 5-5 5']]) {
109
+ const button = document.createElement('button'); button.type = 'button'; button.dataset.instance = action;
110
+ button.setAttribute('aria-label', name); button.title = name; button.disabled = coords.length < 2;
111
+ const icon = svg('svg', {viewBox: '0 0 20 20', width: 16, height: 16, fill: 'none', 'aria-hidden': 'true'});
112
+ icon.append(svg('path', {d: path, stroke: 'currentColor', 'stroke-width': 1.7}));
113
+ button.append(icon); caption.append(button);
114
+ }
115
+ const close = document.createElement('button'); close.type = 'button'; close.className = 'focus-close'; close.setAttribute('aria-label', 'Close target focus');
116
+ const icon = svg('svg', { viewBox: '0 0 20 20', width: 16, height: 16, fill: 'none', 'aria-hidden': 'true' });
117
+ icon.append(svg('path', { d: 'm6 6 8 8m0-8-8 8', stroke: 'currentColor', 'stroke-width': 1.7, 'stroke-linecap': 'round' }));
118
+ close.title = 'Close focus and return to targets';
119
+ close.append(icon); caption.append(close); stage.append(layer); $('#canvas-viewport').append(caption);
120
+ if (activeAction) caption.querySelector(`[data-instance=${activeAction}]`)?.focus({preventScroll: true});
121
+ showDetail(coords);
122
+ }
123
+ function tick() {
124
+ if (document.hidden || !waiting) return;
125
+ const clock = $('.wait-clock');
126
+ if (clock) clock.textContent = `${((performance.now() - waitStart) / 1000).toFixed(1)} s`;
127
+ }
128
+ function setWaiting(value) {
129
+ if (value === waiting) return;
130
+ waiting = value;
131
+ $('#console').setAttribute('aria-busy', String(value));
132
+ for (const button of document.querySelectorAll('#run-button,#mobile-run-button')) {
133
+ button.disabled = value;
134
+ button.classList.toggle('is-waiting', value);
135
+ if (value) button.setAttribute('aria-label', 'Grounding in progress');
136
+ else button.removeAttribute('aria-label');
137
+ }
138
+ for (const id of ['controls', 'sandbox-panel', 'query-dock', 'upload-button', 'canvas-chrome']) {
139
+ const el = $(`#${id}`); if (el) el.inert = value;
140
+ }
141
+ clearInterval(interval);
142
+ if (!value) clearTimeout(watchdog);
143
+ if (value) { clearSelection(); resetCanvas(); waitStart = performance.now(); interval = setInterval(tick, 100); }
144
+ }
145
+ function clientStatus(text, phase) {
146
+ const node = document.createElement('div');
147
+ node.className = `stage-status ${phase}`; node.dataset.phase = phase;
148
+ node.setAttribute('role', 'status'); node.setAttribute('aria-live', 'polite');
149
+ const dot = document.createElement('i'); dot.setAttribute('aria-hidden', 'true');
150
+ const label = document.createElement('span'); label.textContent = text;
151
+ node.append(dot, label);
152
+ if (phase === 'busy') {
153
+ const clock = document.createElement('time'); clock.className = 'wait-clock';
154
+ clock.setAttribute('aria-hidden', 'true'); clock.textContent = '0.0 s'; node.append(clock);
155
+ }
156
+ $('#stage-status .stage-status')?.replaceWith(node);
157
+ }
158
+ // A reverse proxy can buffer the first SSE event. Acknowledge the actual click
159
+ // immediately; backend events still own final results and measured latency.
160
+ window.groundingConsoleBegin = () => {
161
+ if (!ready || waiting) return;
162
+ clientStatus('Request submitted · Awaiting inference', 'busy'); setWaiting(true);
163
+ watchdog = setTimeout(() => {
164
+ if (!waiting) return;
165
+ clientStatus('No result received. Check the connection and refresh. The server request has not been cancelled.', 'error');
166
+ setWaiting(false);
167
+ }, 330000);
168
+ };
169
+ function schedule() {
170
+ if (frame) return;
171
+ frame = requestAnimationFrame(() => { frame = null; reconcile(); });
172
+ }
173
+ function reconcile() {
174
+ const stage = $('#stage-image'), targets = $('#targets-content');
175
+ if (!stage || !targets) return;
176
+ setWaiting($('.stage-status')?.dataset.phase === 'busy');
177
+ const chips = targets.querySelector('.target-chips');
178
+ if (targetRoot !== chips) { targetRoot = chips; clearSelection(); }
179
+ const nextImage = stage.querySelector('img');
180
+ if (image !== nextImage) { image = nextImage; if (image) listen(image, 'load', schedule); }
181
+ const src = image?.currentSrc || image?.src;
182
+ const download = $('.canvas-download');
183
+ if (download && src) download.href = src;
184
+ if (src !== lastSrc) {
185
+ clearSelection(); resetCanvas(); lastSrc = src;
186
+ }
187
+ const dimensions = $('.image-dimensions');
188
+ if (dimensions && image?.naturalWidth) dimensions.textContent = `${image.naturalWidth} × ${image.naturalHeight} px${zoom>1 ? ' / drag to pan' : ''}`;
189
+ drawSelection();
190
+ }
191
+ function onClick(event) {
192
+ // The native click has already reached Gradio's button handler. Keep its
193
+ // State inputs untouched; only enhance presentation during network latency.
194
+ if (event.target.closest?.('#run-button,#mobile-run-button')) window.groundingConsoleBegin?.();
195
+ const instance = event.target.closest?.('[data-instance]')?.dataset.instance;
196
+ if (instance && selected && !waiting) {
197
+ const count = JSON.parse(selected.dataset.coordinates).length;
198
+ instanceIndex = (instanceIndex + (instance === 'next' ? 1 : -1) + count) % count;
199
+ drawSelection(); return;
200
+ }
201
+ const action = event.target.closest?.('[data-canvas]')?.dataset.canvas;
202
+ if (action && !waiting) {
203
+ if (action === 'fit') resetCanvas();
204
+ else { zoom=Math.max(1,Math.min(4,zoom+(action==='in'?.5:-.5))); canvasTransform(); }
205
+ schedule(); return;
206
+ }
207
+ const chip = event.target.closest?.('#targets-content .target-chip');
208
+ if (chip && !waiting) {
209
+ const wasSelected = chip === selected;
210
+ clearSelection();
211
+ if (!wasSelected) {
212
+ selected = chip; chip.setAttribute('aria-pressed', 'true'); $('.clear-focus').hidden = false; drawSelection();
213
+ const bounds = $('#canvas-viewport').getBoundingClientRect();
214
+ if (bounds.top < 0 || bounds.bottom > innerHeight) {
215
+ $('#canvas-viewport').scrollIntoView({block: 'center', behavior: reduced.matches ? 'instant' : 'smooth'});
216
+ $('.focus-close')?.focus({preventScroll: true});
217
+ }
218
+ }
219
+ } else if (event.target.closest?.('.clear-focus,.focus-close')) {
220
+ const previous = selected; clearSelection(); previous?.focus();
221
+ }
222
+ // Select an actual returned box directly on the image; no invented geometry.
223
+ if (!waiting && !moved && event.target === image) {
224
+ const rect=image.getBoundingClientRect(), scale=Math.min(rect.width/image.naturalWidth,rect.height/image.naturalHeight);
225
+ const w=image.naturalWidth*scale, h=image.naturalHeight*scale;
226
+ const x=(event.clientX-rect.left-(rect.width-w)/2)/w*999, y=(event.clientY-rect.top-(rect.height-h)/2)/h*999;
227
+ const hits=[];
228
+ document.querySelectorAll('.target-chip').forEach(chip=>{
229
+ let coords; try{coords=JSON.parse(chip.dataset.coordinates);}catch{return;}
230
+ coords.forEach((p,index)=>{
231
+ if (p.length===4 && x>=p[0] && x<=p[2] && y>=p[1] && y<=p[3]) hits.push({chip,index,size:(p[2]-p[0])*(p[3]-p[1])});
232
+ if (p.length===2 && Math.hypot(x-p[0],y-p[1])<20) hits.push({chip,index,size:0});
233
+ });
234
+ });
235
+ const hit=hits.sort((a,b)=>a.size-b.size)[0];
236
+ if(hit){clearSelection();selected=hit.chip;instanceIndex=hit.index;selected.setAttribute('aria-pressed','true');$('.clear-focus').hidden=false;drawSelection();$('.focus-close')?.focus({preventScroll:true});}
237
+ }
238
+ moved=false;
239
+ }
240
+ function init() {
241
+ if (ready || !$('#console') || !$('#targets-content') || !$('#stage-status')) return;
242
+ ready = true; observer.disconnect();
243
+ listen(document, 'click', onClick);
244
+ listen(document, 'change', schedule);
245
+ listen(document, 'keydown', e => { if (e.key === 'Escape') {const previous=selected;clearSelection();resetCanvas();previous?.focus();} });
246
+ const viewport=$('#canvas-viewport');
247
+ listen(viewport,'pointerdown',e=>{
248
+ moved=false;
249
+ if(zoom<=1 || waiting || e.button!==0 || e.target.closest('button') || !e.target.closest('#stage-image')) return;
250
+ drag={x:e.clientX,y:e.clientY,px:panX,py:panY}; viewport.setPointerCapture(e.pointerId); viewport.classList.add('is-panning'); e.preventDefault();
251
+ });
252
+ listen(viewport,'pointermove',e=>{
253
+ if(!drag)return;
254
+ const dx=e.clientX-drag.x,dy=e.clientY-drag.y; moved ||= Math.hypot(dx,dy)>4;
255
+ panX=drag.px+dx;panY=drag.py+dy;canvasTransform();
256
+ });
257
+ const endDrag=()=>{drag=null;viewport.classList.remove('is-panning');};
258
+ listen(viewport,'pointerup',endDrag);listen(viewport,'pointercancel',endDrag);
259
+ listen(viewport,'dragstart',e=>{if(zoom>1)e.preventDefault();});
260
+ listen(document, 'visibilitychange', () => { $('#console')?.classList.toggle('tab-hidden', document.hidden); tick(); });
261
+ observer = new MutationObserver(records => {
262
+ if (records.some(r => !r.target.closest?.('.focus-layer,.focus-caption,.wait-clock'))) schedule();
263
+ });
264
+ for (const id of ['stage-image', 'targets-content', 'stage-status']) observer.observe($(`#${id}`), { childList: true, subtree: true, attributes: true, attributeFilter: ['src'] });
265
+ resize = new ResizeObserver(schedule); resize.observe($('#stage-image')); resize.observe($('#controls')); reconcile();
266
+ document.fonts.ready.then(schedule);
267
+ }
268
+ observer = new MutationObserver(init); observer.observe(document.body, { childList: true, subtree: true }); init();
269
+ window.groundingConsoleCleanup = () => {
270
+ abort.abort(); observer?.disconnect(); resize?.disconnect(); cancelAnimationFrame(frame); clearInterval(interval); clearTimeout(watchdog);
271
+ if (ready) setWaiting(false); removeLayer();
272
+ delete window.groundingConsoleBegin;
273
+ };
274
+ }
assets/frosted.css ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Screenshot-led console: settings left, image right, examples/results below.
2
+ paper.css supplies shared evidence geometry and interaction primitives. */
3
+ :root{
4
+ --purple:#7954ae;--purple-deep:#60418c;--lime:#257a4d;
5
+ --ink:#202127;--muted:#636570;--line:rgba(47,47,65,.1);
6
+ --paper:#f5f6f9;--lavender:#efebf6;--canvas:#f0eff5;
7
+ --surface:#fdfdfe;--selection:#f1ecf8;--action-hover:#1d653e;
8
+ --glass:rgba(250,252,255,.58);--glass-strong:rgba(255,255,255,.8);
9
+ --ease:cubic-bezier(.22,1,.36,1);
10
+ --ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Manrope,"PingFang SC","Microsoft YaHei",sans-serif;
11
+ }
12
+ .gradio-container{padding-top:28px!important}
13
+ .studio-header{padding:4px 2px 26px;align-items:center}
14
+ .studio-header h1{font-family:var(--ui);font-size:30px;font-weight:650;line-height:1.25;letter-spacing:-.025em;color:var(--ink);margin:0}
15
+ .studio-header p{font-family:var(--ui);font-size:14px;color:var(--muted);margin:8px 0 0}
16
+ .header-note{display:flex;gap:8px;font-family:var(--ui)}
17
+ .header-note>span{background:rgba(255,255,255,.8);border:0;border-radius:20px;color:var(--muted);font-size:12px;font-weight:400;padding:8px 13px}
18
+ #console{display:flex!important;flex-direction:column!important;gap:20px!important;border:0;border-radius:0;overflow:visible;background:transparent;box-shadow:none}
19
+ #workspace-top{display:flex!important;flex-wrap:nowrap!important;gap:0!important;align-items:stretch;border-radius:24px;background:linear-gradient(125deg,#ece6f5 0%,#f1f3f7 44%,#eaf0e8 100%);box-shadow:0 18px 48px rgba(42,46,73,.07),inset 0 1px 0 #fff;overflow:visible}
20
+ #controls{position:relative!important;top:auto;z-index:12;flex:0 0 28.5%!important;min-width:290px!important;gap:20px!important;margin:0!important;padding:36px!important;border-radius:24px 0 0 24px;background:rgba(255,255,255,.67);backdrop-filter:blur(24px) saturate(1.2);-webkit-backdrop-filter:blur(24px) saturate(1.2);box-shadow:inset 1px 1px 0 rgba(255,255,255,.94)}
21
+ #controls>*{flex-grow:0!important}.control-brand{padding-bottom:12px}
22
+ .xpeng-logo{width:174px;height:auto;margin:0 0 26px!important;border-radius:5px}
23
+ .control-brand h2{font-family:var(--ui);font-size:34px;font-weight:650;line-height:1.18;letter-spacing:-.035em;color:var(--ink);margin:0 0 13px}
24
+ .control-brand p{font-family:var(--ui);font-size:14px;font-weight:400;line-height:1.8;color:var(--muted);max-width:22ch;margin:0}
25
+ #control-fields{flex-wrap:nowrap!important;gap:14px!important;align-items:stretch}
26
+ #media-type{flex:0 0 86px!important;min-width:86px!important}
27
+ .media-field>span{display:block;font-family:var(--ui);font-size:12px;color:var(--muted);margin-bottom:8px}
28
+ .media-field>div{display:flex;align-items:center;justify-content:center;gap:7px;background:#e8efea;min-height:46px;border-radius:12px;font-family:var(--ui);font-size:13px;font-weight:600;color:#275c3e}
29
+ .media-field svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.5}
30
+ #route-select,#case-select{min-width:0!important;background:transparent!important;border:0!important;padding:0!important;overflow:visible!important}
31
+ #route-select{flex:1 1 0!important}
32
+ #route-select label,#case-select label{display:block!important;min-height:0!important;padding:0!important;margin:0!important;font-family:var(--ui)!important;font-size:12px!important;font-weight:400!important;color:var(--muted)!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important}
33
+ #route-select label>span,#case-select label>span{display:block;margin-bottom:8px!important;font-size:12px!important;color:var(--muted)!important}
34
+ #route-select .wrap,#case-select .wrap{display:flex!important;position:relative;flex-wrap:nowrap!important;gap:4px!important;min-height:46px!important;border:1px solid rgba(87,83,105,.15)!important;border-radius:12px!important;padding:10px 12px!important;background:rgba(255,255,255,.74)!important;box-shadow:inset 0 1px 0 #fff;overflow:visible!important;isolation:auto}
35
+ #route-select input,#case-select input{position:static!important;flex:1 1 0!important;min-width:0!important;width:100%!important;height:auto!important;opacity:1!important;margin:0!important;padding:0!important;color:var(--ink)!important;font-family:var(--ui)!important;font-size:14px!important;font-weight:500!important}
36
+ #route-select .icon-wrap,#case-select .icon-wrap{flex:0 0 18px!important;width:18px!important;height:18px!important}
37
+ #route-select svg,#case-select svg,#advanced-options>.label-wrap svg{width:16px!important;height:16px!important}
38
+ /* Never resurrect Gradio's hidden progress layers with a material selector. */
39
+ #console .wrap.hide{display:none!important}
40
+ #route-select .wrap:focus-within,#case-select .wrap:focus-within{border-color:var(--purple)!important}
41
+ #route-select ul,#case-select ul{z-index:60!important;background:#fdfdfe!important;color:var(--ink)!important;box-shadow:0 12px 28px rgba(35,29,51,.14);border-radius:12px!important}
42
+ #route-select li,#case-select li{font-size:14px!important}
43
+ #upload-button{width:100%!important;flex:0 0 auto!important;min-width:0!important;min-height:46px!important;border:0!important;border-radius:12px!important;padding:12px 16px!important;background:var(--glass)!important;color:var(--purple-deep)!important;font-family:var(--ui)!important;font-size:14px!important;font-weight:500!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:inset 0 1px 0 #fff,0 3px 10px rgba(48,42,71,.055)!important}
44
+ #upload-button:hover{background:rgba(255,255,255,.9)!important}
45
+ #advanced-options{border:0!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;padding:6px 0!important}
46
+ #advanced-options>.label-wrap{font-family:var(--ui)!important;font-size:13px!important;font-weight:400!important;min-height:40px!important;color:var(--muted)!important}
47
+ .runtime-options{display:grid;grid-template-columns:auto 1fr;gap:10px;font-family:var(--ui);font-size:12px;line-height:1.6;color:var(--muted);padding:10px 0}
48
+ .runtime-options b{text-align:right;overflow-wrap:anywhere;color:var(--ink);font-weight:500}.runtime-options small{grid-column:1/-1;font-size:12px;line-height:1.7}
49
+ #service-panel{padding-top:12px!important;border-top:1px solid var(--line);gap:7px!important}
50
+ .api-status,.api-status span{font-family:var(--ui);font-weight:400;font-size:12px;line-height:1.65;color:var(--muted)}
51
+ .api-status.online{color:#306443}.api-status.offline{color:#a63b42}
52
+ #health-button{font-family:var(--ui)!important;font-size:12px!important;font-weight:400!important;min-height:36px!important}
53
+ #run-button{margin-top:auto!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;min-height:50px!important;border-radius:25px!important;background:var(--lime)!important;color:#fff!important;font-family:var(--ui)!important;font-size:15px!important;font-weight:600!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 7px 18px rgba(37,122,77,.15)!important}
54
+ #run-button:hover:not(:disabled){background:var(--action-hover)!important}#run-button:disabled{background:var(--lavender)!important;color:var(--purple-deep)!important;box-shadow:none!important}#run-button.is-waiting{color:transparent!important}
55
+ #visual-stage{position:relative;isolation:isolate;flex:1 1 0!important;min-width:0!important;gap:0!important;padding:0!important;overflow:hidden;border-radius:0 24px 24px 0;background:var(--canvas)}
56
+ .scene-atmosphere{position:absolute;inset:-40px;width:auto!important;z-index:-1;pointer-events:none;background-position:center;background-size:cover;filter:blur(34px) saturate(.85);opacity:.2}
57
+ #stage-toolbar{position:relative!important;top:auto;left:auto;width:100%;z-index:8;display:flex;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:16px!important;min-height:76px;padding:20px 28px 12px!important;background:transparent!important;pointer-events:auto}
58
+ #view-toggle{flex:0 0 auto!important;width:fit-content!important;min-width:0!important;pointer-events:auto}
59
+ #view-toggle .wrap{padding:5px!important;gap:3px!important;background:var(--glass)!important;border-radius:23px!important;backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4);box-shadow:inset 0 1.5px 1px rgba(255,255,255,.98),inset 0 -1px 1px rgba(255,255,255,.55),0 5px 16px rgba(39,43,64,.085)}
60
+ #view-toggle label{border-radius:20px!important;min-height:34px!important;padding:8px 13px!important;font-family:var(--ui)!important;font-size:12px!important;font-weight:500!important;color:#24242b!important}
61
+ #view-toggle label:hover{background:rgba(255,255,255,.38)!important}
62
+ #view-toggle label:has(input:checked){color:var(--purple-deep)!important;font-weight:600!important}
63
+ #view-toggle .active-tab-indicator{border-radius:20px;background:rgba(255,255,255,.83);box-shadow:0 2px 6px rgba(39,43,64,.07),inset 0 1px 0 #fff;transition-duration:300ms}
64
+ #stage-status{flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:0!important;max-width:47%;padding:0!important}
65
+ .stage-status{display:flex;gap:7px;padding:8px 11px;border-radius:14px;background:rgba(255,255,255,.7);font-family:var(--ui);font-size:12px;font-weight:400;line-height:1.6;color:#326144;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
66
+ .stage-status span{color:inherit}.stage-status i{margin-top:6px}
67
+ .stage-status.reference,.stage-status.busy{color:var(--purple-deep)}.stage-status.error{color:#a63b42}.wait-clock{font-family:var(--ui);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
68
+ #canvas-viewport{padding:12px 40px 54px!important;background:transparent!important;isolation:auto}
69
+ #stage-image{height:440px!important;transition-duration:380ms}
70
+ #stage-image img{border-radius:9px;box-shadow:0 10px 24px rgba(35,35,47,.09)}#stage-image .buttons{top:8px!important}
71
+ .canvas-tools{min-height:54px;padding:8px 28px;font-family:var(--ui);font-size:12px;font-weight:400;color:#282830}
72
+ .image-dimensions{padding:6px 10px;background:rgba(255,255,255,.64);border-radius:16px}
73
+ .zoom-tools{padding:4px 8px;border-radius:23px;background:var(--glass);backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4);box-shadow:inset 0 1.5px 1px #fff,inset 0 -1px 1px rgba(255,255,255,.55),0 5px 16px rgba(39,43,64,.085)}
74
+ .zoom-tools button{width:32px;height:32px;border-radius:50%;color:#24242b}.zoom-tools button:hover{background:rgba(255,255,255,.6)}
75
+ .zoom-value{font-family:var(--ui);font-size:12px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}.tool-divider{background:var(--line)}
76
+ #query-row{position:relative;z-index:2;display:block!important;padding:14px 40px 28px!important;background:transparent!important;border:0!important}
77
+ #query-dock{max-width:760px;margin:0 auto!important;padding:14px 18px!important;border:0!important;border-radius:15px!important;background:rgba(255,255,255,.75)!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:inset 0 1px 1px #fff,0 6px 22px rgba(39,43,64,.075)!important}
78
+ #query-dock label>span{font-family:var(--ui)!important;font-size:12px!important;font-weight:500!important;color:var(--purple-deep)!important;margin-bottom:6px!important}
79
+ #query-dock textarea{font-family:var(--ui)!important;font-size:14px!important;line-height:1.65!important;font-weight:400!important;color:var(--ink)!important}
80
+ #query-dock:focus-within{outline:2px solid rgba(121,84,174,.5);outline-offset:2px}
81
+ #review-row{display:flex!important;flex-wrap:nowrap!important;gap:20px!important;align-items:stretch}
82
+ #sandbox-panel{flex:0 0 38%!important;min-width:0!important;padding:24px!important;gap:17px!important;background:rgba(255,255,255,.86);border-radius:20px;box-shadow:0 8px 24px rgba(42,46,73,.045)}
83
+ .film-heading{align-items:center;font-family:var(--ui);font-size:14px;font-weight:500;color:var(--ink)}.film-heading h2{font-family:var(--ui);font-size:16px;font-weight:600;margin:0!important}.film-heading small{font-family:var(--ui);font-size:12px;font-weight:400;color:var(--muted)}
84
+ #case-gallery{height:170px!important}
85
+ #case-gallery .grid-container{gap:10px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
86
+ #case-gallery .thumbnail-item{min-width:0!important}
87
+ #case-gallery .thumbnail-item{height:154px!important;flex-direction:column!important;align-items:stretch;gap:6px;border-radius:12px!important;background:#fff!important;border-color:rgba(70,64,88,.12)!important;padding:5px!important}
88
+ #case-gallery .thumbnail-item img{width:100%!important;height:112px!important;flex:1 1 0!important;min-height:0!important;border-radius:8px!important}
89
+ #case-gallery .caption-label{max-width:100%!important;text-align:center!important;font-family:var(--ui)!important;font-size:12px!important;line-height:1.5!important;font-weight:500!important;color:#52525f!important;padding:3px!important}
90
+ #case-gallery .thumbnail-item:hover{border-color:#a797bc!important;background:#faf8fd!important}
91
+ #case-gallery .thumbnail-item.selected{background:var(--selection)!important;border:2px solid var(--purple)!important;padding:4px!important}
92
+ #source-details{margin-top:auto;border:0!important;border-top:1px solid var(--line)!important;padding:10px 0 0!important}
93
+ #source-details .label-wrap{font-family:var(--ui)!important;font-size:12px!important;font-weight:400!important;min-height:36px!important}
94
+ .source-meta{font-family:var(--ui);font-size:12px;font-weight:400;line-height:1.7}.source-meta>span,.source-meta small{font-size:12px}
95
+ #review-summary{flex:1 1 0!important;min-width:0!important;padding:0!important;background:var(--surface);border-radius:20px;box-shadow:0 8px 24px rgba(42,46,73,.045)}
96
+ #result-columns{display:flex!important;flex-wrap:nowrap!important;gap:0!important;align-items:stretch}
97
+ #metrics-panel{flex:0 0 41%!important;min-width:0!important;padding:24px!important;border:0!important;gap:20px!important}
98
+ .inspector-subheading{font-family:var(--ui)!important;font-size:16px!important;font-weight:600!important;color:var(--ink)!important;line-height:1.4}
99
+ .metrics-list{font-family:var(--ui);font-size:12px;font-weight:400}.metrics-list>div{padding:8px 0;gap:14px}.metrics-list dd{font-family:var(--ui);font-size:12px;font-weight:500;line-height:1.6;color:#41424c}
100
+ #sidebar{flex:1 1 0!important;min-width:0!important;width:auto;padding:24px!important;border:0;border-left:1px solid var(--line);background:transparent;gap:20px!important}
101
+ .inspector-heading h2{font-family:var(--ui)!important;font-size:16px!important;font-weight:600!important;color:var(--ink)!important}
102
+ .inspector-heading{align-items:baseline;flex-wrap:wrap;gap:7px}.live-mark{font-family:var(--ui);font-size:12px;font-weight:400;line-height:1.6;color:var(--muted)}
103
+ #targets-panel{flex:1 1 auto!important}
104
+ .empty-targets{min-height:174px}.empty-targets svg{width:32px;height:32px;color:#8a7f9c}.empty-targets>b{font-family:var(--ui);font-size:14px;font-weight:500;color:#4a4655}.empty-targets>small{font-family:var(--ui);font-size:12px;font-weight:400;line-height:1.8}
105
+ .targets-summary{font-family:var(--ui);font-size:12px;font-weight:400}.targets-summary b{font-family:var(--ui);font-size:19px;font-weight:600}.targets-summary>span{font-size:11px}
106
+ .target-chips{max-height:240px;display:flex;flex-direction:column}
107
+ .target-chip{min-height:36px!important;padding:8px 10px!important;border-radius:8px!important;font-family:var(--ui)!important;font-size:13px!important;font-weight:400!important;color:#53535d!important}
108
+ .target-chip:hover{background:#f5f2fa!important}.target-chip[aria-pressed=true]{background:var(--selection)!important;color:var(--purple-deep)!important}.target-chip b{font-family:var(--ui);font-size:12px;font-weight:500}
109
+ .focus-help,.targets-caption{font-family:var(--ui);font-size:12px;font-weight:400;line-height:1.7}.clear-focus{font-family:var(--ui);font-size:12px;font-weight:500}
110
+ .detail-heading{font-family:var(--ui);font-size:13px;font-weight:500}.detail-heading small{font-family:var(--ui);font-size:12px;font-weight:400}.detail-image{height:150px;border-radius:9px}.detail-coordinates{font-size:12px;line-height:1.6}
111
+ .focus-dimmer{fill:#1c1c28;opacity:.42;animation-duration:260ms}.focus-outline{animation-duration:360ms}.evidence-detail{animation-duration:300ms}
112
+ .focus-caption{top:auto;bottom:12px;left:12px;max-width:calc(100% - 24px);padding:5px 6px 5px 13px;border-radius:12px;background:var(--glass-strong);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 4px 14px rgba(20,20,32,.1),inset 0 1px 0 #fff;color:var(--ink);font-family:var(--ui);font-size:13px;font-weight:500}
113
+ .focus-caption button{background:rgba(220,220,230,.55);color:#55555e;border-radius:7px}
114
+ .glass-control{position:relative;--glint-x:35%}
115
+ .glass-control::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;background:radial-gradient(ellipse at var(--glint-x) 0%,rgba(255,255,255,.66),transparent 65%);transition:opacity 200ms var(--ease)}
116
+ .glass-control:hover::after{opacity:.8}.glass-control:active::after{opacity:1}
117
+ #prompt-console,#output-console{margin-top:6px;border-bottom-color:var(--line)!important;padding:5px 3px!important}
118
+ #prompt-console>.label-wrap,#output-console>.label-wrap{font-family:var(--ui)!important;font-size:13px!important;font-weight:400!important;min-height:40px;color:var(--muted)!important}
119
+ .console-note,.studio-footer{font-family:var(--ui);font-size:12px;font-weight:400;line-height:1.7;color:var(--muted)}.studio-footer{padding:12px 2px}
120
+ @keyframes focus-dim{from{opacity:0}to{opacity:.42}}
121
+ @media(min-width:1500px){#controls{padding:42px!important}#stage-image{height:500px!important}#canvas-viewport{padding:14px 54px 56px!important}#query-row{padding:16px 54px 32px!important}#sidebar{flex:1 1 0!important;min-width:0!important;padding:28px!important}#metrics-panel{padding:28px!important}}
122
+ @media(max-width:1100px){#controls{flex-basis:30%!important;min-width:260px!important;padding:26px!important}.control-brand h2{font-size:30px}.xpeng-logo{width:150px}.control-brand p{font-size:13px}#control-fields{gap:10px!important}#media-type{flex-basis:74px!important;min-width:74px!important}#stage-toolbar{padding:16px 18px 10px!important;gap:10px!important;flex-wrap:wrap!important}#stage-status{max-width:100%;flex-basis:100%!important}.stage-status{width:fit-content;padding:5px 10px}#canvas-viewport{padding:12px 24px 54px!important}#stage-image{height:390px!important}#query-row{padding:12px 24px 24px!important}#sandbox-panel{padding:20px!important}#metrics-panel{flex-basis:42%!important;padding:20px!important}#sidebar{flex:1 1 0!important;min-width:0!important;padding:20px!important}#case-gallery .thumbnail-item{height:144px!important}}
123
+ @media(max-width:760px){
124
+ .studio-header{padding:4px 2px 18px}.studio-header h1{font-size:25px}.studio-header p{font-size:13px;margin-top:6px}.header-note{display:none}
125
+ #console{gap:16px!important}#workspace-top{flex-direction:column!important;border-radius:20px}
126
+ #controls{flex:0 0 auto!important;min-width:0!important;padding:24px!important;border-radius:20px 20px 0 0;gap:16px!important}
127
+ .control-brand{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding-bottom:4px}.xpeng-logo{width:108px;margin:0!important}.control-brand h2{font-size:25px;margin:0}.control-brand p{display:none}
128
+ #control-fields{gap:14px!important}#media-type{flex-basis:92px!important;min-width:92px!important}
129
+ #run-button{min-height:48px!important;height:auto!important;margin-top:0!important;font-size:14px!important;min-width:0!important;flex:0 0 auto!important}
130
+ #visual-stage{flex:0 0 auto!important;border-radius:0 0 20px 20px}#stage-toolbar{padding:16px 16px 8px!important;gap:10px!important;min-height:0}
131
+ #stage-status{max-width:none;flex-basis:100%!important}.stage-status{font-size:12px}
132
+ #view-toggle label{padding:8px 12px!important;font-size:12px!important;min-height:36px!important}
133
+ #canvas-viewport{padding:10px 16px 58px!important}#stage-image{height:300px!important}
134
+ .canvas-tools{padding:9px 16px;min-height:58px;font-size:12px}.zoom-tools button{width:34px;height:34px}
135
+ #query-row{padding:10px 16px 22px!important}#query-dock{padding:13px 15px!important}
136
+ #review-row{flex-direction:column!important;gap:16px!important}#sandbox-panel{flex:0 0 auto!important;width:100%;padding:22px 18px!important}
137
+ #case-gallery{height:150px!important}#case-gallery .thumbnail-item{height:136px!important}.film-heading small{font-size:12px;max-width:none}
138
+ #review-summary{width:100%}#result-columns{flex-direction:column!important}
139
+ #metrics-panel{flex:0 0 auto!important;width:100%;padding:24px!important;gap:14px!important}.metrics-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px}.metrics-list>div{gap:4px;padding:4px 0}
140
+ #sidebar{flex:0 0 auto!important;width:100%;padding:24px!important;border-left:0;border-top:1px solid var(--line);gap:16px!important}
141
+ .target-chips{display:grid;grid-template-columns:1fr 1fr;max-height:250px}.target-chip{min-height:42px!important}
142
+ .empty-targets{min-height:174px}.detail-image{height:170px}.evidence-detail{max-width:none}
143
+ #source-details .label-wrap{min-height:40px!important}.studio-footer{gap:5px;padding:12px 2px;line-height:1.7}
144
+ }
145
+ @media(max-width:430px){#stage-image{height:262px!important}.canvas-tools .image-dimensions{font-size:12px}.control-brand{gap:12px}.control-brand h2{font-size:24px}.xpeng-logo{width:102px}.film-heading h2{font-size:15px}}
146
+ @media(prefers-reduced-transparency:reduce){#controls,#view-toggle .wrap,#upload-button,#query-dock,.zoom-tools,.focus-caption,.stage-status{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#fafafc!important}.scene-atmosphere{opacity:0}.glass-control::after{display:none}}
147
+ @media(prefers-contrast:more){#controls,#view-toggle .wrap,#upload-button,#query-dock,.zoom-tools,.focus-caption,.stage-status{background:#fff!important;outline:1px solid #53535e}.scene-atmosphere{opacity:.1}}
148
+ @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition-duration:0ms!important}}
assets/original.css ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Original Oxygen Spatial console, adapted to the standalone Gradio DOM.
2
+ Visual authority: X-CG_demo/src/styles.css (.heroBoard / .controlPanel /
3
+ .controlCard / .runButton / .lowerGrid), verified on 2026-09-11.
4
+ paper.css retains coordinate, focus, zoom and accessible state primitives.
5
+ The previous frosted.css is deliberately NOT loaded. */
6
+ :root {
7
+ --ink:#222132; --muted:#657083; --line:#e4deed;
8
+ --green:#5e7d24; --lime:#91c331; --paper:#f4f5f8;
9
+ --surface:#fff; --canvas:#f5f3f9; --selection:#eee7f7;
10
+ /* Paper palette: purple for perception, lime for the primary action. */
11
+ --purple:#784ebc; --purple-deep:#5b358b; --lavender:#eee7f7;
12
+ --ui:Manrope,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
13
+ --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
14
+ --ease:cubic-bezier(.16,1,.3,1);
15
+ }
16
+ .gradio-container {
17
+ background:radial-gradient(circle at 18% 8%,rgba(120,78,188,.06),transparent 28%),linear-gradient(180deg,#fff 0%,#f4f5f8 56%,#fff 100%)!important;
18
+ --block-radius:8px; --color-accent:var(--green);
19
+ }
20
+ * {scrollbar-color:#c2d2b6 transparent}
21
+ ::selection {background:#e5d7f5;color:#172018}
22
+ input,textarea {caret-color:var(--green)}
23
+ .studio-header {justify-content:space-between;gap:18px;padding:0 2px 22px;align-items:center}
24
+ .header-description {margin:8px 0 0;color:var(--muted);font:500 14px/1.6 var(--ui)}
25
+ .header-scope {color:var(--muted);font:600 12px var(--ui);white-space:nowrap}
26
+ .chapter-mark {display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:8px;background:#32831b;color:#fff;font:900 13px var(--mono)}
27
+ .eyebrow {display:block;color:var(--green);font:850 11px/1.6 var(--mono);letter-spacing:.07em;text-transform:uppercase}
28
+ .studio-header .eyebrow {margin:0 0 3px}
29
+ .studio-header h1 {margin:0;color:var(--ink);font:850 32px/1.12 var(--ui);letter-spacing:0}
30
+ .grounding-intro {display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:0 2px 18px}
31
+ .grounding-intro h2 {margin:5px 0 0;font:800 25px/1.18 var(--ui);letter-spacing:0;color:var(--ink)}
32
+ .grounding-intro p {max-width:350px;color:var(--muted);font:700 13px/1.55 var(--ui);text-align:right;margin:0}
33
+ #console {display:flex!important;flex-direction:column!important;gap:16px!important;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
34
+ #workspace-top {display:flex!important;flex-wrap:nowrap!important;align-items:stretch;gap:0!important;min-height:620px;border:1px solid #e4deed;border-radius:8px;overflow:visible;background:radial-gradient(circle at 75% 36%,rgba(145,195,49,.06),transparent 34%),linear-gradient(120deg,#fff 0%,#fcfbfe 46%,#f5f3f9 100%);box-shadow:0 30px 85px rgba(45,29,69,.06)}
35
+ #controls {position:relative!important;z-index:12;flex:0 0 28.5%!important;min-width:290px!important;padding:28px!important;margin:0!important;gap:20px!important;background:#ffffffed;border-right:1px solid #e4deed;border-radius:8px 0 0 8px;backdrop-filter:none;-webkit-backdrop-filter:none}
36
+ #controls>* {flex-grow:0!important}
37
+ .control-brand {display:grid;gap:13px;padding-bottom:0}
38
+ .xpeng-logo {width:200px;height:auto;margin:0!important;border-radius:3px;filter:drop-shadow(0 16px 28px rgba(47,125,36,.14))}
39
+ .control-brand .eyebrow {font-size:11px;line-height:1.45}
40
+ .control-brand h2 {margin:4px 0 0;font:850 clamp(32px,2.8vw,44px)/1.08 var(--ui);letter-spacing:0;color:var(--ink)}
41
+ .control-brand h2 span {color:#91c331}
42
+ .control-brand p {max-width:390px;margin:0;font:700 14px/1.6 var(--ui);color:#657083}
43
+ #control-settings {padding:14px!important;gap:14px!important;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:none;overflow:visible!important}
44
+ #control-fields {flex-wrap:nowrap!important;gap:12px!important;align-items:stretch}
45
+ #control-fields>.form {min-width:0!important;flex:1 1 0!important;width:0!important}
46
+ #control-settings .form {min-width:0!important;overflow:visible}
47
+ #media-type {flex:0 0 40%!important;min-width:0!important}
48
+ .media-field>span,#route-select [data-testid=block-info] {display:block;margin-bottom:8px!important;color:#657386!important;font:800 10px/1.4 var(--mono)!important;letter-spacing:.07em;text-transform:uppercase}
49
+ .media-field>div {display:flex;align-items:stretch;height:39px;padding:3px;border:1px solid #e4deed;border-radius:8px;background:#f2eff7}
50
+ .media-field>div>span {display:grid;place-items:center;min-width:64px;padding:0 12px;border-radius:6px;color:#0c1608;background:#91c331;font:800 13px var(--ui);box-shadow:0 7px 18px rgba(131,200,50,.18)}
51
+ #route-select {flex:1 1 0!important;min-width:0!important;background:transparent!important;border:0!important;padding:0!important;overflow:visible!important}
52
+ #route-select label {display:block!important;min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important}
53
+ #route-select .wrap {display:flex!important;position:relative;flex-wrap:nowrap!important;gap:4px!important;min-height:39px!important;border:1px solid #e4deed!important;border-radius:8px!important;padding:6px 10px!important;background:#fff!important;box-shadow:none;overflow:visible!important;isolation:auto}
54
+ #route-select .container,#route-select .wrap-inner {min-width:0!important;width:100%!important}
55
+ #route-select .secondary-wrap {min-width:0!important;width:100%!important;display:flex!important;align-items:center;gap:6px}
56
+ #route-select input {position:static!important;flex:1 1 0!important;min-width:0!important;width:100%!important;height:auto!important;opacity:1!important;margin:0!important;padding:0!important;color:#172018!important;font:750 12px var(--ui)!important}
57
+ #route-select .icon-wrap {flex:0 0 14px!important;width:14px!important;height:14px!important}
58
+ #route-select svg,#advanced-options>.label-wrap svg {width:14px!important;height:14px!important;color:var(--muted)}
59
+ #console .wrap.hide {display:none!important}
60
+ #route-select .wrap:focus-within {border-color:var(--green)!important;outline:2px solid #ddd0ee}
61
+ #route-select ul {z-index:60!important;background:#fff!important;color:var(--ink)!important;border:1px solid var(--line);border-radius:8px!important;box-shadow:0 12px 28px rgba(25,49,31,.14)}
62
+ #route-select li {font:650 13px var(--ui)!important}
63
+ #route-select li:hover {background:var(--selection)!important}
64
+ #upload-button {width:100%!important;flex:0 0 auto!important;min-width:0!important;min-height:48px!important;border:1px dashed #c1dca6!important;border-radius:8px!important;padding:12px!important;background:#fcfbfe!important;color:#30263f!important;font:750 12px var(--ui)!important;box-shadow:none!important;text-align:left;justify-content:flex-start;gap:10px}
65
+ #upload-button:hover {background:#f3eef9!important;border-color:var(--green)!important}
66
+ #upload-button::before {content:"";display:block;width:18px;height:18px;flex-shrink:0;background:var(--green);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M11 3H4v14h13v-7M13 4h6M16 1v6M4 14l4-4 3 3 2-2 4 4'/%3E%3Ccircle cx='8' cy='7' r='1'/%3E%3C/svg%3E") center/contain no-repeat}
67
+ #advanced-options {border:0!important;border-top:1px solid #e9e5ef!important;border-bottom:1px solid #e9e5ef!important;border-radius:0!important;background:transparent!important;padding:0!important}
68
+ #advanced-options>.label-wrap {display:flex!important;align-items:center;justify-content:space-between;width:100%!important;padding:10px 0!important;font:750 10px var(--mono)!important;letter-spacing:.055em;text-transform:uppercase;min-height:39px!important;color:var(--muted)!important;gap:4px}
69
+ #advanced-options>.label-wrap>span,#prompt-console>.label-wrap>span,#output-console>.label-wrap>span,#source-details>.label-wrap>span {font:inherit!important;color:inherit!important;letter-spacing:inherit}
70
+ #advanced-options>.label-wrap>.icon {flex-shrink:0;font-size:10px!important}
71
+ #advanced-options>.label-wrap {overflow:hidden!important;font-family:var(--ui)!important;font-size:12px!important;letter-spacing:0!important}
72
+ #advanced-options>.label-wrap>span {min-width:0;overflow-wrap:anywhere}
73
+ .runtime-options {display:grid;grid-template-columns:auto 1fr;gap:10px;font:12px/1.6 var(--ui);color:var(--muted);padding:10px 0}
74
+ .runtime-options b {text-align:right;overflow-wrap:anywhere;color:var(--ink);font-weight:650}
75
+ .runtime-options small {grid-column:1/-1;font-size:11px;line-height:1.7}
76
+ #service-panel {padding-top:12px!important;border-top:1px solid var(--line);gap:7px!important}
77
+ .api-status {align-items:center;gap:7px}.api-status b {font-size:12px}.api-status small {flex-basis:100%;font:400 12px/1.65 var(--ui);color:var(--muted)}
78
+ .connection-detail {font:12px/1.6 var(--ui);color:var(--muted)}
79
+ .connection-detail summary {cursor:pointer;padding:4px 0}.connection-detail code {display:block;max-height:90px;overflow:auto;overflow-wrap:anywhere;font:11px/1.6 var(--mono)}
80
+ .api-status,.api-status span {font:12px/1.65 var(--ui);color:var(--muted)}
81
+ .api-status.online {color:#168a45}.api-status.offline {color:#a53246}
82
+ #health-button {font:12px var(--ui)!important;min-height:36px!important;text-decoration-color:#9dba89}
83
+ #run-button {display:flex!important;align-items:center;justify-content:center;gap:10px;margin-top:auto!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;min-height:54px!important;border-radius:999px!important;color:#0b1408!important;background:linear-gradient(180deg,#a3d749,#91c331)!important;font:850 16px var(--ui)!important;box-shadow:0 20px 40px rgba(118,184,38,.28),inset 0 1px 0 rgba(255,255,255,.5)!important}
84
+ #run-button::before {content:"";width:17px;height:17px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='m5 3 11 7-11 7Z'/%3E%3C/svg%3E") center/contain no-repeat}
85
+ #run-button:hover:not(:disabled) {background:linear-gradient(180deg,#ade153,#98ca39)!important}
86
+ #run-button:disabled {background:#edf4e7!important;color:#536947!important;box-shadow:none!important}
87
+ #run-button.is-waiting {color:transparent!important}#run-button.is-waiting::before {visibility:hidden}
88
+ #mobile-run-button {display:none!important}
89
+ #task-guide {padding:20px 24px 0!important}
90
+ .task-guide {display:grid;gap:5px}.task-guide strong {font:750 17px/1.4 var(--ui);color:var(--ink)}
91
+ .task-guide p {margin:0;color:#51495e;font:500 13px/1.6 var(--ui)}
92
+ .task-guide small {color:var(--muted);font:400 12px/1.6 var(--ui)}
93
+ #visual-stage {position:relative;isolation:isolate;flex:1 1 0!important;min-width:0!important;gap:0!important;padding:0!important;overflow:hidden;border-radius:0 8px 8px 0;background:transparent}
94
+ #stage-toolbar {position:relative!important;width:100%;z-index:8;display:flex;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:12px!important;min-height:64px;padding:18px 22px 8px!important;background:transparent!important}
95
+ #view-toggle {flex:0 0 auto!important;width:fit-content!important;min-width:0!important;pointer-events:auto}
96
+ #view-toggle .wrap {position:relative;isolation:isolate;padding:3px!important;gap:2px!important;background:#f2eff7!important;border:1px solid #e4deed;border-radius:8px!important;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
97
+ #view-toggle label {border-radius:6px!important;min-height:30px!important;padding:6px 10px!important;font:700 11px var(--ui)!important;color:#657083!important}
98
+ #view-toggle label:hover {background:#eee7f7!important}
99
+ #view-toggle label:has(input:checked) {color:#30263f!important}
100
+ #view-toggle .active-tab-indicator {border-radius:6px;background:#fff;box-shadow:0 2px 5px rgba(30,48,35,.08);transition-duration:200ms}
101
+ #stage-status {flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:0!important;max-width:47%;padding:0!important}
102
+ .stage-status {display:flex;gap:7px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font:600 12px/1.6 var(--ui);color:#30263f;box-shadow:none}
103
+ .stage-status span {color:inherit}.stage-status i {margin-top:5px}.stage-status.ready i {background:#784ebc}
104
+ .stage-status.reference {color:#5b358b}.stage-status.busy {color:#536947}.stage-status.error {color:#a53246}
105
+ .wait-clock {font:700 11px var(--mono);font-variant-numeric:tabular-nums}
106
+ #canvas-viewport {padding:16px 54px 48px!important;background:transparent!important;isolation:auto}
107
+ #stage-image {height:400px!important;transition-duration:300ms}
108
+ #stage-image img {border-radius:8px;box-shadow:0 26px 58px rgba(45,29,69,.09),0 0 0 1px #d9e3d9;filter:none}
109
+ .canvas-tools {min-height:48px;padding:8px 24px;font:10px var(--mono);color:var(--muted)}
110
+ .image-dimensions {padding:5px 8px;background:#fff;border:1px solid var(--line);border-radius:6px}
111
+ .zoom-tools {padding:2px 4px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:none}
112
+ .zoom-tools button {width:28px;height:28px;border-radius:5px;color:#657083}.zoom-tools button:hover {background:#eee7f7}
113
+ .zoom-value {font:700 10px var(--mono);color:#30263f}.tool-divider {background:var(--line)}
114
+ #query-row {position:relative;z-index:2;display:block!important;padding:10px 54px 28px!important;background:transparent!important;border:0!important}
115
+ #query-dock {max-width:600px;margin:0 auto!important;padding:12px 15px!important;border:1px solid #e4deed!important;border-radius:8px!important;background:#fff!important;box-shadow:0 18px 42px rgba(45,29,69,.06)!important}
116
+ #query-dock textarea {font:700 13px/1.65 var(--ui)!important;color:#30263f!important}
117
+ #query-dock:focus-within {outline:2px solid #9873c8;outline-offset:2px}
118
+ .query-hint {margin:9px 0 0;text-align:center;color:var(--muted);font:650 11px/1.6 var(--ui)}
119
+ #review-row {display:flex!important;flex-wrap:nowrap!important;gap:24px!important;align-items:stretch}
120
+ #sandbox-panel {flex:0 0 38%!important;min-width:0!important;padding:20px!important;gap:15px!important;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 40px rgba(45,29,69,.04)}
121
+ .film-heading {align-items:center;gap:12px}.film-heading h2 {font:800 11px/1.5 var(--mono);letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:0!important}
122
+ .film-heading small {font:650 11px/1.5 var(--ui);color:var(--green);flex-shrink:0}
123
+ #case-gallery {height:166px!important}
124
+ #case-gallery .grid-container {gap:10px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
125
+ #case-gallery .thumbnail-item {min-width:0!important;height:150px!important;flex-direction:column!important;align-items:stretch;gap:6px;border-radius:8px!important;background:#fff!important;border-color:var(--line)!important;padding:6px!important;box-shadow:0 6px 16px rgba(28,52,34,.05)}
126
+ #case-gallery .thumbnail-item img {width:100%!important;height:106px!important;flex:1 1 0!important;min-height:0!important;border-radius:6px!important}
127
+ #case-gallery .caption-label {max-width:100%!important;text-align:center!important;font:800 11px/1.5 var(--ui)!important;color:#30263f!important;padding:3px!important}
128
+ #case-gallery .thumbnail-item:hover {border-color:#9873c8!important;background:#fcfbfe!important}
129
+ #case-gallery .thumbnail-item.selected {background:#f3eef9!important;border:2px solid #91c331!important;padding:5px!important}
130
+ #source-details {margin-top:auto;border:0!important;border-top:1px solid #e9e5ef!important;padding:8px 0 0!important}
131
+ #source-details .label-wrap {font:650 11px var(--ui)!important;min-height:30px!important;color:var(--muted)!important}
132
+ .source-meta {font:12px/1.7 var(--ui)}.source-meta>span,.source-meta small {font-size:11px}
133
+ #review-summary {flex:1 1 0!important;min-width:0!important;padding:18px!important;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 18px 45px rgba(45,29,69,.04)}
134
+ #result-columns {display:flex!important;flex-wrap:nowrap!important;gap:16px!important;align-items:stretch}
135
+ #metrics-panel {flex:0 0 40%!important;min-width:0!important;padding:14px!important;border:0!important;border-radius:0;gap:14px!important;box-shadow:none;background:#fff}
136
+ .inspector-subheading,#sidebar .inspector-heading h2 {font:800 11px/1.5 var(--mono)!important;letter-spacing:.06em;text-transform:uppercase;color:var(--green)!important;margin:0!important}
137
+ .metrics-list {font:11px var(--mono)}.metrics-list>div {border-top:1px solid #e9e5ef;padding:9px 0;gap:14px}
138
+ .metrics-list dd {font:750 11px/1.6 var(--mono);color:#30263f}
139
+ #sidebar {flex:1 1 0!important;min-width:0!important;width:auto;padding:14px!important;border:0;border-left:1px solid var(--line);border-radius:0;background:#fff;gap:14px!important;box-shadow:none}
140
+ #sandbox-panel>*,#metrics-panel>*,#sidebar>* {flex-grow:0!important}
141
+ .inspector-heading {align-items:flex-start;flex-direction:column;gap:6px}.live-mark {font:11px/1.6 var(--ui);color:var(--muted)}
142
+ #targets-panel {flex:1 1 auto!important}
143
+ #targets-content {overflow-x:hidden!important}
144
+ #targets-content .target-chips {margin-left:0;margin-right:0;max-width:100%;box-sizing:border-box}
145
+ .empty-targets {min-height:172px;gap:10px}.empty-targets svg {width:26px;height:26px;color:#819275;margin:0}
146
+ .empty-targets>b {font:700 12px var(--mono);color:var(--muted)}.empty-targets>small {font:11px/1.8 var(--ui);color:var(--muted);max-width:28ch}
147
+ .targets-summary {font:12px var(--ui)}.targets-summary b {font:800 18px var(--ui)}.targets-summary>span {font-size:11px}
148
+ .target-chips {max-height:240px;display:flex;flex-direction:column;gap:4px}
149
+ .target-chip {min-height:36px!important;padding:7px 9px!important;border:1px solid #e4deed!important;border-radius:6px!important;background:#fcfbfe!important;font:600 12px var(--ui)!important;color:#30263f!important}
150
+ .target-chip:hover {background:#f3eef9!important}.target-chip[aria-pressed=true] {background:#eee7f7!important;color:#5b358b!important;border-color:#91c331!important}
151
+ .target-chip i {border-color:#9873c8}.target-chip b {font:700 11px var(--mono);color:var(--green)}
152
+ .focus-help,.targets-caption {font:11px/1.7 var(--ui)}.clear-focus {font:650 11px var(--ui)}
153
+ .detail-heading {font:700 12px var(--ui)}.detail-heading small {font:11px var(--ui)}.detail-image {height:150px;border-radius:6px}.detail-coordinates {font-size:11px;line-height:1.6}
154
+ .focus-dimmer {fill:#172018;opacity:.24;animation-duration:180ms}.focus-outline {stroke:#a3d749;animation-duration:220ms}
155
+ .focus-pixels {position:absolute!important;pointer-events:none;z-index:4;object-fit:fill!important;box-shadow:none!important}
156
+ .focus-source[hidden] {display:none!important}
157
+ .focus-caption {top:auto;bottom:60px;left:22px;right:auto!important;width:fit-content!important;max-width:calc(100% - 44px);padding:5px 6px 5px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#30263f;font:650 12px var(--ui);box-shadow:0 4px 14px rgba(25,49,31,.1)}
158
+ .focus-caption span {white-space:normal;overflow-wrap:anywhere;line-height:1.5;max-height:60px}
159
+ .focus-caption button:disabled {opacity:.35;cursor:default}
160
+ .focus-caption button {background:#eee7f7;color:#5b358b;border-radius:5px}
161
+ #prompt-console,#output-console {margin-top:4px!important;padding:18px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:#fff!important;box-shadow:0 16px 40px rgba(45,29,69,.04)}
162
+ #prompt-console>.label-wrap,#output-console>.label-wrap {font:800 11px var(--mono)!important;letter-spacing:.06em;text-transform:uppercase;min-height:30px;color:var(--green)!important}
163
+ #prompt-console .block {border-color:#e4deed!important;border-radius:7px!important;background:#fcfef9!important}
164
+ #prompt-console textarea,#output-console textarea {background:#fff!important;border-color:var(--line)!important;color:#30263f!important;font:12px/1.8 var(--mono)!important}
165
+ #prompt-console label>span,#output-console label>span {color:var(--green)!important;font:700 10px var(--mono)!important}
166
+ .console-note {font:11px/1.7 var(--ui);color:var(--muted)}
167
+ #output-console .cm-editor {max-height:360px;overflow:hidden}
168
+ #output-console .cm-scroller {max-height:330px;overflow:auto!important}
169
+ #output-console .cm-content {min-height:0!important}
170
+ #prompt-console textarea {max-height:220px!important;overflow-y:auto!important}
171
+ .studio-footer {padding:12px 2px;font:11px/1.7 var(--ui);color:var(--muted)}.studio-footer i {color:var(--muted)}
172
+ @keyframes focus-dim {from{opacity:0}to{opacity:.24}}
173
+ @media(min-width:1500px) {
174
+ #controls {padding:42px 42px 34px!important}.xpeng-logo {width:220px}
175
+ #stage-image {height:440px!important}#canvas-viewport {padding:16px 60px 48px!important}#query-row {padding:12px 60px 30px!important}
176
+ }
177
+ @media(max-width:1100px) {
178
+ .studio-header h1 {font-size:28px}.studio-header .eyebrow {font-size:10px}.grounding-intro h2 {font-size:22px}.grounding-intro p {max-width:220px;font-size:12px}
179
+ #controls {flex-basis:30%!important;min-width:260px!important;padding:26px 22px!important;gap:20px!important}
180
+ .control-brand h2 {font-size:30px}.xpeng-logo {width:172px}.control-brand p {font-size:13px}
181
+ #control-settings {padding:12px!important}#control-fields {gap:9px!important}
182
+ #control-fields {flex-direction:column!important}#control-fields>.form {width:100%!important;flex-basis:auto!important}#media-type {flex-basis:auto!important}
183
+ #stage-toolbar {padding:16px 18px 8px!important;gap:10px!important;flex-wrap:wrap!important}#stage-status {max-width:100%;flex-basis:100%!important}.stage-status {width:fit-content}
184
+ #canvas-viewport {padding:12px 24px 48px!important}#stage-image {height:350px!important}#query-row {padding:12px 24px 24px!important}
185
+ #sandbox-panel {padding:16px!important}.film-heading {align-items:flex-start;flex-direction:column;gap:4px}#review-row {gap:18px!important}
186
+ #review-summary {padding:12px!important}#result-columns {gap:12px!important}#metrics-panel {flex-basis:43%!important;padding:12px!important}#sidebar {padding:12px!important}
187
+ #case-gallery {height:150px!important}#case-gallery .thumbnail-item {height:136px!important}
188
+ .metrics-list>div {gap:8px}.metrics-list,.metrics-list dd {font-size:10px}
189
+ }
190
+ @media(max-width:760px) {
191
+ .header-scope {display:none}.header-description {font-size:12px;margin-top:5px}
192
+ .studio-header {padding:4px 0 18px;gap:12px}.chapter-mark {width:36px;height:36px;flex-basis:36px}.studio-header h1 {font-size:25px}.studio-header .eyebrow {font-size:9px;line-height:1.6}
193
+ .grounding-intro {display:block;padding:0 0 10px}.grounding-intro h2 {font-size:20px;line-height:1.35}.grounding-intro p {max-width:none;margin-top:8px;text-align:left;font-size:12px}.eyebrow {font-size:10px}
194
+ #workspace-top {flex-direction:column!important;min-height:0;border-radius:8px}#console {gap:14px!important}
195
+ #controls {flex:0 0 auto!important;min-width:0!important;padding:24px!important;border-right:0;border-bottom:1px solid var(--line);border-radius:8px 8px 0 0;gap:20px!important}
196
+ .control-brand {gap:10px}.control-brand h2 {font-size:32px}.control-brand p {font-size:13px}.xpeng-logo {width:160px}
197
+ #control-settings {padding:14px!important;gap:12px!important}#control-fields {gap:14px!important}#media-type {flex-basis:43%!important}
198
+ #controls {padding:16px!important;gap:12px!important}
199
+ .control-brand {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
200
+ .control-brand .xpeng-logo {width:104px;filter:none}.control-brand h2 {font-size:24px;margin:0}.control-brand p {display:none}
201
+ #control-settings {padding:0!important;border:0;gap:8px!important}
202
+ #control-fields {flex-direction:row!important;gap:12px!important}#control-fields>.form {width:0!important;flex:1 1 0!important}
203
+ #media-type {flex:0 0 30%!important}
204
+ #upload-button {min-height:40px!important;padding:8px 10px!important}
205
+ #service-panel {padding-top:8px!important;gap:2px!important}.api-status small {font-size:11px}
206
+ #service-panel #health-button {min-height:32px!important}
207
+ #run-button {display:none!important}
208
+ #task-guide {padding:14px 16px 0!important}.task-guide {gap:4px}.task-guide strong {font-size:15px}.task-guide small {font-size:11px}
209
+ #mobile-run-button {display:flex!important;align-items:center;justify-content:center;width:100%;min-height:48px!important;margin-top:12px;border-radius:999px!important;border:0!important;background:linear-gradient(180deg,#a3d749,#91c331)!important;color:#0b1408!important;font:800 15px var(--ui)!important}
210
+ #mobile-run-button:disabled {background:#edf4e7!important;color:#536947!important}
211
+ #run-button {min-height:48px!important;font-size:15px!important;margin-top:4px!important}
212
+ #visual-stage {flex:0 0 auto!important;min-width:0!important;border-radius:0 0 8px 8px}
213
+ #stage-toolbar {padding:14px 14px 8px!important;gap:10px!important}#view-toggle label {padding:8px 12px!important;min-height:36px!important;font-size:11px!important}
214
+ #stage-status {max-width:100%;width:100%;flex-basis:100%!important}.stage-status {font-size:10px;width:fit-content}
215
+ #canvas-viewport {padding:12px 14px 52px!important}#stage-image {height:300px!important}
216
+ .canvas-tools {padding:4px 12px}.zoom-tools button {width:44px;height:44px}
217
+ .focus-caption {left:14px;max-width:calc(100% - 28px);gap:4px;bottom:62px;padding-left:8px}
218
+ .focus-caption button {width:44px;height:44px}.focus-caption span {font-size:11px}
219
+ #query-row {padding:12px 16px 22px!important}#query-dock {padding:12px!important}#query-dock textarea {font-size:12px!important}
220
+ .query-hint {font-size:10px}
221
+ #review-row {flex-direction:column!important;gap:14px!important}#sandbox-panel {flex:0 0 auto!important;padding:18px!important;gap:12px!important}.film-heading {flex-direction:row;align-items:center}.film-heading h2 {font-size:10px}.film-heading small {font-size:10px}
222
+ #case-gallery {height:140px!important}#case-gallery .thumbnail-item {height:128px!important}#case-gallery .grid-container {gap:8px!important}#case-gallery .caption-label {font-size:10px!important}
223
+ #review-summary {flex:0 0 auto!important;padding:14px!important}#result-columns {flex-direction:column!important;gap:14px!important}
224
+ #metrics-panel {flex:0 0 auto!important;padding:16px!important}#sidebar {flex:0 0 auto!important;min-width:0!important;padding:16px!important;border:1px solid var(--line)}
225
+ .metrics-list {grid-template-columns:1fr 1fr;gap:2px 18px}.metrics-list>div {gap:4px}.metrics-list,.metrics-list dd {font-size:11px}
226
+ .empty-targets {min-height:150px}.target-chips {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.target-chip {min-height:44px!important}
227
+ .inspector-heading {flex-direction:row;flex-wrap:wrap;align-items:baseline}.live-mark {font-size:10px}.detail-image {height:170px}
228
+ #prompt-console,#output-console {padding:14px!important}#prompt-console>.label-wrap,#output-console>.label-wrap {font-size:10px!important}.studio-footer {font-size:10px}
229
+ }
230
+ @media(max-width:430px) {
231
+ #controls {padding:14px!important}#stage-image {height:262px!important}.film-heading {gap:8px}.film-heading h2 {max-width:160px}.image-dimensions {font-size:9px}
232
+ }
233
+ @media(prefers-reduced-motion:reduce) {
234
+ *,*::before,*::after {animation:none!important;transition-duration:0ms!important;scroll-behavior:auto!important}
235
+ }
236
+
237
+ /* Paper-demo r7: scoped refinements, same left-controls / right-canvas layout. */
238
+ .control-brand h2 {color:var(--purple-deep);letter-spacing:-.04em}
239
+ .control-brand h2 span {color:var(--lime)}
240
+ .control-brand p {font-weight:500;color:var(--muted)}
241
+ .studio-header h1 {color:var(--purple-deep);letter-spacing:-.035em}
242
+ .header-description {max-width:720px;font-weight:450}
243
+ .header-scope {font:650 10px/1.5 var(--mono);letter-spacing:.08em;color:var(--purple)}
244
+ .xpeng-logo {filter:none}
245
+ .task-guide strong {color:var(--purple-deep)}
246
+ #stage-toolbar {min-height:44px;padding-top:12px!important}
247
+ #stage-status {max-width:100%;flex:1!important}
248
+ .stage-status {background:#fff;color:#51495e;width:fit-content}
249
+ #stage-image .buttons {display:none!important}
250
+ #canvas-viewport {padding-bottom:64px!important}
251
+ #stage-image img {box-shadow:0 14px 34px rgba(45,29,69,.09);border-radius:4px}
252
+ #run-button {box-shadow:0 8px 22px rgba(114,153,34,.18)!important}
253
+ #query-dock textarea {font-weight:550!important}
254
+ .query-hint {font-weight:500}
255
+ .inspector-subheading,#sidebar .inspector-heading h2,#prompt-console>.label-wrap,#output-console>.label-wrap {color:var(--purple-deep)!important}
256
+ .film-heading h2 {color:var(--purple-deep)}
257
+ .target-chip i {background:var(--category-color)!important;border-color:var(--category-color)!important}
258
+ .focus-caption {position:relative;bottom:auto;left:auto;max-width:100%;margin:8px 0 0}
259
+ #canvas-viewport:has(.focus-caption) {padding-bottom:64px!important}
260
+ .detail-heading {flex-wrap:wrap;gap:4px}
261
+ .canvas-download {display:grid;place-items:center;width:28px;height:28px;border-radius:5px;color:var(--purple-deep);cursor:pointer}
262
+ .canvas-download:hover {background:var(--lavender)}
263
+ .canvas-download:focus-visible {outline:2px solid var(--purple);outline-offset:2px}
264
+ #console .translucent {opacity:1!important}
265
+ @media(max-width:760px) {
266
+ .studio-header h1 {font-size:25px}
267
+ .header-description {font-size:12px;line-height:1.6}
268
+ .focus-caption {max-width:100%;left:auto;bottom:auto;margin-top:8px}
269
+ .focus-caption span {font-size:11px}
270
+ .film-heading {flex-wrap:wrap}
271
+ .canvas-download {width:44px;height:44px}
272
+ }
assets/paper.css ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face{font-family:Manrope;src:url(data:font/ttf;base64,__MANROPE_DATA__) format('truetype');font-weight:200 800;font-display:swap}
2
+ :root{--purple:#7651aa;--purple-deep:#563a80;--lime:#afd064;--ink:#292633;--muted:#686371;--line:#e5e1eb;--paper:#f3f1f7;--lavender:#ebe5f4;--canvas:#e9e6ef;--ease:cubic-bezier(.16,1,.3,1);--ui:Manrope,"PingFang SC","Microsoft YaHei",sans-serif}
3
+ body{background:var(--paper)!important;color-scheme:light}
4
+ .gradio-container{max-width:1660px!important;margin:0 auto!important;padding:22px 32px 18px!important;font-family:var(--ui)!important;background:var(--paper)!important;color:var(--ink)!important;--body-text-color:var(--ink);--body-text-color-subdued:var(--muted);--block-background-fill:#fff;--input-background-fill:#fff;--block-border-color:var(--line);--input-border-color:var(--line);--block-radius:12px;--color-accent:var(--purple);--checkbox-background-color-selected:var(--purple)}
5
+ *{scrollbar-width:thin;scrollbar-color:#c9bdd9 transparent;box-sizing:border-box}
6
+ ::selection{background:#dcd0ed;color:#40275e}input,textarea{caret-color:var(--purple)}
7
+ button,a,input,textarea{font-family:var(--ui)}:is(button,a,input,textarea):focus-visible{outline:2px solid var(--purple)!important;outline-offset:3px}
8
+ button{-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait!important}.gap{gap:12px}.html-container{padding:0!important}
9
+ .form{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
10
+ .studio-header{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:4px 0 20px}.studio-identity{display:flex;align-items:center;gap:16px;min-width:0}
11
+ .xpeng-logo{display:block;width:118px;height:auto;object-fit:contain;border-radius:3px;margin:0!important}.brand-divider{height:28px;width:1px;background:#d6cfdf;margin:0 3px}
12
+ .studio-identity h1{font:800 28px/1.2 var(--ui)!important;letter-spacing:-.035em;color:var(--purple-deep)!important;margin:0!important;white-space:nowrap}.studio-name{color:var(--muted);font:500 13px var(--ui);padding-top:6px;white-space:nowrap}
13
+ .header-note{font:500 12px var(--ui);color:var(--muted);display:flex;gap:22px;align-items:center;white-space:nowrap}.header-note>span{padding:6px 10px;border:1px solid #d7cede;border-radius:6px;font-size:11px;color:var(--purple-deep)}
14
+ #controls{gap:0!important;min-width:0!important;margin-bottom:5px}#route-select{padding:0!important;border:0!important;background:transparent!important;min-width:0!important;overflow:visible!important}
15
+ #route-select .wrap{display:flex!important;flex-wrap:nowrap!important;gap:2px!important;position:relative;overflow-x:auto!important;scrollbar-width:none;padding:4px 2px 12px}
16
+ #route-select label{flex:1 0 auto;display:flex!important;justify-content:center;align-items:center;min-height:42px!important;padding:10px 16px!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#655c72!important;font:650 12px var(--ui)!important;white-space:nowrap;border-radius:9px!important;gap:0!important;z-index:1;transition:color 180ms}
17
+ #route-select label:hover{color:var(--purple-deep)!important;background:#eae4f1!important}#route-select label:has(input:checked){color:#fff!important;background:var(--purple-deep)!important}#route-select.enhanced label:has(input:checked){background:transparent!important}
18
+ #route-select input,#view-toggle input{position:absolute;width:0!important;height:0!important;opacity:0;margin:0!important}#route-select label:has(input:focus-visible),#view-toggle label:has(input:focus-visible){outline:2px solid var(--purple);outline-offset:2px}
19
+ .active-tab-indicator{position:absolute;left:0;top:0;background:var(--purple-deep);border-radius:9px;pointer-events:none;z-index:0;transition:transform 340ms var(--ease);height:42px}
20
+ #console{flex-wrap:nowrap!important;gap:0!important;align-items:stretch;background:#fff;border:0;border-radius:16px;overflow:hidden;box-shadow:0 16px 48px #44365312}
21
+ #visual-stage{flex:1 1 0!important;min-width:0!important;gap:0!important;padding:0!important;background:#fff;position:relative}
22
+ #visual-stage>*,#sidebar>.block{flex-grow:0!important}
23
+ #stage-toolbar{flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:16px!important;padding:14px 20px!important;background:#fff;min-height:66px}
24
+ #view-toggle{min-width:0!important;flex:1 1 auto!important;padding:0!important;background:transparent!important;border:0!important}#view-toggle .wrap{display:flex;gap:2px!important;position:relative;isolation:isolate;padding:3px;width:fit-content;background:#f1eef5;border-radius:9px}
25
+ #view-toggle label{min-height:32px!important;padding:7px 15px!important;justify-content:center;border:0!important;border-radius:6px!important;background:transparent!important;color:#665d73!important;box-shadow:none!important;font:600 12px var(--ui)!important;gap:0!important;z-index:1;transition:color 160ms}
26
+ #view-toggle label:hover{color:var(--purple-deep)!important;background:#e7dfef!important}#view-toggle label:has(input:checked){background:#fff!important;color:var(--purple-deep)!important;box-shadow:0 2px 5px #3c2b5410!important}#view-toggle.enhanced label:has(input:checked){background:transparent!important;box-shadow:none!important}#view-toggle .active-tab-indicator{background:#fff;border-radius:6px;box-shadow:0 2px 5px #3c2b5410;z-index:-1}
27
+ #upload-button{flex:0 0 104px!important;min-width:104px!important;min-height:36px!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:7px!important;box-shadow:none!important;padding:8px 12px!important;color:var(--purple-deep)!important;font:650 12px var(--ui)!important;transition:background 150ms,border-color 150ms}#upload-button:hover{background:#f4f0f8!important;border-color:#ad97c7!important}
28
+ #canvas-viewport{position:relative;overflow:hidden!important;border-radius:0!important;background:var(--canvas);min-width:0!important;gap:0!important;padding:20px 24px 48px!important;isolation:isolate}
29
+ #stage-image{position:relative!important;isolation:isolate;min-width:0!important;height:clamp(350px,48vh,570px)!important;min-height:0!important;background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;transform-origin:50% 50%;transition:transform 430ms var(--ease);overflow:visible!important;touch-action:pan-y}
30
+ #canvas-viewport.is-panning #stage-image{transition:none!important}#canvas-viewport.is-zoomed #stage-image{touch-action:none;cursor:grab}#canvas-viewport.is-panning #stage-image{cursor:grabbing}
31
+ #stage-image img{object-fit:contain!important;border-radius:3px;box-shadow:0 9px 22px #251b3b13}#stage-image .image-container{background:transparent!important}#stage-image .buttons{opacity:0;transition:opacity 160ms}#stage-image:hover .buttons,#stage-image:focus-within .buttons{opacity:1}
32
+ #canvas-chrome{position:absolute!important;bottom:0;left:0;width:100%;min-height:0!important;z-index:8;pointer-events:none}.canvas-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 18px;color:#655c72;font:500 10px ui-monospace,monospace;min-height:44px}.image-dimensions{font-variant-numeric:tabular-nums;white-space:nowrap}
33
+ .zoom-tools{display:flex;align-items:center;gap:3px;background:#fff;border-radius:8px;padding:2px 4px;box-shadow:0 3px 9px #3121410c;pointer-events:auto}.zoom-tools button{border:0;background:transparent;color:var(--purple-deep);width:30px;height:30px;display:grid;place-items:center;border-radius:5px;cursor:pointer}.zoom-tools button:hover{background:var(--lavender)}.zoom-tools button:disabled{opacity:.35;cursor:default!important}.zoom-tools svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.zoom-value{font:650 10px ui-monospace,monospace;min-width:42px;text-align:center;color:var(--purple-deep)}.tool-divider{width:1px;height:15px;background:var(--line);margin:0 3px}
34
+ #query-row{display:flex;flex-wrap:nowrap!important;align-items:center;gap:16px!important;padding:17px 22px!important;background:#fff;border-bottom:1px solid var(--line)}#query-dock{flex:1 1 0!important;min-width:0!important;background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important}
35
+ #query-dock label>span{font:750 12px var(--ui)!important;color:var(--purple-deep)!important;margin-bottom:7px!important}#query-dock textarea{border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important;color:var(--ink)!important;font:500 12px/1.65 var(--ui)!important;resize:none!important}#query-dock textarea::placeholder{color:var(--muted);opacity:1}#query-dock:focus-within label>span{color:#8059b1!important}
36
+ #run-button{flex:0 0 136px!important;min-width:136px!important;min-height:46px!important;border:0!important;border-radius:9px!important;background:var(--lime)!important;color:#2c4018!important;font:800 14px var(--ui)!important;padding:12px 18px!important;box-shadow:none!important;transition:background 150ms,transform 150ms var(--ease)}#run-button:hover:not(:disabled){background:#bfdc81!important}#run-button:active:not(:disabled){transform:scale(.975)}#run-button:disabled{background:var(--lavender)!important;color:var(--purple-deep)!important;opacity:1!important}#run-button.is-waiting{position:relative;color:transparent!important}#run-button.is-waiting::after{content:"Grounding…";position:absolute;inset:0;display:grid;place-items:center;color:var(--purple-deep)}
37
+ #sandbox-panel{padding:15px 22px 19px!important;background:#fff;gap:10px!important;min-width:0!important}.film-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#62596f;font:700 11px var(--ui)}.film-heading small{font:500 10px var(--ui);color:var(--muted)}
38
+ #case-gallery{background:transparent!important;border:0!important;padding:0!important;min-height:0!important}#case-gallery .grid-wrap{border:0!important}#case-gallery .grid-container{gap:12px!important;padding:3px!important;grid-template-rows:1fr!important;height:100%!important}
39
+ #case-gallery .thumbnail-item{aspect-ratio:auto!important;height:112px!important;min-height:0!important}
40
+ #case-gallery .thumbnail-item{display:flex!important;flex-direction:row;align-items:center;gap:11px;border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important;padding:5px!important;overflow:hidden!important;transition:border-color 180ms,background 180ms}#case-gallery .thumbnail-item:hover{border-color:#b49dcf!important;background:#faf7fd!important}#case-gallery .thumbnail-item.selected{border:2px solid #a387c3!important;background:#f5f0fa!important;padding:4px!important}#case-gallery .thumbnail-item img{width:62%!important;height:100%!important;object-fit:cover!important;border-radius:5px!important;min-width:0!important;flex:0 0 62%}#case-gallery .caption-label{position:static!important;white-space:normal!important;word-break:normal;overflow-wrap:anywhere;background:transparent!important;color:var(--purple-deep)!important;font:700 11px/1.6 var(--ui)!important;padding:4px!important;max-width:36%!important;text-align:left!important;box-shadow:none!important}
41
+ #sidebar{flex:0 0 290px!important;min-width:290px!important;padding:22px!important;background:#fcfbfe;border-left:1px solid var(--line);gap:16px!important}.inspector-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.inspector-heading h2{font:750 17px var(--ui)!important;color:var(--ink)!important;margin:0!important;letter-spacing:-.02em}.live-mark{font:500 10px var(--ui);color:#746b7e}
42
+ #targets-content{flex-grow:0!important}.target-chips{max-height:232px}#sidebar:has(.evidence-detail:not([hidden])) .target-chips{max-height:184px}
43
+ #stage-status{min-height:32px}.stage-status{display:flex;align-items:flex-start;gap:7px;font:550 11px/1.65 var(--ui);color:#5b6e40;overflow-wrap:anywhere;flex-wrap:wrap}.stage-status>span{flex:1;min-width:0}.stage-status i,.api-status i{width:6px;height:6px;border-radius:50%;background:#8b8790;flex-shrink:0;margin-top:6px}.stage-status.ready i,.api-status.online i{background:#729642}.stage-status.reference,.stage-status.busy{color:var(--purple-deep)}.stage-status.reference i{background:var(--purple)}.stage-status.error,.api-status.offline{color:#a53246}.stage-status.error i,.api-status.offline i{background:#b54559}.stage-status.busy i{width:10px;height:10px;border:2px solid #cbbbdc;border-top-color:var(--purple);background:transparent;animation:wait-turn .9s linear infinite;margin-top:4px}.wait-clock{font:600 11px ui-monospace,monospace;font-variant-numeric:tabular-nums;color:var(--purple-deep)}.tab-hidden .stage-status.busy i{animation-play-state:paused}
44
+ #targets-panel{min-width:0!important;flex:1 1 0!important;gap:0!important}.empty-targets{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:#71617f}.empty-targets svg{width:40px;height:40px;color:#9175b0;margin-bottom:5px}.empty-targets>b{font:700 13px var(--ui);color:#5e4f70}.empty-targets>small{font:500 11px/1.8 var(--ui);color:var(--muted);max-width:23ch}
45
+ .targets-summary{font:550 11px var(--ui);display:flex;align-items:baseline;gap:5px;color:var(--muted)}.targets-summary b{font:750 18px var(--ui);color:var(--purple-deep);font-variant-numeric:tabular-nums}.targets-summary>span{margin-left:auto;font-size:10px}.target-chips{display:flex;flex-direction:column;gap:2px;max-height:282px;overflow:auto;padding:3px;margin:12px -3px 0}
46
+ .target-chip{display:flex;align-items:center;gap:9px;min-height:33px;padding:7px 9px!important;background:transparent!important;border:0!important;border-radius:6px!important;font:550 11px var(--ui)!important;color:#594e67!important;cursor:pointer;transition:background 160ms,color 160ms}.target-chip:hover{background:#f0eaf7!important}.target-chip[aria-pressed=true]{background:#e8ddf3!important;color:#4f326f!important}.target-chip>span{flex:1;text-align:left;overflow-wrap:anywhere}.target-chip i{width:6px;height:6px;border:1.5px solid #a186bc;border-radius:2px;flex-shrink:0}.target-chip[aria-pressed=true] i{background:var(--purple);border-color:var(--purple)}.target-chip b{font:600 10px ui-monospace,monospace;color:#756385}
47
+ .focus-help{font:500 10px/1.6 var(--ui);color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.clear-focus{font:650 10px var(--ui);background:none!important;border:0!important;color:var(--purple-deep);cursor:pointer;text-decoration:underline;text-underline-offset:4px;padding:4px!important}.clear-focus[hidden],.evidence-detail[hidden]{display:none!important}.targets-caption{font:550 9px/1.7 var(--ui);color:var(--muted);margin-top:9px;padding-top:8px;border-top:1px solid var(--line)}
48
+ #detail-panel:has(.evidence-detail[hidden]){display:none!important}.evidence-detail{padding:12px 0 3px;border-top:1px solid var(--line);animation:detail-in 360ms var(--ease)}.detail-heading{display:flex;justify-content:space-between;align-items:center;font:650 11px var(--ui);color:var(--purple-deep);margin-bottom:9px}.detail-heading small{font:500 9px var(--ui);color:var(--muted)}.detail-image{height:130px;border-radius:6px;overflow:hidden;background-color:var(--canvas);background-repeat:no-repeat}.detail-coordinates{font:500 9px/1.6 ui-monospace,monospace;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
49
+ #metrics-panel{flex-grow:0!important;min-width:0!important;gap:8px!important;padding-top:15px!important;border-top:1px solid var(--line)}.inspector-subheading{font:700 12px var(--ui)!important;color:#53465f!important;margin:0!important}.metrics-list{margin:0!important;font:500 10px var(--ui)}.metrics-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0}.metrics-list dt{color:var(--muted)}.metrics-list dd{margin:0;text-align:right;color:#55485f;font:600 10px ui-monospace,monospace;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metrics-list>div:nth-child(1) dd{font-family:var(--ui)}
50
+ #source-details{border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;padding:10px 0 0!important;background:transparent!important;overflow:hidden!important}#source-details .label-wrap{width:calc(100% - 4px)!important;min-height:28px!important;font:600 10px var(--ui)!important;color:var(--muted)!important}.source-meta{display:grid;gap:6px;font:500 10px/1.6 var(--ui);color:var(--muted);overflow-wrap:anywhere;padding-top:8px}.source-meta>span{font-size:9px;color:var(--purple-deep);font-weight:700;margin-top:5px}.source-meta small{font-size:10px;line-height:1.7}
51
+ #service-panel{flex-grow:0!important;gap:2px!important;padding-top:12px!important;border-top:1px solid var(--line)}.api-status{display:flex;gap:6px;align-items:center;font:600 10px var(--ui);color:#607245;flex-wrap:wrap}.api-status i{margin:0}.api-status span{font:500 9px ui-monospace,monospace;color:var(--muted);margin-left:auto}#health-button{background:none!important;border:0!important;box-shadow:none!important;color:var(--muted)!important;text-align:left;font:500 10px var(--ui)!important;min-height:28px!important;padding:5px 0!important;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#b6a9c3}
52
+ .focus-layer{position:absolute;pointer-events:none;z-index:5;overflow:visible}.focus-dimmer{fill:#251437;opacity:.5;animation:focus-dim 320ms var(--ease)}.focus-outline{fill:none;stroke:#d1ef91;stroke-width:2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #2228);stroke-dasharray:1;stroke-dashoffset:0;animation:focus-ink 440ms var(--ease)}.focus-caption{position:absolute;top:10px;left:10px;z-index:6;display:flex;align-items:center;gap:10px;max-width:calc(100% - 20px);padding:6px 7px 6px 12px;border-radius:7px;background:#fff;box-shadow:0 4px 14px #22153720;color:var(--purple-deep);font:650 11px var(--ui)}.focus-caption span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.focus-caption button{display:grid;place-items:center;border:0;background:var(--lavender);color:var(--purple-deep);border-radius:5px;width:28px;height:28px;cursor:pointer;flex-shrink:0}
53
+ #console[aria-busy=true] #canvas-viewport{cursor:progress}#controls[inert]{opacity:.65}#console .wrap.center.full{display:none!important}
54
+ #prompt-console,#output-console{border:0!important;border-bottom:1px solid #ded7e8!important;border-radius:0!important;background:transparent!important;padding:4px 2px!important}#prompt-console>.label-wrap,#output-console>.label-wrap{font:600 11px var(--ui)!important;color:#6b5d7b!important;min-height:33px}#prompt-console textarea,#output-console textarea{font:12px/1.7 ui-monospace,monospace!important}.console-note{font:500 11px/1.6 var(--ui);color:var(--muted);margin-top:8px}
55
+ .studio-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;font:500 10px var(--ui);color:#736b7d;padding:8px 0 2px}.studio-footer i{font-style:normal;margin-left:12px;color:#807887}.gradio-container>footer{display:none!important}
56
+ @keyframes wait-turn{to{transform:rotate(360deg)}}@keyframes focus-dim{from{opacity:0}to{opacity:.5}}@keyframes focus-ink{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes detail-in{from{clip-path:inset(0 0 100% 0);opacity:.5}to{clip-path:inset(0);opacity:1}}
57
+ @media(min-width:1500px){#sidebar{flex-basis:310px!important;min-width:310px!important;padding:26px!important}.target-chips{max-height:315px}#stage-image{height:clamp(420px,50vh,610px)!important}}
58
+ @media(max-width:1100px){.header-note{display:none}#route-select label{padding:10px 13px!important;font-size:11px!important}#sidebar{flex-basis:252px!important;min-width:252px!important;padding:18px!important}#canvas-viewport{padding:18px 18px 46px!important}#query-row{padding:16px!important;gap:12px!important}#sandbox-panel{padding:14px 16px!important}#case-gallery .thumbnail-item{flex-direction:column;gap:1px}#case-gallery .thumbnail-item img{width:100%!important;flex:1 1 0;min-height:0!important}#case-gallery .caption-label{max-width:100%!important;line-height:1.4!important;text-align:center!important}#stage-image{height:390px!important}#run-button{flex-basis:112px!important;min-width:112px!important}}
59
+ @media(max-width:760px){.studio-header{padding:8px 0 15px}.studio-identity{gap:11px}.xpeng-logo{width:90px}.brand-divider{height:22px;margin:0 1px}.studio-identity h1{font-size:24px!important}.studio-name{display:none}#controls{margin:0!important}#route-select label{font-size:12px!important;min-height:42px!important;padding:10px 16px!important}#console{flex-direction:column!important;border-radius:12px}#sidebar{flex:auto!important;min-width:0!important;width:100%;padding:20px!important;border-left:0;border-top:1px solid var(--line);gap:14px!important}#visual-stage{min-width:0!important}#stage-toolbar{padding:12px!important;gap:8px!important}#view-toggle label{padding:8px 10px!important;min-height:38px!important;font-size:11px!important}#upload-button{min-width:85px!important;flex-basis:85px!important;font-size:11px!important;min-height:40px!important;padding:8px!important}#canvas-viewport{padding:14px 12px 46px!important}#stage-image{height:330px!important}.canvas-tools{padding:8px 12px}.zoom-tools button{width:32px;height:32px}#query-row{align-items:stretch;gap:10px!important;padding:15px!important}#query-dock textarea{font-size:12px!important}#run-button{min-width:85px!important;flex-basis:85px!important;padding:10px!important;font-size:12px!important}#sandbox-panel{padding:14px 12px!important}#case-gallery{height:120px!important}#case-gallery .grid-container{gap:7px!important}#case-gallery .caption-label{font-size:10px!important}.film-heading small{font-size:9px}.target-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:250px;gap:4px}.target-chip{min-height:42px}.empty-targets{min-height:150px}.evidence-detail{max-width:360px}.detail-image{height:170px}.metrics-list{display:grid;grid-template-columns:1fr 1fr;gap:5px 20px}.metrics-list>div{align-items:flex-start;flex-direction:column;gap:5px;padding:5px 0}.metrics-list dd{text-align:left}.studio-footer{align-items:flex-start;flex-direction:column;gap:5px;line-height:1.7}.studio-footer i{display:block;margin-left:0}#source-details .label-wrap{min-height:38px!important}#health-button{min-height:38px!important}.focus-help,.targets-caption{font-size:10px}}
60
+ @media(max-width:430px){#stage-image{height:282px!important}.studio-identity h1{font-size:22px!important}.xpeng-logo{width:85px}.canvas-tools .image-dimensions{font-size:9px}.film-heading{font-size:10px}.film-heading small{max-width:150px;text-align:right}}
61
+ @media(max-width:760px){#case-gallery .thumbnail-item{height:96px!important}#query-row{align-items:center!important}#run-button{min-height:48px!important;height:48px!important}#sidebar:has(.evidence-detail:not([hidden])) .target-chips{max-height:230px}}
62
+ @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition-duration:0ms!important}.stage-status.busy i{background:var(--purple);border:0}#run-button:active:not(:disabled){transform:none}}
assets/xpeng-logo.png ADDED
cases/dense/dense-01-o365_bbox_gt50_00009110.jpg ADDED

Git LFS Details

  • SHA256: 398038106cbac731516dd01de25354fe4d61f3599df64baa611f1d5a99e0e8fb
  • Pointer size: 131 Bytes
  • Size of remote file: 330 kB
cases/dense/dense-02-o365_bbox_gt50_00004676.jpg ADDED

Git LFS Details

  • SHA256: 7ee3beb63bdfd50c183538bd56f9d7e079fa41bde78aad9d5fe0d22c041c2673
  • Pointer size: 131 Bytes
  • Size of remote file: 739 kB
cases/dense/dense-03-o365_bbox_gt50_00011992.jpg ADDED

Git LFS Details

  • SHA256: eb9331146b66a1af1e8c832a22043c6f1b45d5d3bb7231816f975ced2cd88e39
  • Pointer size: 131 Bytes
  • Size of remote file: 152 kB
cases/dense_point/dense_point-01-sensenova_sa1b_point_1067906__phrase_000.jpg ADDED

Git LFS Details

  • SHA256: 917975c9b31791290a2a660c91af8ae0653cfe258fa0c53539bcb868867aece2
  • Pointer size: 131 Bytes
  • Size of remote file: 526 kB
cases/dense_point/dense_point-02-sensenova_sa1b_point_1445784__phrase_002.jpg ADDED

Git LFS Details

  • SHA256: 0b9a2281fec580c02b9292d8b3f96b675a8659d721f4dd8a1ae16a1eadbaf4e9
  • Pointer size: 131 Bytes
  • Size of remote file: 966 kB
cases/dense_point/dense_point-03-sensenova_sa1b_point_1451598__phrase_001.jpg ADDED

Git LFS Details

  • SHA256: d2f0e070f49cc001ef6855964175c8c383358fcc2185d62abf29ba0de0d1be22
  • Pointer size: 131 Bytes
  • Size of remote file: 497 kB
cases/grounding/grounding-01-object365-locate_anything_object365_object365-file-0027-row-000000119924.jpg ADDED
cases/grounding/grounding-02-object365-locate_anything_object365_object365-file-0027-row-000001469030.jpg ADDED
cases/grounding/grounding-03-object365-locate_anything_object365_object365-file-0027-row-000001076761.jpg ADDED
cases/gui/gui-01-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000043686__gui_0008.jpg ADDED

Git LFS Details

  • SHA256: c9c27a9df49bac1c9664eb74ecf1fe9967e20281add73fff1273437af06b743b
  • Pointer size: 131 Bytes
  • Size of remote file: 456 kB
cases/gui/gui-02-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000006009__gui_0028.jpg ADDED

Git LFS Details

  • SHA256: 7ff12fde621319e2959b3112fa6c1fe4e6ef83b8943a6ee169d7fc2140f59e74
  • Pointer size: 131 Bytes
  • Size of remote file: 149 kB
cases/gui/gui-03-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000041853__gui_0052.jpg ADDED

Git LFS Details

  • SHA256: 8ba06f95a90cf6954aa7c8f7554b4f28d966afbfc8b8151c96e540e224139cf5
  • Pointer size: 131 Bytes
  • Size of remote file: 133 kB
cases/layout/layout-01-layout_doclaynet_train_16966.jpg ADDED

Git LFS Details

  • SHA256: 8ba09e49907c5d7a3a31148a3fceaf2695bd04f35a017a62ef8c455b985f7218
  • Pointer size: 131 Bytes
  • Size of remote file: 231 kB
cases/layout/layout-02-layout_doclaynet_train_20356.jpg ADDED

Git LFS Details

  • SHA256: 5fbf03f82cc66566e4630547b53b7f51cd0ebd772a072c1d6f37f8c0bafdb646
  • Pointer size: 131 Bytes
  • Size of remote file: 242 kB
cases/layout/layout-03-layout_doclaynet_train_3435.jpg ADDED

Git LFS Details

  • SHA256: 8e035b83d1ca53298816550d4891fd9f2d84f83b59bba178cafdf6bf8623a9fe
  • Pointer size: 131 Bytes
  • Size of remote file: 313 kB
cases/ocr/ocr-01-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000019189.jpg ADDED
cases/ocr/ocr-02-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000018671.jpg ADDED

Git LFS Details

  • SHA256: 8db936cadff524299c5b61b94992f3b70ec90e1dd3873f072b34d41692393bdd
  • Pointer size: 131 Bytes
  • Size of remote file: 172 kB
cases/ocr/ocr-03-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000021130.jpg ADDED

Git LFS Details

  • SHA256: d959da84d676117701e6d3920bff692aab94d6075e5714e2a324df3b61f18cf8
  • Pointer size: 131 Bytes
  • Size of remote file: 132 kB
cases/refer_point/refer_point-01-roboafford_affordance_point_paco_491580_000.jpg ADDED
cases/refer_point/refer_point-02-roboafford_affordance_point_paco_558444_002.jpg ADDED
cases/refer_point/refer_point-03-roboafford_affordance_point_paco_311488_000.jpg ADDED
cases/referring/referring-01-humanref_nocot_lf2_00007963.jpg ADDED

Git LFS Details

  • SHA256: 4fac0cc45af121260bc7468aa63fbe7f6dfdcbc5a2f251c04a8a0e06212048df
  • Pointer size: 131 Bytes
  • Size of remote file: 497 kB
cases/referring/referring-02-humanref_nocot_lf2_00004121.jpg ADDED

Git LFS Details

  • SHA256: 9b7ec8dc3ad013a57fab9d1199ee0ce14a3104f8e56f60df908b8769d32e195d
  • Pointer size: 131 Bytes
  • Size of remote file: 313 kB
cases/referring/referring-03-humanref_nocot_lf2_00011458.jpg ADDED

Git LFS Details

  • SHA256: 44978de1893cdcf9c0c3ed7dd40df3d3f38b7c5334ba0929d2604a2a2fb5d561
  • Pointer size: 131 Bytes
  • Size of remote file: 242 kB
cases/visual_prompt/visual_prompt-01-sensenova_sa1b_visual_1718306.jpg ADDED

Git LFS Details

  • SHA256: 57104d07c82cfb97a72075ef479f7d8d1c00db82386aa5c38da0ef163a82dc2f
  • Pointer size: 131 Bytes
  • Size of remote file: 859 kB
cases/visual_prompt/visual_prompt-02-sensenova_sa1b_visual_2475968.jpg ADDED

Git LFS Details

  • SHA256: ba96beb1cc54682f56e34b1381fefc9b7b95905363cff917bbfdac886e265bac
  • Pointer size: 131 Bytes
  • Size of remote file: 546 kB
cases/visual_prompt/visual_prompt-03-sensenova_sa1b_visual_1573415.jpg ADDED

Git LFS Details

  • SHA256: 2593b4f81c4fbfd70e73df0710fb143af232126daa0a96bc86c72575713475a5
  • Pointer size: 131 Bytes
  • Size of remote file: 674 kB
constraints-app.txt ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # App-layer versions observed in the successful 2026-09-15 clean install.
2
+ # Accelerator packages are intentionally platform-specific, not pinned here.
3
+ aiofiles==24.1.0
4
+ annotated-doc==0.0.5
5
+ annotated-types==0.8.0
6
+ anyio==4.15.1
7
+ brotli==1.2.0
8
+ certifi==2026.7.22
9
+ charset-normalizer==3.5.1
10
+ click==8.5.0
11
+ einops==0.8.1
12
+ fastapi==0.141.1
13
+ ffmpy==1.0.0
14
+ filelock==3.32.6
15
+ fsspec==2026.7.0
16
+ gradio==5.49.1
17
+ gradio_client==1.13.3
18
+ groovy==0.1.2
19
+ h11==0.16.0
20
+ hf-xet==1.6.0
21
+ httpcore==1.0.9
22
+ httpx==0.28.1
23
+ huggingface_hub==1.4.1
24
+ idna==3.19
25
+ Jinja2==3.1.6
26
+ markdown-it-py==4.2.0
27
+ MarkupSafe==3.0.3
28
+ mdurl==0.1.2
29
+ mpmath==1.3.0
30
+ networkx==3.6.1
31
+ numpy==1.26.0
32
+ orjson==3.12.0
33
+ packaging==26.3
34
+ pandas==2.3.3
35
+ pillow==11.3.0
36
+ pydantic==2.11.10
37
+ pydantic_core==2.33.2
38
+ pydub==0.25.1
39
+ Pygments==2.21.0
40
+ python-dateutil==2.9.0.post0
41
+ python-multipart==0.0.32
42
+ pytz==2026.3.post1
43
+ PyYAML==6.0.3
44
+ regex==2026.9.10
45
+ requests==2.34.2
46
+ rich==15.0.0
47
+ ruff==0.16.7
48
+ safehttpx==0.1.7
49
+ safetensors==0.6.2
50
+ semantic-version==2.10.0
51
+ setuptools==84.0.0
52
+ shellingham==1.5.4
53
+ six==1.17.0
54
+ spaces==0.51.3
55
+ starlette==0.52.1
56
+ sympy==1.14.0
57
+ tokenizers==0.22.2
58
+ tomlkit==0.13.3
59
+ tqdm==4.70.1
60
+ transformers==5.3.0
61
+ typer==0.27.2
62
+ typer-slim==0.24.0
63
+ typing-inspection==0.4.4
64
+ typing_extensions==4.16.0
65
+ tzdata==2026.4
66
+ urllib3==2.7.0
67
+ uvicorn==0.53.0
68
+ websockets==15.0.1
data/cases.json ADDED
@@ -0,0 +1,677 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "grounding-01-object365-locate_anything_object365_object365-file-0027-row-000000119924",
4
+ "route": "grounding",
5
+ "route_title": "Open-vocabulary grounding",
6
+ "title": "Open-vocabulary grounding #1",
7
+ "prompt": "<image>\nLocate all the instances that match the following categories: Book</c>Bottle</c>Bowl/Basin</c>Cabinet/shelf</c>Canned</c>Chair</c>Cup</c>Desk</c>Extractor</c>Faucet</c>Flower</c>Gas stove</c>Lamp</c>Peach</c>Person</c>Plate</c>Potted Plant</c>Refrigerator</c>Sink</c>Toaster</c>Vase.",
8
+ "expected": "<|object_ref_start|>Book<|object_ref_end|><|box_start|><657><613><974><722><|box_end|>, <|object_ref_start|>Bottle<|object_ref_end|><|box_start|><443><371><467><391>,<829><386><913><434>,<874><433><913><446><|box_end|>, <|object_ref_start|>Bowl/Basin<|object_ref_end|><|box_start|><724><377><751><389><|box_end|>, <|object_ref_start|>Cabinet/shelf<|object_ref_end|><|box_start|><630><412><997><602><|box_end|>, <|object_ref_start|>Canned<|object_ref_end|><|box_start|><870><412><894><433>,<894><411><915><433><|box_end|>, <|object_ref_start|>Chair<|object_ref_end|><|box_start|><565><654><851><998>,<874><577><997><603><|box_end|>, <|object_ref_start|>Cup<|object_ref_end|><|box_start|><960><665><997><734><|box_end|>, <|object_ref_start|>Desk<|object_ref_end|><|box_start|><661><603><997><998><|box_end|>, <|object_ref_start|>Extractor<|object_ref_end|><|box_start|><498><271><702><312><|box_end|>, <|object_ref_start|>Faucet<|object_ref_end|><|box_start|><262><358><314><421><|box_end|>, <|object_ref_start|>Flower<|object_ref_end|><|box_start|><334><336><410><391><|box_end|>, <|object_ref_start|>Gas stove<|object_ref_end|><|box_start|><500><384><708><412><|box_end|>, <|object_ref_start|>Lamp<|object_ref_end|><|box_start|><679><119><831><306><|box_end|>, <|object_ref_start|>Peach<|object_ref_end|><|box_start|><154><430><193><447><|box_end|>, <|object_ref_start|>Person<|object_ref_end|><|box_start|><882><654><954><682><|box_end|>, <|object_ref_start|>Plate<|object_ref_end|><|box_start|><141><435><275><456><|box_end|>, <|object_ref_start|>Potted Plant<|object_ref_end|><|box_start|><215><350><256><400>,<778><381><829><416><|box_end|>, <|object_ref_start|>Refrigerator<|object_ref_end|><|box_start|><782><265><956><413><|box_end|>, <|object_ref_start|>Sink<|object_ref_end|><|box_start|><279><416><359><424>,<305><412><371><418><|box_end|>, <|object_ref_start|>Toaster<|object_ref_end|><|box_start|><318><372><363><402>,<498><412><630><485><|box_end|>, <|object_ref_start|>Vase<|object_ref_end|><|box_start|><361><374><383><394><|box_end|>",
9
+ "image": "cases/grounding/grounding-01-object365-locate_anything_object365_object365-file-0027-row-000000119924.jpg",
10
+ "source": "la_object365",
11
+ "image_sha256": "009d5239ba1519670f9dff2a624d474ab2bd58d28fb913335f4fa52e6c67e41f",
12
+ "difficulty": {
13
+ "score": 86.07,
14
+ "primitive_count": 28,
15
+ "label_count": 21,
16
+ "smallest_bbox_area_ratio": 0.0003246,
17
+ "prompt_chars": 291
18
+ },
19
+ "validation": {
20
+ "protocol": "PASS",
21
+ "coordinates": "PASS",
22
+ "media_decode": "PASS",
23
+ "selection": "hardness_ranked"
24
+ },
25
+ "artifact_image_sha256": "2e3946eafcbdc2d2ac9e0b62343595e0b51e71b38eb15c3b0669fab46c78e9f6"
26
+ },
27
+ {
28
+ "id": "grounding-02-object365-locate_anything_object365_object365-file-0027-row-000001469030",
29
+ "route": "grounding",
30
+ "route_title": "Open-vocabulary grounding",
31
+ "title": "Open-vocabulary grounding #2",
32
+ "prompt": "<image>\nLocate all the instances that match the following categories: Bakset</c>Book</c>Cabinet/shelf</c>Chair</c>Couch</c>Cup</c>Desk</c>Glasses</c>Handbag/Satchel</c>High Heels</c>Lamp</c>Leather Shoes</c>Necklace</c>Person</c>Pillow</c>Potted Plant</c>Ring</c>Storage box</c>Watch.",
33
+ "expected": "<|object_ref_start|>Bakset<|object_ref_end|><|box_start|><32><387><90><456><|box_end|>, <|object_ref_start|>Book<|object_ref_end|><|box_start|><0><3><68><93>,<0><133><62><213><|box_end|>, <|object_ref_start|>Cabinet/shelf<|object_ref_end|><|box_start|><0><0><172><692><|box_end|>, <|object_ref_start|>Chair<|object_ref_end|><|box_start|><92><453><420><996><|box_end|>, <|object_ref_start|>Couch<|object_ref_end|><|box_start|><352><459><777><908><|box_end|>, <|object_ref_start|>Cup<|object_ref_end|><|box_start|><869><464><899><493>,<879><493><921><519><|box_end|>, <|object_ref_start|>Desk<|object_ref_end|><|box_start|><731><722><997><996>,<735><500><945><778><|box_end|>, <|object_ref_start|>Glasses<|object_ref_end|><|box_start|><515><344><569><363><|box_end|>, <|object_ref_start|>Handbag/Satchel<|object_ref_end|><|box_start|><34><716><146><855><|box_end|>, <|object_ref_start|>High Heels<|object_ref_end|><|box_start|><180><954><238><996>,<314><876><372><991><|box_end|>, <|object_ref_start|>Lamp<|object_ref_end|><|box_start|><813><272><903><514><|box_end|>, <|object_ref_start|>Leather Shoes<|object_ref_end|><|box_start|><591><866><671><954>,<639><895><707><983><|box_end|>, <|object_ref_start|>Necklace<|object_ref_end|><|box_start|><543><419><597><503><|box_end|>, <|object_ref_start|>Person<|object_ref_end|><|box_start|><78><195><432><996>,<404><288><709><983>,<787><395><997><778>,<973><671><997><783><|box_end|>, <|object_ref_start|>Pillow<|object_ref_end|><|box_start|><356><419><501><642><|box_end|>, <|object_ref_start|>Potted Plant<|object_ref_end|><|box_start|><727><368><837><516><|box_end|>, <|object_ref_start|>Ring<|object_ref_end|><|box_start|><320><275><326><288><|box_end|>, <|object_ref_start|>Storage box<|object_ref_end|><|box_start|><18><695><146><852><|box_end|>, <|object_ref_start|>Watch<|object_ref_end|><|box_start|><342><315><352><341>,<639><496><651><532><|box_end|>",
34
+ "image": "cases/grounding/grounding-02-object365-locate_anything_object365_object365-file-0027-row-000001469030.jpg",
35
+ "source": "la_object365",
36
+ "image_sha256": "587cde59bf1006e91df2b1d47346ee4546efb1850a15b14b9d5d858b884314a9",
37
+ "difficulty": {
38
+ "score": 83.92,
39
+ "primitive_count": 28,
40
+ "label_count": 19,
41
+ "smallest_bbox_area_ratio": 7.82e-05,
42
+ "prompt_chars": 284
43
+ },
44
+ "validation": {
45
+ "protocol": "PASS",
46
+ "coordinates": "PASS",
47
+ "media_decode": "PASS",
48
+ "selection": "hardness_ranked"
49
+ },
50
+ "artifact_image_sha256": "c6abef94a28290ca94e8dd043ba58e326cfcb22088b75f32274acc07af15950c"
51
+ },
52
+ {
53
+ "id": "grounding-03-object365-locate_anything_object365_object365-file-0027-row-000001076761",
54
+ "route": "grounding",
55
+ "route_title": "Open-vocabulary grounding",
56
+ "title": "Open-vocabulary grounding #3",
57
+ "prompt": "<image>\nLocate all the instances that match the following categories: Book</c>Bottle</c>Chair</c>Computer Box</c>Cup</c>Desk</c>Folder</c>Glasses</c>Handbag/Satchel</c>Keyboard</c>Moniter/TV</c>Mouse</c>Pen/Pencil</c>Person</c>Picture/Frame</c>Power outlet</c>Stapler</c>Tape</c>Telephone</c>Tissue</c>Watch.",
58
+ "expected": "<|object_ref_start|>Book<|object_ref_end|><|box_start|><778><246><872><571><|box_end|>, <|object_ref_start|>Bottle<|object_ref_end|><|box_start|><0><728><48><970><|box_end|>, <|object_ref_start|>Chair<|object_ref_end|><|box_start|><841><583><998><997><|box_end|>, <|object_ref_start|>Computer Box<|object_ref_end|><|box_start|><187><556><436><696><|box_end|>, <|object_ref_start|>Cup<|object_ref_end|><|box_start|><193><669><252><728><|box_end|>, <|object_ref_start|>Desk<|object_ref_end|><|box_start|><0><565><894><997><|box_end|>, <|object_ref_start|>Folder<|object_ref_end|><|box_start|><749><385><825><532><|box_end|>, <|object_ref_start|>Glasses<|object_ref_end|><|box_start|><601><359><693><396><|box_end|>, <|object_ref_start|>Handbag/Satchel<|object_ref_end|><|box_start|><100><706><499><911><|box_end|>, <|object_ref_start|>Keyboard<|object_ref_end|><|box_start|><367><610><577><741><|box_end|>, <|object_ref_start|>Moniter/TV<|object_ref_end|><|box_start|><240><264><433><620><|box_end|>, <|object_ref_start|>Mouse<|object_ref_end|><|box_start|><561><608><588><632><|box_end|>, <|object_ref_start|>Pen/Pencil<|object_ref_end|><|box_start|><294><778><322><792><|box_end|>, <|object_ref_start|>Person<|object_ref_end|><|box_start|><332><217><370><266>,<489><273><904><997>,<930><439><943><482>,<930><509><952><563>,<949><520><974><577><|box_end|>, <|object_ref_start|>Picture/Frame<|object_ref_end|><|box_start|><7><398><163><708><|box_end|>, <|object_ref_start|>Power outlet<|object_ref_end|><|box_start|><195><395><237><424><|box_end|>, <|object_ref_start|>Stapler<|object_ref_end|><|box_start|><32><774><104><849><|box_end|>, <|object_ref_start|>Tape<|object_ref_end|><|box_start|><180><647><209><679><|box_end|>, <|object_ref_start|>Telephone<|object_ref_end|><|box_start|><607><385><658><509><|box_end|>, <|object_ref_start|>Tissue<|object_ref_end|><|box_start|><165><638><264><720><|box_end|>, <|object_ref_start|>Watch<|object_ref_end|><|box_start|><558><731><583><776><|box_end|>",
59
+ "image": "cases/grounding/grounding-03-object365-locate_anything_object365_object365-file-0027-row-000001076761.jpg",
60
+ "source": "la_object365",
61
+ "image_sha256": "c60cb8043d08a5311d87cc896ee777da450d7561a1cd8126d1e31f1a91ebccfd",
62
+ "difficulty": {
63
+ "score": 82.22,
64
+ "primitive_count": 25,
65
+ "label_count": 21,
66
+ "smallest_bbox_area_ratio": 0.0003928,
67
+ "prompt_chars": 308
68
+ },
69
+ "validation": {
70
+ "protocol": "PASS",
71
+ "coordinates": "PASS",
72
+ "media_decode": "PASS",
73
+ "selection": "hardness_ranked"
74
+ },
75
+ "artifact_image_sha256": "ff9581327870a05ad8679c3e5891f27dfe55acc98ed713a8abf8d02e7604774b"
76
+ },
77
+ {
78
+ "id": "dense-01-o365_bbox_gt50_00009110",
79
+ "route": "dense",
80
+ "route_title": "Dense scene grounding",
81
+ "title": "Dense scene grounding #1",
82
+ "prompt": "<image>\nLocate all the instances that match the following categories: Banana</c>Grapefruit</c>Apple</c>Orange/Tangerine</c>Red Cabbage</c>Green Vegetables</c>Lemon</c>Pepper</c>Kiwi fruit</c>Cabbage</c>Pineapple</c>Pear</c>Cucumber</c>Pumpkin</c>Telephone</c>Moniter/TV</c>Hat</c>Boots</c>Leather Shoes</c>Other Shoes</c>Glasses</c>Handbag/Satchel</c>Bakset</c>Sneakers</c>Gloves</c>Briefcase</c>Bottle</c>Cup</c>Cabinet/shelf</c>Storage box</c>Potted Plant</c>Desk</c>Flower</c>Vase</c>Person.",
83
+ "expected": "<|object_ref_start|>Banana<|object_ref_end|><|box_start|><584><264><643><379><|box_end|>, <|object_ref_start|>Grapefruit<|object_ref_end|><|box_start|><675><255><698><299><|box_end|>, <|object_ref_start|>Apple<|object_ref_end|><|box_start|><485><103><629><132>,<571><226><661><251>,<648><254><672><298>,<658><106><726><133>,<698><248><740><365><|box_end|>, <|object_ref_start|>Orange/Tangerine<|object_ref_end|><|box_start|><665><223><701><247>,<922><216><941><231><|box_end|>, <|object_ref_start|>Red Cabbage<|object_ref_end|><|box_start|><601><144><649><191><|box_end|>, <|object_ref_start|>Green Vegetables<|object_ref_end|><|box_start|><547><147><588><190>,<635><137><769><191>,<791><108><809><135>,<806><165><847><207><|box_end|>, <|object_ref_start|>Lemon<|object_ref_end|><|box_start|><722><109><743><133><|box_end|>, <|object_ref_start|>Pepper<|object_ref_end|><|box_start|><636><64><714><99><|box_end|>, <|object_ref_start|>Kiwi fruit<|object_ref_end|><|box_start|><738><109><767><132><|box_end|>, <|object_ref_start|>Cabbage<|object_ref_end|><|box_start|><579><144><619><190><|box_end|>, <|object_ref_start|>Pineapple<|object_ref_end|><|box_start|><734><31><780><59><|box_end|>, <|object_ref_start|>Pear<|object_ref_end|><|box_start|><627><105><658><134><|box_end|>, <|object_ref_start|>Cucumber<|object_ref_end|><|box_start|><459><103><484><132>,<679><26><708><58><|box_end|>, <|object_ref_start|>Pumpkin<|object_ref_end|><|box_start|><628><275><649><372>,<733><305><764><339><|box_end|>, <|object_ref_start|>Telephone<|object_ref_end|><|box_start|><906><579><942><618><|box_end|>, <|object_ref_start|>Moniter/TV<|object_ref_end|><|box_start|><862><457><930><510>,<884><388><914><456><|box_end|>, <|object_ref_start|>Hat<|object_ref_end|><|box_start|><605><411><644><459>,<659><275><685><313>,<789><346><828><388>,<926><383><967><412><|box_end|>, <|object_ref_start|>Boots<|object_ref_end|><|box_start|><672><471><689><511>,<697><717><718><749>,<737><724><764><760><|box_end|>, <|object_ref_start|>Leather Shoes<|object_ref_end|><|box_start|><460><496><489><509><|box_end|>, <|object_ref_start|>Other Shoes<|object_ref_end|><|box_start|><397><465><420><479><|box_end|>, <|object_ref_start|>Glasses<|object_ref_end|><|box_start|><286><468><315><486>,<484><297><504><305>,<932><406><940><413><|box_end|>, <|object_ref_start|>Handbag/Satchel<|object_ref_end|><|box_start|><149><659><188><742>,<255><612><294><673><|box_end|>, <|object_ref_start|>Bakset<|object_ref_end|><|box_start|><8><426><66><492>,<48><395><101><450>,<513><408><586><497><|box_end|>, <|object_ref_start|>Sneakers<|object_ref_end|><|box_start|><638><392><656><415>,<661><399><678><423><|box_end|>, <|object_ref_start|>Gloves<|object_ref_end|><|box_start|><590><466><615><496>,<676><367><682><382><|box_end|>, <|object_ref_start|>Briefcase<|object_ref_end|><|box_start|><774><830><927><999><|box_end|>, <|object_ref_start|>Bottle<|object_ref_end|><|box_start|><0><149><214><208>,<69><0><343><16>,<75><26><127><59>,<100><68><171><101>,<127><29><164><59>,<164><23><205><59>,<171><67><202><99>,<204><23><267><58>,<211><146><344><199>,<212><105><343><138>,<214><66><301><99>,<267><23><308><54>,<302><65><344><98>,<309><22><344><54>,<371><65><446><95>,<372><0><413><16>,<372><22><451><55>,<373><105><432><137>,<373><144><434><193>,<766><937><848><999><|box_end|>, <|object_ref_start|>Cup<|object_ref_end|><|box_start|><0><70><67><105>,<65><73><78><86><|box_end|>, <|object_ref_start|>Cabinet/shelf<|object_ref_end|><|box_start|><0><18><810><271>,<129><346><258><664>,<145><734><340><998>,<258><394><376><607>,<275><280><400><602>,<338><800><520><999>,<500><666><659><999>,<502><494><688><881>,<815><112><911><202>,<865><210><964><364><|box_end|>, <|object_ref_start|>Storage box<|object_ref_end|><|box_start|><133><202><663><961>,<769><732><999><998>,<949><562><985><618><|box_end|>, <|object_ref_start|>Potted Plant<|object_ref_end|><|box_start|><726><360><781><469><|box_end|>, <|object_ref_start|>Desk<|object_ref_end|><|box_start|><848><327><932><442><|box_end|>, <|object_ref_start|>Flower<|object_ref_end|><|box_start|><805><164><849><209><|box_end|>, <|object_ref_start|>Vase<|object_ref_end|><|box_start|><817><204><836><220><|box_end|>, <|object_ref_start|>Person<|object_ref_end|><|box_start|><169><478><245><712>,<262><463><343><667>,<381><237><436><480>,<460><274><528><515>,<526><293><596><539>,<563><411><663><585>,<601><926><682><999>,<637><279><726><512>,<686><420><783><760>,<760><347><853><551>,<907><383><976><571><|box_end|>",
84
+ "image": "cases/dense/dense-01-o365_bbox_gt50_00009110.jpg",
85
+ "source": "b_o365_bbox_gt50",
86
+ "image_sha256": "939ecbfc3eea0d7145fe86ad95838691824f5588fc1187d277968f9c73696f77",
87
+ "difficulty": {
88
+ "score": 201.55,
89
+ "primitive_count": 99,
90
+ "label_count": 35,
91
+ "smallest_bbox_area_ratio": 5.61e-05,
92
+ "prompt_chars": 494
93
+ },
94
+ "validation": {
95
+ "protocol": "PASS",
96
+ "coordinates": "PASS",
97
+ "media_decode": "PASS",
98
+ "selection": "hardness_ranked"
99
+ },
100
+ "artifact_image_sha256": "398038106cbac731516dd01de25354fe4d61f3599df64baa611f1d5a99e0e8fb"
101
+ },
102
+ {
103
+ "id": "dense-02-o365_bbox_gt50_00004676",
104
+ "route": "dense",
105
+ "route_title": "Dense scene grounding",
106
+ "title": "Dense scene grounding #2",
107
+ "prompt": "<image>\nLocate all the instances that match the following categories: Car</c>Bus</c>Traffic Sign</c>Bicycle</c>Pickup Truck</c>Street Lights</c>Belt</c>Glasses</c>Sneakers</c>Other Shoes</c>Hat</c>Handbag/Satchel</c>Person</c>Bracelet</c>Tent</c>Bottle</c>Cup</c>Barrel/bucket</c>Bowl/Basin</c>Plate</c>Storage box</c>Chair</c>Desk</c>Potted Plant</c>Scale</c>Blackboard/Whiteboard</c>Kiwi fruit</c>Canned</c>Carrot</c>Tomato</c>Green Vegetables.",
108
+ "expected": "<|object_ref_start|>Car<|object_ref_end|><|box_start|><89><514><117><529>,<119><527><169><554>,<143><530><215><559>,<198><528><216><539>,<216><529><238><546>,<371><546><458><591>,<703><544><721><556>,<720><545><741><555><|box_end|>, <|object_ref_start|>Bus<|object_ref_end|><|box_start|><531><512><669><589><|box_end|>, <|object_ref_start|>Traffic Sign<|object_ref_end|><|box_start|><507><489><524><501><|box_end|>, <|object_ref_start|>Bicycle<|object_ref_end|><|box_start|><229><551><281><621><|box_end|>, <|object_ref_start|>Pickup Truck<|object_ref_end|><|box_start|><11><515><120><556><|box_end|>, <|object_ref_start|>Street Lights<|object_ref_end|><|box_start|><0><425><4><515>,<174><351><182><392>,<356><379><367><413>,<730><475><740><601><|box_end|>, <|object_ref_start|>Belt<|object_ref_end|><|box_start|><139><609><158><618><|box_end|>, <|object_ref_start|>Glasses<|object_ref_end|><|box_start|><178><544><187><558>,<814><535><830><543><|box_end|>, <|object_ref_start|>Sneakers<|object_ref_end|><|box_start|><140><721><153><726>,<153><721><176><731>,<959><732><975><748><|box_end|>, <|object_ref_start|>Other Shoes<|object_ref_end|><|box_start|><330><717><341><725>,<787><707><797><717><|box_end|>, <|object_ref_start|>Hat<|object_ref_end|><|box_start|><415><543><422><551><|box_end|>, <|object_ref_start|>Handbag/Satchel<|object_ref_end|><|box_start|><959><736><998><786><|box_end|>, <|object_ref_start|>Person<|object_ref_end|><|box_start|><132><533><192><731>,<222><529><268><590>,<324><520><377><728>,<387><537><425><610>,<459><544><474><607>,<534><532><554><601>,<593><536><609><598>,<773><508><826><725>,<812><520><837><607>,<846><541><867><583>,<872><549><881><608>,<896><495><940><704>,<936><558><958><623>,<944><506><999><746><|box_end|>, <|object_ref_start|>Bracelet<|object_ref_end|><|box_start|><948><593><952><601><|box_end|>, <|object_ref_start|>Tent<|object_ref_end|><|box_start|><5><377><246><629>,<60><364><463><753>,<319><505><451><603>,<442><472><530><609>,<479><476><593><603>,<635><273><998><837>,<733><482><804><604>,<784><486><906><544>,<785><513><901><581>,<879><487><999><583><|box_end|>, <|object_ref_start|>Bottle<|object_ref_end|><|box_start|><28><693><45><724>,<486><597><499><633>,<811><608><820><634>,<820><608><829><634>,<848><603><878><614>,<944><767><957><781><|box_end|>, <|object_ref_start|>Cup<|object_ref_end|><|box_start|><200><638><205><649>,<250><534><253><542>,<271><549><275><557>,<895><616><902><631><|box_end|>, <|object_ref_start|>Barrel/bucket<|object_ref_end|><|box_start|><207><638><219><656>,<218><639><234><661>,<283><538><298><556><|box_end|>, <|object_ref_start|>Bowl/Basin<|object_ref_end|><|box_start|><245><550><252><560>,<376><570><382><578>,<839><606><877><629><|box_end|>, <|object_ref_start|>Plate<|object_ref_end|><|box_start|><252><556><260><559>,<566><583><583><602><|box_end|>, <|object_ref_start|>Storage box<|object_ref_end|><|box_start|><0><646><60><723>,<103><718><288><882>,<234><630><313><679>,<350><722><407><780>,<437><572><500><578>,<503><591><518><605>,<545><641><574><666>,<796><642><864><779>,<840><583><872><593><|box_end|>, <|object_ref_start|>Chair<|object_ref_end|><|box_start|><23><613><140><763>,<847><621><879><731><|box_end|>, <|object_ref_start|>Desk<|object_ref_end|><|box_start|><125><623><430><804>,<227><555><305><597>,<375><578><500><606>,<511><576><591><599>,<541><597><632><657>,<691><626><930><746>,<840><592><875><605><|box_end|>, <|object_ref_start|>Potted Plant<|object_ref_end|><|box_start|><191><566><207><589>,<425><563><442><578>,<433><530><454><560>,<439><602><447><611>,<472><544><482><554><|box_end|>, <|object_ref_start|>Scale<|object_ref_end|><|box_start|><183><586><211><605><|box_end|>, <|object_ref_start|>Blackboard/Whiteboard<|object_ref_end|><|box_start|><638><585><666><649><|box_end|>, <|object_ref_start|>Kiwi fruit<|object_ref_end|><|box_start|><125><828><210><867><|box_end|>, <|object_ref_start|>Canned<|object_ref_end|><|box_start|><310><637><418><671><|box_end|>, <|object_ref_start|>Carrot<|object_ref_end|><|box_start|><207><769><245><792>,<210><624><220><637><|box_end|>, <|object_ref_start|>Tomato<|object_ref_end|><|box_start|><201><628><236><651>,<223><733><274><751><|box_end|>, <|object_ref_start|>Green Vegetables<|object_ref_end|><|box_start|><160><613><180><643><|box_end|>",
109
+ "image": "cases/dense/dense-02-o365_bbox_gt50_00004676.jpg",
110
+ "source": "b_o365_bbox_gt50",
111
+ "image_sha256": "465877ee9ef2698f5fa564d96ee0aeab6f72bf99c41a499087d09a0271d8aa51",
112
+ "difficulty": {
113
+ "score": 197.06,
114
+ "primitive_count": 101,
115
+ "label_count": 31,
116
+ "smallest_bbox_area_ratio": 2.4e-05,
117
+ "prompt_chars": 446
118
+ },
119
+ "validation": {
120
+ "protocol": "PASS",
121
+ "coordinates": "PASS",
122
+ "media_decode": "PASS",
123
+ "selection": "hardness_ranked"
124
+ },
125
+ "artifact_image_sha256": "7ee3beb63bdfd50c183538bd56f9d7e079fa41bde78aad9d5fe0d22c041c2673"
126
+ },
127
+ {
128
+ "id": "dense-03-o365_bbox_gt50_00011992",
129
+ "route": "dense",
130
+ "route_title": "Dense scene grounding",
131
+ "title": "Dense scene grounding #3",
132
+ "prompt": "<image>\nLocate all the instances that match the following categories: Chair</c>Stool</c>Cabinet/shelf</c>Storage box</c>Desk</c>Couch</c>Carpet</c>Pillow</c>Person</c>Glasses</c>Sneakers</c>Blackboard/Whiteboard</c>Plate</c>Computer Box</c>Moniter/TV</c>Keyboard</c>Bread</c>Stuffed Toy</c>Bakset</c>Book</c>Grape</c>Strawberry</c>Cookies.",
133
+ "expected": "<|object_ref_start|>Chair<|object_ref_end|><|box_start|><0><612><65><858>,<6><358><77><410>,<13><905><103><999>,<96><519><230><853>,<431><220><522><368>,<574><287><680><488>,<824><271><949><480><|box_end|>, <|object_ref_start|>Stool<|object_ref_end|><|box_start|><334><153><376><251>,<377><152><398><233><|box_end|>, <|object_ref_start|>Cabinet/shelf<|object_ref_end|><|box_start|><309><125><412><241>,<550><111><632><212>,<635><100><698><171>,<697><12><839><200>,<818><84><957><203><|box_end|>, <|object_ref_start|>Storage box<|object_ref_end|><|box_start|><419><341><501><381>,<421><355><518><405>,<421><355><533><425>,<424><328><500><381>,<432><378><542><473>,<526><100><540><112>,<541><97><561><114>,<562><95><585><112>,<584><93><607><111>,<607><90><630><108>,<630><88><651><107>,<651><85><677><103>,<675><82><699><101>,<708><90><725><115>,<724><94><750><119>,<750><95><775><121>,<783><99><809><123>,<826><124><862><153>,<837><57><860><82>,<858><60><892><86>,<889><65><937><88><|box_end|>, <|object_ref_start|>Desk<|object_ref_end|><|box_start|><42><168><105><263>,<307><365><454><682>,<426><137><551><209><|box_end|>, <|object_ref_start|>Couch<|object_ref_end|><|box_start|><76><123><316><269><|box_end|>, <|object_ref_start|>Carpet<|object_ref_end|><|box_start|><798><544><999><818><|box_end|>, <|object_ref_start|>Pillow<|object_ref_end|><|box_start|><149><201><226><238>,<222><203><240><231><|box_end|>, <|object_ref_start|>Person<|object_ref_end|><|box_start|><0><275><47><317>,<0><514><101><773>,<67><238><197><562>,<77><193><170><355>,<167><150><433><820>,<378><140><478><349>,<446><130><518><353>,<580><129><827><996>,<582><107><675><363>,<754><102><860><366>,<825><86><978><213>,<835><127><964><447><|box_end|>, <|object_ref_start|>Glasses<|object_ref_end|><|box_start|><660><287><732><329><|box_end|>, <|object_ref_start|>Sneakers<|object_ref_end|><|box_start|><32><711><100><769>,<819><346><835><364>,<843><377><879><433>,<908><391><951><445><|box_end|>, <|object_ref_start|>Blackboard/Whiteboard<|object_ref_end|><|box_start|><960><3><999><155><|box_end|>, <|object_ref_start|>Plate<|object_ref_end|><|box_start|><14><290><71><310>,<151><384><195><416>,<175><421><192><446>,<222><275><240><290>,<256><940><465><997>,<294><653><538><851>,<333><451><472><521>,<417><811><622><989>,<447><253><497><269>,<477><226><518><240>,<545><517><688><617>,<549><639><672><729>,<587><698><749><829>,<592><218><636><233>,<817><220><856><236>,<936><242><975><258>,<980><215><999><229><|box_end|>, <|object_ref_start|>Computer Box<|object_ref_end|><|box_start|><305><64><333><135>,<396><56><433><127><|box_end|>, <|object_ref_start|>Moniter/TV<|object_ref_end|><|box_start|><225><71><284><126>,<339><64><395><120><|box_end|>, <|object_ref_start|>Keyboard<|object_ref_end|><|box_start|><341><120><393><131><|box_end|>, <|object_ref_start|>Bread<|object_ref_end|><|box_start|><367><472><428><508>,<572><566><636><603><|box_end|>, <|object_ref_start|>Stuffed Toy<|object_ref_end|><|box_start|><361><271><429><358>,<510><156><554><233><|box_end|>, <|object_ref_start|>Bakset<|object_ref_end|><|box_start|><317><353><421><419>,<540><223><592><253>,<710><41><728><65>,<726><43><736><67>,<735><43><745><67>,<744><43><758><68>,<759><44><771><69>,<770><43><784><69>,<784><43><800><69>,<800><43><816><70>,<920><206><955><233><|box_end|>, <|object_ref_start|>Book<|object_ref_end|><|box_start|><443><102><545><148>,<713><6><832><43>,<713><76><759><118>,<764><79><814><126>,<850><21><942><86><|box_end|>, <|object_ref_start|>Grape<|object_ref_end|><|box_start|><150><810><308><910>,<438><667><530><755>,<599><711><665><803>,<674><718><719><740><|box_end|>, <|object_ref_start|>Strawberry<|object_ref_end|><|box_start|><427><746><497><806>,<626><768><681><811>,<689><749><733><804><|box_end|>, <|object_ref_start|>Cookies<|object_ref_end|><|box_start|><458><833><603><967><|box_end|>",
134
+ "image": "cases/dense/dense-03-o365_bbox_gt50_00011992.jpg",
135
+ "source": "b_o365_bbox_gt50",
136
+ "image_sha256": "40e1d0361270be26535b4762d756b99bbc3e2cca03c34d5a6dee5f8bc5bd100a",
137
+ "difficulty": {
138
+ "score": 189.32,
139
+ "primitive_count": 110,
140
+ "label_count": 23,
141
+ "smallest_bbox_area_ratio": 0.0001683,
142
+ "prompt_chars": 339
143
+ },
144
+ "validation": {
145
+ "protocol": "PASS",
146
+ "coordinates": "PASS",
147
+ "media_decode": "PASS",
148
+ "selection": "hardness_ranked"
149
+ },
150
+ "artifact_image_sha256": "eb9331146b66a1af1e8c832a22043c6f1b45d5d3bb7231816f975ced2cd88e39"
151
+ },
152
+ {
153
+ "id": "referring-01-humanref_nocot_lf2_00007963",
154
+ "route": "referring",
155
+ "route_title": "Compositional referring",
156
+ "title": "Compositional referring #1",
157
+ "prompt": "<image>\nLocate the target referred to by the following description: All the people to the left of the person wearing a blue coat and holding a long white staff in the right hand.",
158
+ "expected": "<|object_ref_start|>All the people to the left of the person wearing a blue coat and holding a long white staff in the right hand<|object_ref_end|><|box_start|><0><546><100><912>,<0><558><29><706>,<12><542><45><627>,<24><500><199><999>,<265><411><439><916><|box_end|>",
159
+ "image": "cases/referring/referring-01-humanref_nocot_lf2_00007963.jpg",
160
+ "source": "b_humanref_nocot",
161
+ "image_sha256": "cd5ee8e113374d10dfe7f4f33e978798c04198ad1d4e83d6e80c4bf3c5abfa74",
162
+ "difficulty": {
163
+ "score": 29.99,
164
+ "primitive_count": 5,
165
+ "label_count": 1,
166
+ "smallest_bbox_area_ratio": 0.0028106,
167
+ "prompt_chars": 178
168
+ },
169
+ "validation": {
170
+ "protocol": "PASS",
171
+ "coordinates": "PASS",
172
+ "media_decode": "PASS",
173
+ "selection": "hardness_ranked"
174
+ },
175
+ "artifact_image_sha256": "4fac0cc45af121260bc7468aa63fbe7f6dfdcbc5a2f251c04a8a0e06212048df"
176
+ },
177
+ {
178
+ "id": "referring-02-humanref_nocot_lf2_00004121",
179
+ "route": "referring",
180
+ "route_title": "Compositional referring",
181
+ "title": "Compositional referring #2",
182
+ "prompt": "<image>\nLocate the target referred to by the following description: all the people with backpacks behind the person closest to the white pagoda in the distance.",
183
+ "expected": "<|object_ref_start|>all the people with backpacks behind the person closest to the white pagoda in the distance<|object_ref_end|><|box_start|><399><378><455><530>,<400><401><449><778>,<403><409><502><872>,<544><406><638><846>,<585><400><635><428><|box_end|>",
184
+ "image": "cases/referring/referring-02-humanref_nocot_lf2_00004121.jpg",
185
+ "source": "b_humanref_nocot",
186
+ "image_sha256": "0234ff632745708fb4cb5e6907ac19a78c3d8973742fe6443e96e60711276646",
187
+ "difficulty": {
188
+ "score": 29.39,
189
+ "primitive_count": 5,
190
+ "label_count": 1,
191
+ "smallest_bbox_area_ratio": 0.0014028,
192
+ "prompt_chars": 160
193
+ },
194
+ "validation": {
195
+ "protocol": "PASS",
196
+ "coordinates": "PASS",
197
+ "media_decode": "PASS",
198
+ "selection": "hardness_ranked"
199
+ },
200
+ "artifact_image_sha256": "9b7ec8dc3ad013a57fab9d1199ee0ce14a3104f8e56f60df908b8769d32e195d"
201
+ },
202
+ {
203
+ "id": "referring-03-humanref_nocot_lf2_00011458",
204
+ "route": "referring",
205
+ "route_title": "Compositional referring",
206
+ "title": "Compositional referring #3",
207
+ "prompt": "<image>\nLocate the target referred to by the following description: the people in all the photos behind the person to the left of the printer.",
208
+ "expected": "<|object_ref_start|>the people in all the photos behind the person to the left of the printer<|object_ref_end|><|box_start|><39><274><66><372>,<55><446><80><504>,<62><272><84><366>,<81><266><107><366>,<82><399><105><500><|box_end|>",
209
+ "image": "cases/referring/referring-03-humanref_nocot_lf2_00011458.jpg",
210
+ "source": "b_humanref_nocot",
211
+ "image_sha256": "567007c126ab83173f112bc945b252d11e5097985b5ba8ef95de69eefbe1104a",
212
+ "difficulty": {
213
+ "score": 27.85,
214
+ "primitive_count": 5,
215
+ "label_count": 1,
216
+ "smallest_bbox_area_ratio": 0.0014529,
217
+ "prompt_chars": 142
218
+ },
219
+ "validation": {
220
+ "protocol": "PASS",
221
+ "coordinates": "PASS",
222
+ "media_decode": "PASS",
223
+ "selection": "hardness_ranked"
224
+ },
225
+ "artifact_image_sha256": "44978de1893cdcf9c0c3ed7dd40df3d3f38b7c5334ba0929d2604a2a2fb5d561"
226
+ },
227
+ {
228
+ "id": "dense_point-01-sensenova_sa1b_point_1067906__phrase_000",
229
+ "route": "dense_point",
230
+ "route_title": "Dense point localization",
231
+ "title": "Dense point localization #1",
232
+ "prompt": "<image>\nPoint to: balloons.",
233
+ "expected": "<|object_ref_start|>balloons<|object_ref_end|><|box_start|><9><291>,<13><447>,<20><363>,<24><239>,<25><165>,<27><598>,<31><715>,<44><308>,<66><749>,<78><399>,<91><638>,<92><251>,<108><734>,<128><29>,<154><456>,<155><335>,<160><31>,<170><97>,<178><160>,<198><41>,<209><471>,<209><389>,<218><312>,<218><106>,<237><225>,<243><40>,<249><365>,<256><429>,<269><299>,<279><125>,<292><371>,<309><432>,<332><291>,<346><33>,<370><81>,<372><153>,<404><29>,<405><143>,<413><87>,<443><475>,<450><43>,<452><123>,<459><214>,<508><79>,<582><47>,<596><162>,<616><97>,<642><34>,<656><147>,<664><85>,<695><35>,<696><182>,<705><102>,<717><640>,<748><52>,<785><515>,<792><605>,<827><353>,<836><483>,<839><593>,<840><663>,<841><233>,<848><730>,<870><657>,<876><257>,<881><730>,<882><573>,<900><309>,<912><209>,<915><417>,<928><243>,<951><310>,<954><636>,<956><209>,<963><49>,<964><252>,<972><361>,<975><170>,<991><764>,<996><535><|box_end|>",
234
+ "image": "cases/dense_point/dense_point-01-sensenova_sa1b_point_1067906__phrase_000.jpg",
235
+ "source": "a_sa1b_point_gt20",
236
+ "image_sha256": "6ec7346147b62fded0f584cfb4ba051fba7fbbe7b98f1c64a1d1cef2fbd1d30c",
237
+ "difficulty": {
238
+ "score": 98.0,
239
+ "primitive_count": 80,
240
+ "label_count": 1,
241
+ "smallest_bbox_area_ratio": null,
242
+ "prompt_chars": 27
243
+ },
244
+ "validation": {
245
+ "protocol": "PASS",
246
+ "coordinates": "PASS",
247
+ "media_decode": "PASS",
248
+ "selection": "hardness_ranked"
249
+ },
250
+ "artifact_image_sha256": "917975c9b31791290a2a660c91af8ae0653cfe258fa0c53539bcb868867aece2"
251
+ },
252
+ {
253
+ "id": "dense_point-02-sensenova_sa1b_point_1445784__phrase_002",
254
+ "route": "dense_point",
255
+ "route_title": "Dense point localization",
256
+ "title": "Dense point localization #2",
257
+ "prompt": "<image>\nPoint to: tree.",
258
+ "expected": "<|object_ref_start|>tree<|object_ref_end|><|box_start|><14><395>,<20><436>,<62><357>,<148><348>,<149><475>,<158><278>,<188><915>,<208><417>,<226><300>,<243><866>,<247><393>,<274><621>,<288><774>,<298><529>,<331><453>,<335><580>,<337><649>,<346><734>,<354><341>,<393><570>,<406><467>,<408><349>,<409><653>,<441><835>,<468><503>,<469><392>,<476><931>,<476><588>,<505><416>,<506><782>,<528><717>,<564><768>,<570><859>,<573><440>,<578><964>,<581><567>,<586><563>,<589><661>,<595><955>,<609><572>,<609><565>,<636><799>,<640><627>,<641><617>,<648><561>,<648><667>,<652><983>,<652><561>,<674><435>,<679><433>,<688><661>,<689><925>,<710><855>,<738><849>,<742><555>,<751><427>,<756><414>,<760><643>,<764><941>,<764><319>,<765><804>,<770><804>,<775><624>,<784><277>,<790><593>,<790><279>,<794><220>,<815><343>,<840><192>,<847><673>,<879><810>,<885><385>,<893><593>,<905><756>,<928><529>,<939><367>,<957><433>,<970><872>,<980><547>,<993><481><|box_end|>",
259
+ "image": "cases/dense_point/dense_point-02-sensenova_sa1b_point_1445784__phrase_002.jpg",
260
+ "source": "a_sa1b_point_gt20",
261
+ "image_sha256": "c4ca87875ab1cf121936599074c42e0fc6bc7fcc6cd602eaf7d2eb308a36b153",
262
+ "difficulty": {
263
+ "score": 98.0,
264
+ "primitive_count": 80,
265
+ "label_count": 1,
266
+ "smallest_bbox_area_ratio": null,
267
+ "prompt_chars": 23
268
+ },
269
+ "validation": {
270
+ "protocol": "PASS",
271
+ "coordinates": "PASS",
272
+ "media_decode": "PASS",
273
+ "selection": "hardness_ranked"
274
+ },
275
+ "artifact_image_sha256": "0b9a2281fec580c02b9292d8b3f96b675a8659d721f4dd8a1ae16a1eadbaf4e9"
276
+ },
277
+ {
278
+ "id": "dense_point-03-sensenova_sa1b_point_1451598__phrase_001",
279
+ "route": "dense_point",
280
+ "route_title": "Dense point localization",
281
+ "title": "Dense point localization #3",
282
+ "prompt": "<image>\nPoint to: clothing.",
283
+ "expected": "<|object_ref_start|>clothing<|object_ref_end|><|box_start|><11><474>,<15><534>,<38><537>,<57><535>,<58><483>,<74><483>,<101><483>,<158><473>,<214><487>,<223><543>,<235><485>,<257><486>,<258><549>,<280><577>,<283><484>,<288><551>,<305><582>,<314><489>,<326><581>,<347><553>,<380><449>,<393><549>,<400><446>,<403><485>,<427><482>,<429><448>,<451><446>,<452><483>,<496><485>,<538><449>,<540><483>,<566><453>,<569><490>,<587><452>,<610><452>,<614><454>,<625><486>,<634><453>,<637><451>,<660><456>,<660><491>,<665><455>,<680><455>,<680><454>,<681><494>,<699><454>,<702><455>,<708><528>,<713><521>,<722><454>,<728><454>,<735><540>,<758><547>,<763><547>,<786><459>,<802><471>,<813><437>,<822><541>,<834><443>,<837><491>,<839><443>,<847><440>,<851><441>,<853><565>,<866><439>,<869><563>,<881><435>,<898><545>,<900><431>,<902><489>,<918><431>,<921><482>,<946><425>,<952><785>,<966><489>,<968><423>,<974><563>,<992><417>,<994><487>,<994><563><|box_end|>",
284
+ "image": "cases/dense_point/dense_point-03-sensenova_sa1b_point_1451598__phrase_001.jpg",
285
+ "source": "a_sa1b_point_gt20",
286
+ "image_sha256": "367927c02501f4cc0cc52e0c548108d1d59002b7f26485aefe66103ebd456c9b",
287
+ "difficulty": {
288
+ "score": 98.0,
289
+ "primitive_count": 80,
290
+ "label_count": 1,
291
+ "smallest_bbox_area_ratio": null,
292
+ "prompt_chars": 27
293
+ },
294
+ "validation": {
295
+ "protocol": "PASS",
296
+ "coordinates": "PASS",
297
+ "media_decode": "PASS",
298
+ "selection": "hardness_ranked"
299
+ },
300
+ "artifact_image_sha256": "d2f0e070f49cc001ef6855964175c8c383358fcc2185d62abf29ba0de0d1be22"
301
+ },
302
+ {
303
+ "id": "refer_point-01-roboafford_affordance_point_paco_491580_000",
304
+ "route": "refer_point",
305
+ "route_title": "Affordance referring point",
306
+ "title": "Affordance referring point #1",
307
+ "prompt": "<image>\nPoint to the target referred to by the following description: What item can be worn to protect and provide comfort to your feet while walking?.",
308
+ "expected": "<|object_ref_start|>What item can be worn to protect and provide comfort to your feet while walking?<|object_ref_end|><|box_start|><27><261>,<103><259>,<225><90>,<506><740>,<512><301>,<528><727>,<579><301>,<620><266>,<636><269>,<686><25>,<802><252>,<830><253><|box_end|>",
309
+ "image": "cases/refer_point/refer_point-01-roboafford_affordance_point_paco_491580_000.jpg",
310
+ "source": "d_roboafford_affordance_point",
311
+ "image_sha256": "e6800f54649159f1ab50cef3a518d7f3c98f7191c9677eb9b3bd3eff41812d4d",
312
+ "difficulty": {
313
+ "score": 31.04,
314
+ "primitive_count": 12,
315
+ "label_count": 1,
316
+ "smallest_bbox_area_ratio": null,
317
+ "prompt_chars": 151
318
+ },
319
+ "validation": {
320
+ "protocol": "PASS",
321
+ "coordinates": "PASS",
322
+ "media_decode": "PASS",
323
+ "selection": "hardness_ranked"
324
+ },
325
+ "artifact_image_sha256": "e5233bcfadb4d6cb3be1a0ac75573183084494661dd31cc42e7282d21b6c3e13"
326
+ },
327
+ {
328
+ "id": "refer_point-02-roboafford_affordance_point_paco_558444_002",
329
+ "route": "refer_point",
330
+ "route_title": "Affordance referring point",
331
+ "title": "Affordance referring point #2",
332
+ "prompt": "<image>\nPoint to the target referred to by the following description: Which part of a cellular telephone protects the internal components and can often be removed or customized?.",
333
+ "expected": "<|object_ref_start|>Which part of a cellular telephone protects the internal components and can often be removed or customized?<|object_ref_end|><|box_start|><123><612>,<204><535>,<274><761>,<285><930>,<312><320>,<329><807>,<575><515>,<600><538>,<649><598>,<730><483>,<930><354><|box_end|>",
334
+ "image": "cases/refer_point/refer_point-02-roboafford_affordance_point_paco_558444_002.jpg",
335
+ "source": "d_roboafford_affordance_point",
336
+ "image_sha256": "6379ecd84f20a2e73ae93128e2710d567670330a52207a0cf7ddc6952fb0ed3e",
337
+ "difficulty": {
338
+ "score": 30.93,
339
+ "primitive_count": 11,
340
+ "label_count": 1,
341
+ "smallest_bbox_area_ratio": null,
342
+ "prompt_chars": 178
343
+ },
344
+ "validation": {
345
+ "protocol": "PASS",
346
+ "coordinates": "PASS",
347
+ "media_decode": "PASS",
348
+ "selection": "hardness_ranked"
349
+ },
350
+ "artifact_image_sha256": "df60dcc4812e93720202874e7b88cca122b25ff2615dd31e2bd697a552bce322"
351
+ },
352
+ {
353
+ "id": "refer_point-03-roboafford_affordance_point_paco_311488_000",
354
+ "route": "refer_point",
355
+ "route_title": "Affordance referring point",
356
+ "title": "Affordance referring point #3",
357
+ "prompt": "<image>\nPoint to the target referred to by the following description: What item can be opened and read to gain information or entertainment?.",
358
+ "expected": "<|object_ref_start|>What item can be opened and read to gain information or entertainment?<|object_ref_end|><|box_start|><79><227>,<100><241>,<182><225>,<345><186>,<505><111>,<873><75>,<909><249>,<918><249>,<950><110>,<972><112>,<994><0>,<998><251><|box_end|>",
359
+ "image": "cases/refer_point/refer_point-03-roboafford_affordance_point_paco_311488_000.jpg",
360
+ "source": "d_roboafford_affordance_point",
361
+ "image_sha256": "4144ca5d2d299034042d0ebcdceb0f19f55f48436bb648bcbeab6f9955ab0af4",
362
+ "difficulty": {
363
+ "score": 30.41,
364
+ "primitive_count": 12,
365
+ "label_count": 1,
366
+ "smallest_bbox_area_ratio": null,
367
+ "prompt_chars": 141
368
+ },
369
+ "validation": {
370
+ "protocol": "PASS",
371
+ "coordinates": "PASS",
372
+ "media_decode": "PASS",
373
+ "selection": "hardness_ranked"
374
+ },
375
+ "artifact_image_sha256": "e4fc006bbcb49c5e57c3b002a35e5866c15c898d6930117e0f89617121cd3928"
376
+ },
377
+ {
378
+ "id": "visual_prompt-01-sensenova_sa1b_visual_1718306",
379
+ "route": "visual_prompt",
380
+ "route_title": "Visual-prompt retrieval",
381
+ "title": "Visual-prompt retrieval #1",
382
+ "prompt": "<image>\nGiven reference boxes <|box_start|><154><663><168><694><|box_end|> indicating one or more objects, find all similar objects in the image and output their bounding boxes.",
383
+ "expected": "<|object_ref_start|>object<|object_ref_end|><|box_start|><0><772><1><794>,<17><727><37><769>,<48><714><66><753>,<69><700><89><739>,<101><690><117><724>,<116><679><132><715>,<138><670><153><701>,<154><663><168><694>,<173><656><187><684>,<183><650><196><676>,<188><577><206><638>,<190><649><204><674>,<199><595><218><666>,<203><587><222><662>,<213><593><228><659>,<220><592><235><651>,<226><591><241><648>,<238><594><257><646>,<248><589><264><642>,<259><582><277><636>,<269><584><282><634>,<279><590><298><635>,<290><583><308><630>,<307><581><325><628>,<323><889><354><967>,<328><580><344><627>,<335><827><361><890>,<343><585><360><626>,<347><792><370><846>,<349><758><369><818>,<351><710><368><817>,<352><704><370><798>,<357><681><371><770>,<363><585><380><625>,<365><661><377><702>,<379><588><396><627>,<412><586><427><624>,<444><611><453><629>,<455><585><469><623>,<560><669><575><698>,<574><678><589><711>,<586><604><605><649>,<596><585><609><644>,<596><693><612><731>,<597><583><613><647>,<598><583><615><643>,<600><585><617><649>,<614><706><632><749>,<633><726><653><766>,<664><601><695><680>,<665><740><686><783>,<687><760><709><808>,<720><781><742><828>,<759><809><784><861><|box_end|>",
384
+ "image": "cases/visual_prompt/visual_prompt-01-sensenova_sa1b_visual_1718306.jpg",
385
+ "source": "a_sa1b_visual_gt20",
386
+ "image_sha256": "3eb1d57b0e243792ce740d7933b1a1ad77efbdd5869e08e1f0ad98189cc5230e",
387
+ "difficulty": {
388
+ "score": 80.77,
389
+ "primitive_count": 54,
390
+ "label_count": 1,
391
+ "smallest_bbox_area_ratio": 2.2e-05,
392
+ "prompt_chars": 177
393
+ },
394
+ "validation": {
395
+ "protocol": "PASS",
396
+ "coordinates": "PASS",
397
+ "media_decode": "PASS",
398
+ "selection": "hardness_ranked"
399
+ },
400
+ "artifact_image_sha256": "57104d07c82cfb97a72075ef479f7d8d1c00db82386aa5c38da0ef163a82dc2f"
401
+ },
402
+ {
403
+ "id": "visual_prompt-02-sensenova_sa1b_visual_2475968",
404
+ "route": "visual_prompt",
405
+ "route_title": "Visual-prompt retrieval",
406
+ "title": "Visual-prompt retrieval #2",
407
+ "prompt": "<image>\nGiven reference boxes <|box_start|><748><85><758><97><|box_end|> indicating one or more objects, find all similar objects in the image and output their bounding boxes.",
408
+ "expected": "<|object_ref_start|>object<|object_ref_end|><|box_start|><43><434><55><455>,<63><356><71><374>,<75><409><89><430>,<76><453><92><482>,<87><325><107><358>,<106><459><120><506>,<113><391><144><463>,<122><86><131><95>,<132><101><141><111>,<151><127><159><139>,<161><507><175><541>,<166><193><177><218>,<180><4><189><15>,<187><445><203><469>,<190><25><199><38>,<198><456><206><471>,<200><50><210><60>,<209><392><224><419>,<213><83><222><95>,<225><261><241><279>,<230><317><242><331>,<234><299><248><319>,<243><322><260><340>,<263><342><273><360>,<272><380><281><398>,<278><388><288><410>,<280><357><291><375>,<282><359><292><376>,<289><395><300><422>,<290><437><301><465>,<293><327><305><350>,<294><3><302><15>,<298><245><313><271>,<301><41><309><57>,<304><84><314><99>,<348><326><358><349>,<659><333><684><377>,<661><88><668><98>,<674><73><683><82>,<706><283><730><318>,<716><117><726><126>,<731><464><750><480>,<733><103><742><112>,<748><85><758><97>,<764><462><787><483>,<769><523><793><552>,<772><70><778><81>,<777><488><792><505>,<779><128><788><138>,<797><486><817><509>,<813><102><824><113>,<837><86><846><99>,<857><71><866><83>,<864><475><883><498>,<896><104><904><115><|box_end|>",
409
+ "image": "cases/visual_prompt/visual_prompt-02-sensenova_sa1b_visual_2475968.jpg",
410
+ "source": "a_sa1b_visual_gt20",
411
+ "image_sha256": "205a9ef80233924604d629da5e104ca29104ab998a7a824b51b377d932b46b82",
412
+ "difficulty": {
413
+ "score": 80.54,
414
+ "primitive_count": 55,
415
+ "label_count": 1,
416
+ "smallest_bbox_area_ratio": 6.61e-05,
417
+ "prompt_chars": 175
418
+ },
419
+ "validation": {
420
+ "protocol": "PASS",
421
+ "coordinates": "PASS",
422
+ "media_decode": "PASS",
423
+ "selection": "hardness_ranked"
424
+ },
425
+ "artifact_image_sha256": "ba96beb1cc54682f56e34b1381fefc9b7b95905363cff917bbfdac886e265bac"
426
+ },
427
+ {
428
+ "id": "visual_prompt-03-sensenova_sa1b_visual_1573415",
429
+ "route": "visual_prompt",
430
+ "route_title": "Visual-prompt retrieval",
431
+ "title": "Visual-prompt retrieval #3",
432
+ "prompt": "<image>\nGiven reference boxes <|box_start|><499><742><541><810><|box_end|> indicating one or more objects, find all similar objects in the image and output their bounding boxes.",
433
+ "expected": "<|object_ref_start|>object<|object_ref_end|><|box_start|><0><684><34><728>,<0><686><6><729>,<1><683><33><719>,<2><680><27><718>,<3><657><25><716>,<29><655><48><719>,<46><663><66><690>,<50><628><60><665>,<80><698><105><730>,<82><693><107><726>,<115><676><148><712>,<118><674><149><710>,<119><677><144><750>,<120><670><151><708>,<147><711><176><754>,<153><706><183><752>,<168><672><182><722>,<185><746><258><786>,<208><715><257><753>,<229><652><238><689>,<262><651><281><698>,<305><740><337><790>,<331><673><348><717>,<340><758><379><785>,<342><669><362><700>,<367><716><401><784>,<389><668><414><692>,<413><709><426><762>,<424><707><437><748>,<445><681><461><703>,<467><675><480><710>,<481><744><549><814>,<499><742><541><810>,<501><667><512><697>,<506><743><538><806>,<546><778><597><815>,<551><674><565><695>,<562><671><574><696>,<579><741><589><776>,<584><653><607><678>,<585><726><603><774>,<585><727><600><777>,<586><726><602><775>,<587><728><604><776>,<619><668><636><694>,<644><679><664><705>,<678><787><701><817>,<714><779><728><805>,<767><670><783><691>,<819><666><846><688>,<835><789><865><825>,<861><794><888><827>,<897><660><914><684>,<991><599><999><627>,<994><659><999><674><|box_end|>",
434
+ "image": "cases/visual_prompt/visual_prompt-03-sensenova_sa1b_visual_1573415.jpg",
435
+ "source": "a_sa1b_visual_gt20",
436
+ "image_sha256": "6e65b33e404159b9c2117b27a21de5a897ebb73da1b95bdc3bec07e0d16b01be",
437
+ "difficulty": {
438
+ "score": 80.37,
439
+ "primitive_count": 55,
440
+ "label_count": 1,
441
+ "smallest_bbox_area_ratio": 7.52e-05,
442
+ "prompt_chars": 177
443
+ },
444
+ "validation": {
445
+ "protocol": "PASS",
446
+ "coordinates": "PASS",
447
+ "media_decode": "PASS",
448
+ "selection": "hardness_ranked"
449
+ },
450
+ "artifact_image_sha256": "2593b4f81c4fbfd70e73df0710fb143af232126daa0a96bc86c72575713475a5"
451
+ },
452
+ {
453
+ "id": "ocr-01-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000019189",
454
+ "route": "ocr",
455
+ "route_title": "OCR grounding",
456
+ "title": "OCR grounding #1",
457
+ "prompt": "<image>\nOCR task detect all the text in box format.",
458
+ "expected": "<|object_ref_start|>-mostro.sc1<|object_ref_end|><|box_start|><97><8><167><26><|box_end|>, <|object_ref_start|>0.05<|object_ref_end|><|box_start|><963><973><988><992><|box_end|>, <|object_ref_start|>1.02<|object_ref_end|><|box_start|><69><7><97><26><|box_end|>, <|object_ref_start|>525838<|object_ref_end|><|box_start|><12><927><53><943><|box_end|>, <|object_ref_start|>Airbrush<|object_ref_end|><|box_start|><171><43><218><59><|box_end|>, <|object_ref_start|>Alice<|object_ref_end|><|box_start|><548><973><572><990><|box_end|>, <|object_ref_start|>BRUSH<|object_ref_end|><|box_start|><476><47><513><64><|box_end|>, <|object_ref_start|>Detail<|object_ref_end|><|box_start|><403><64><440><82><|box_end|>, <|object_ref_start|>Enable<|object_ref_end|><|box_start|><482><141><516><156><|box_end|>, <|object_ref_start|>FriendF...<|object_ref_end|><|box_start|><465><973><512><991><|box_end|>, <|object_ref_start|>IT<<|object_ref_end|><|box_start|><880><974><907><991><|box_end|>, <|object_ref_start|>Invert<|object_ref_end|><|box_start|><271><43><309><61><|box_end|>, <|object_ref_start|>Lazy<|object_ref_end|><|box_start|><222><43><251><62><|box_end|>, <|object_ref_start|>M<|object_ref_end|><|box_start|><27><217><42><236><|box_end|>, <|object_ref_start|>MATERIAL<|object_ref_end|><|box_start|><535><47><592><65><|box_end|>, <|object_ref_start|>Mo...<|object_ref_end|><|box_start|><570><973><598><989><|box_end|>, <|object_ref_start|>OPTIONS<|object_ref_end|><|box_start|><379><116><422><133><|box_end|>, <|object_ref_start|>PAINT<|object_ref_end|><|box_start|><639><90><687><112><|box_end|>, <|object_ref_start|>PINCH<|object_ref_end|><|box_start|><136><124><184><145><|box_end|>, <|object_ref_start|>Ps<|object_ref_end|><|box_start|><163><970><177><989><|box_end|>, <|object_ref_start|>Sculptris<|object_ref_end|><|box_start|><18><7><69><27><|box_end|>, <|object_ref_start|>Sculptris...<|object_ref_end|><|box_start|><802><976><851><994><|box_end|>, <|object_ref_start|>Size<|object_ref_end|><|box_start|><349><64><377><82><|box_end|>, <|object_ref_start|>Strenght<|object_ref_end|><|box_start|><349><87><400><109><|box_end|>, <|object_ref_start|>W<|object_ref_end|><|box_start|><51><215><69><230><|box_end|>, <|object_ref_start|>Window...<|object_ref_end|><|box_start|><632><973><681><990><|box_end|>, <|object_ref_start|>X<|object_ref_end|><|box_start|><979><3><997><26><|box_end|>, <|object_ref_start|>[Q]<|object_ref_end|><|box_start|><439><62><461><85><|box_end|>, <|object_ref_start|>[x]<|object_ref_end|><|box_start|><310><43><330><65><|box_end|>, <|object_ref_start|>_<|object_ref_end|><|box_start|><939><14><952><26><|box_end|>, <|object_ref_start|>e<|object_ref_end|><|box_start|><101><969><119><994><|box_end|>, <|object_ref_start|>material5<|object_ref_end|><|box_start|><537><137><591><154><|box_end|>, <|object_ref_start|>sculptris<|object_ref_end|><|box_start|><717><973><754><992><|box_end|>, <|object_ref_start|>start<|object_ref_end|><|box_start|><28><970><66><992><|box_end|>, <|object_ref_start|>triangles<|object_ref_end|><|box_start|><53><926><101><948><|box_end|>",
459
+ "image": "cases/ocr/ocr-01-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000019189.jpg",
460
+ "source": "la_ocr_textocr",
461
+ "image_sha256": "084cf0562914bfea25769f2548257093c2b685444b3b3f366fa970183b07924e",
462
+ "difficulty": {
463
+ "score": 77.92,
464
+ "primitive_count": 35,
465
+ "label_count": 35,
466
+ "smallest_bbox_area_ratio": 0.0001563,
467
+ "prompt_chars": 51
468
+ },
469
+ "validation": {
470
+ "protocol": "PASS",
471
+ "coordinates": "PASS",
472
+ "media_decode": "PASS",
473
+ "selection": "hardness_ranked"
474
+ },
475
+ "artifact_image_sha256": "4634583edfab147e8708c6119e726fb8f394744e0225c8319136bb5000ba5d8c"
476
+ },
477
+ {
478
+ "id": "ocr-02-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000018671",
479
+ "route": "ocr",
480
+ "route_title": "OCR grounding",
481
+ "title": "OCR grounding #2",
482
+ "prompt": "<image>\nOCR task detect all the text in box format.",
483
+ "expected": "<|object_ref_start|>.<|object_ref_end|><|box_start|><198><856><311><920>,<788><146><799><156><|box_end|>, <|object_ref_start|>12<|object_ref_end|><|box_start|><803><193><815><206><|box_end|>, <|object_ref_start|>135012<|object_ref_end|><|box_start|><739><877><775><891><|box_end|>, <|object_ref_start|>14,<|object_ref_end|><|box_start|><793><68><807><82><|box_end|>, <|object_ref_start|>23<|object_ref_end|><|box_start|><363><348><388><374><|box_end|>, <|object_ref_start|>2·<|object_ref_end|><|box_start|><426><348><444><370><|box_end|>, <|object_ref_start|>50<|object_ref_end|><|box_start|><807><66><820><79><|box_end|>, <|object_ref_start|>A-dur·<|object_ref_end|><|box_start|><371><263><438><294><|box_end|>, <|object_ref_start|>AS-dur<|object_ref_end|><|box_start|><500><230><570><260><|box_end|>, <|object_ref_start|>Abegg-<|object_ref_end|><|box_start|><318><305><385><340><|box_end|>, <|object_ref_start|>As-dur<|object_ref_end|><|box_start|><618><267><689><299><|box_end|>, <|object_ref_start|>Deutsche<|object_ref_end|><|box_start|><729><121><767><133><|box_end|>, <|object_ref_start|>F-dur<|object_ref_end|><|box_start|><580><306><639><337><|box_end|>, <|object_ref_start|>Fis-moll<|object_ref_end|><|box_start|><529><342><603><378><|box_end|>, <|object_ref_start|>GOOD<|object_ref_end|><|box_start|><798><145><817><155><|box_end|>, <|object_ref_start|>Ges-dur·<|object_ref_end|><|box_start|><543><266><623><297><|box_end|>, <|object_ref_start|>Gesellschaft<|object_ref_end|><|box_start|><726><139><770><154><|box_end|>, <|object_ref_start|>Grammophon<|object_ref_end|><|box_start|><716><125><781><145><|box_end|>, <|object_ref_start|>Grand<|object_ref_end|><|box_start|><229><262><292><293><|box_end|>, <|object_ref_start|>Impromptus<|object_ref_end|><|box_start|><437><264><544><302><|box_end|>, <|object_ref_start|>KLAVIERMUSIK<|object_ref_end|><|box_start|><236><142><666><214><|box_end|>, <|object_ref_start|>Moment<|object_ref_end|><|box_start|><351><228><433><258><|box_end|>, <|object_ref_start|>Naschtstiick<|object_ref_end|><|box_start|><237><337><339><378><|box_end|>, <|object_ref_start|>Novellette<|object_ref_end|><|box_start|><442><340><533><380>,<489><305><580><346><|box_end|>, <|object_ref_start|>Nr·<|object_ref_end|><|box_start|><388><340><425><379><|box_end|>, <|object_ref_start|>P·<|object_ref_end|><|box_start|><338><346><363><376><|box_end|>, <|object_ref_start|>ROMANTISCHE<|object_ref_end|><|box_start|><167><60><601><132><|box_end|>, <|object_ref_start|>Rondeau<|object_ref_end|><|box_start|><289><263><372><303><|box_end|>, <|object_ref_start|>SCHUBERT:<|object_ref_end|><|box_start|><211><228><349><257><|box_end|>, <|object_ref_start|>SCHUMANN:<|object_ref_end|><|box_start|><172><302><321><335><|box_end|>, <|object_ref_start|>STEREO<|object_ref_end|><|box_start|><738><891><775><904><|box_end|>, <|object_ref_start|>Variationen·<|object_ref_end|><|box_start|><383><303><492><335><|box_end|>, <|object_ref_start|>musical<|object_ref_end|><|box_start|><432><229><502><259><|box_end|>",
484
+ "image": "cases/ocr/ocr-02-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000018671.jpg",
485
+ "source": "la_ocr_textocr",
486
+ "image_sha256": "0fe7ad3b5db7ef62e387a7dd49adf9e03408df83520854d63595274d1f69ea6d",
487
+ "difficulty": {
488
+ "score": 77.37,
489
+ "primitive_count": 35,
490
+ "label_count": 33,
491
+ "smallest_bbox_area_ratio": 0.0001102,
492
+ "prompt_chars": 51
493
+ },
494
+ "validation": {
495
+ "protocol": "PASS",
496
+ "coordinates": "PASS",
497
+ "media_decode": "PASS",
498
+ "selection": "hardness_ranked"
499
+ },
500
+ "artifact_image_sha256": "8db936cadff524299c5b61b94992f3b70ec90e1dd3873f072b34d41692393bdd"
501
+ },
502
+ {
503
+ "id": "ocr-03-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000021130",
504
+ "route": "ocr",
505
+ "route_title": "OCR grounding",
506
+ "title": "OCR grounding #3",
507
+ "prompt": "<image>\nOCR task detect all the text in box format.",
508
+ "expected": "<|object_ref_start|>.<|object_ref_end|><|box_start|><240><637><318><680>,<355><657><556><714><|box_end|>, <|object_ref_start|>0955075<|object_ref_end|><|box_start|><784><194><867><220><|box_end|>, <|object_ref_start|>15<|object_ref_end|><|box_start|><779><285><872><359><|box_end|>, <|object_ref_start|>2011.<|object_ref_end|><|box_start|><933><423><942><453><|box_end|>, <|object_ref_start|>49077<|object_ref_end|><|box_start|><132><238><163><253><|box_end|>, <|object_ref_start|>5168442<|object_ref_end|><|box_start|><793><247><878><272><|box_end|>, <|object_ref_start|>996.<|object_ref_end|><|box_start|><917><529><927><554><|box_end|>, <|object_ref_start|>A<|object_ref_end|><|box_start|><505><735><558><817><|box_end|>, <|object_ref_start|>AUG<|object_ref_end|><|box_start|><108><262><175><320><|box_end|>, <|object_ref_start|>BBC<|object_ref_end|><|box_start|><919><431><930><457><|box_end|>, <|object_ref_start|>Bang<|object_ref_end|><|box_start|><931><487><942><516><|box_end|>, <|object_ref_start|>Bil<|object_ref_end|><|box_start|><930><519><939><534><|box_end|>, <|object_ref_start|>CAR<|object_ref_end|><|box_start|><319><705><434><792><|box_end|>, <|object_ref_start|>CHINA<|object_ref_end|><|box_start|><933><380><943><421><|box_end|>, <|object_ref_start|>DCTWHO<|object_ref_end|><|box_start|><207><340><865><696><|box_end|>, <|object_ref_start|>DOCTOR<|object_ref_end|><|box_start|><230><176><477><268><|box_end|>, <|object_ref_start|>Doctor<|object_ref_end|><|box_start|><912><660><923><702><|box_end|>, <|object_ref_start|>IS<|object_ref_end|><|box_start|><444><724><496><802><|box_end|>, <|object_ref_start|>Licensed<|object_ref_end|><|box_start|><917><475><929><526><|box_end|>, <|object_ref_start|>Limited.<|object_ref_end|><|box_start|><922><326><933><368><|box_end|>, <|object_ref_start|>MY<|object_ref_end|><|box_start|><71><666><142><733><|box_end|>, <|object_ref_start|>OTHER<|object_ref_end|><|box_start|><144><677><311><769><|box_end|>, <|object_ref_start|>Pow|<|object_ref_end|><|box_start|><932><456><941><484><|box_end|>, <|object_ref_start|>TARDIS<|object_ref_end|><|box_start|><571><744><833><871><|box_end|>, <|object_ref_start|>VA<|object_ref_end|><|box_start|><112><240><130><259>,<759><243><786><276><|box_end|>, <|object_ref_start|>VIRGINIA<|object_ref_end|><|box_start|><264><259><653><322><|box_end|>, <|object_ref_start|>WHO<|object_ref_end|><|box_start|><495><161><673><251><|box_end|>, <|object_ref_start|>Who<|object_ref_end|><|box_start|><913><633><924><660><|box_end|>, <|object_ref_start|>Worldwide<|object_ref_end|><|box_start|><920><370><932><430><|box_end|>, <|object_ref_start|>bilbangpow.com<|object_ref_end|><|box_start|><927><550><940><644><|box_end|>, <|object_ref_start|>by<|object_ref_end|><|box_start|><919><460><932><474><|box_end|>, <|object_ref_start|>logo<|object_ref_end|><|box_start|><914><604><927><631><|box_end|>, <|object_ref_start|>©BBC<|object_ref_end|><|box_start|><915><563><926><604><|box_end|>",
509
+ "image": "cases/ocr/ocr-03-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000021130.jpg",
510
+ "source": "la_ocr_textocr",
511
+ "image_sha256": "49ac957ecd099dc726c9d6c34b3cda4a783788a86982b3abb614991901cdb22b",
512
+ "difficulty": {
513
+ "score": 77.11,
514
+ "primitive_count": 35,
515
+ "label_count": 33,
516
+ "smallest_bbox_area_ratio": 0.0001353,
517
+ "prompt_chars": 51
518
+ },
519
+ "validation": {
520
+ "protocol": "PASS",
521
+ "coordinates": "PASS",
522
+ "media_decode": "PASS",
523
+ "selection": "hardness_ranked"
524
+ },
525
+ "artifact_image_sha256": "d959da84d676117701e6d3920bff692aab94d6075e5714e2a324df3b61f18cf8"
526
+ },
527
+ {
528
+ "id": "layout-01-layout_doclaynet_train_16966",
529
+ "route": "layout",
530
+ "route_title": "Document layout grounding",
531
+ "title": "Document layout grounding #1",
532
+ "prompt": "<image>\nDetect all document layout elements that match the following categories: Section-header</c>Page-footer</c>Text</c>List-item</c>Picture</c>Page-header.",
533
+ "expected": "<|object_ref_start|>Section-header<|object_ref_end|><|box_start|><149><315><223><326>,<149><542><382><552>,<149><723><235><733>,<409><149><521><158>,<409><164><439><173>,<409><245><448><254>,<539><315><687><326>,<539><436><680><447>,<539><738><705><749>,<539><829><787><839>,<661><232><708><241>,<661><164><710><173><|box_end|>, <|object_ref_start|>Page-footer<|object_ref_end|><|box_start|><631><968><820><979><|box_end|>, <|object_ref_start|>Text<|object_ref_end|><|box_start|><149><739><507><869>,<149><558><513><703>,<149><331><513><522>,<539><754><891><809>,<539><845><867><900>,<539><452><881><507>,<539><528><902><598>,<539><618><902><718>,<539><331><890><416><|box_end|>, <|object_ref_start|>List-item<|object_ref_end|><|box_start|><409><177><502><187>,<409><190><530><200>,<409><203><558><213>,<409><217><500><226>,<409><258><533><268>,<661><177><782><187>,<661><190><754><200>,<661><203><813><213>,<661><245><785><255><|box_end|>, <|object_ref_start|>Picture<|object_ref_end|><|box_start|><149><145><380><278>,<831><964><899><980><|box_end|>, <|object_ref_start|>Page-header<|object_ref_end|><|box_start|><461><35><899><46>,<935><35><948><46><|box_end|>",
534
+ "image": "cases/layout/layout-01-layout_doclaynet_train_16966.jpg",
535
+ "source": "layout_doclaynet_train",
536
+ "image_sha256": "a0aa7586551498591fd1e73f1b6f202d9e7579032cd5c1b8bd41b504bf6108c8",
537
+ "difficulty": {
538
+ "score": 65.53,
539
+ "primitive_count": 35,
540
+ "label_count": 6,
541
+ "smallest_bbox_area_ratio": 0.0001433,
542
+ "prompt_chars": 158
543
+ },
544
+ "validation": {
545
+ "protocol": "PASS",
546
+ "coordinates": "PASS",
547
+ "media_decode": "PASS",
548
+ "selection": "hardness_ranked"
549
+ },
550
+ "artifact_image_sha256": "8ba09e49907c5d7a3a31148a3fceaf2695bd04f35a017a62ef8c455b985f7218"
551
+ },
552
+ {
553
+ "id": "layout-02-layout_doclaynet_train_20356",
554
+ "route": "layout",
555
+ "route_title": "Document layout grounding",
556
+ "title": "Document layout grounding #2",
557
+ "prompt": "<image>\nDetect all document layout elements that match the following categories: Page-header</c>Text</c>Section-header</c>List-item</c>Table</c>Page-footer.",
558
+ "expected": "<|object_ref_start|>Page-header<|object_ref_end|><|box_start|><719><22><934><29><|box_end|>, <|object_ref_start|>Text<|object_ref_end|><|box_start|><120><783><516><865>,<120><870><505><893>,<141><161><516><228>,<141><233><506><300>,<141><494><518><561>,<141><624><516><734>,<157><349><507><372>,<157><392><225><401>,<157><407><484><416>,<538><783><904><807>,<538><812><930><893>,<559><175><925><257>,<559><305><641><314>,<559><363><641><372>,<559><421><936><459>,<559><509><923><538>,<559><624><928><676>,<559><711><929><734><|box_end|>, <|object_ref_start|>Section-header<|object_ref_end|><|box_start|><120><130><227><141>,<120><593><260><604>,<120><767><855><778>,<120><146><470><155>,<120><320><404><329>,<120><436><516><488>,<120><609><399><618>,<538><276><882><300>,<538><334><903><358>,<538><392><919><416>,<538><146><875><170>,<538><696><888><705><|box_end|>, <|object_ref_start|>List-item<|object_ref_end|><|box_start|><141><378><296><387>,<141><334><309><343><|box_end|>, <|object_ref_start|>Table<|object_ref_end|><|box_start|><558><464><855><503><|box_end|>, <|object_ref_start|>Page-footer<|object_ref_end|><|box_start|><916><954><933><964><|box_end|>",
559
+ "image": "cases/layout/layout-02-layout_doclaynet_train_20356.jpg",
560
+ "source": "layout_doclaynet_train",
561
+ "image_sha256": "08c9756fc09c342e284e880c2ecaefd0766996e299df223a5b944b62d7b4d477",
562
+ "difficulty": {
563
+ "score": 65.31,
564
+ "primitive_count": 35,
565
+ "label_count": 6,
566
+ "smallest_bbox_area_ratio": 0.0001703,
567
+ "prompt_chars": 156
568
+ },
569
+ "validation": {
570
+ "protocol": "PASS",
571
+ "coordinates": "PASS",
572
+ "media_decode": "PASS",
573
+ "selection": "hardness_ranked"
574
+ },
575
+ "artifact_image_sha256": "5fbf03f82cc66566e4630547b53b7f51cd0ebd772a072c1d6f37f8c0bafdb646"
576
+ },
577
+ {
578
+ "id": "layout-03-layout_doclaynet_train_3435",
579
+ "route": "layout",
580
+ "route_title": "Document layout grounding",
581
+ "title": "Document layout grounding #3",
582
+ "prompt": "<image>\nDetect all document layout elements that match the following categories: Section-header</c>Text</c>Caption</c>Picture</c>Page-footer</c>Page-header.",
583
+ "expected": "<|object_ref_start|>Section-header<|object_ref_end|><|box_start|><75><135><318><146>,<632><504><780><515><|box_end|>, <|object_ref_start|>Text<|object_ref_end|><|box_start|><75><153><314><288>,<75><294><320><358>,<75><364><305><376>,<75><382><311><411>,<75><417><314><464>,<75><470><316><499>,<75><505><299><535>,<75><541><319><728>,<75><734><316><922>,<353><135><586><252>,<353><258><598><481>,<353><487><597><816>,<353><839><583><921>,<369><822><601><833>,<632><135><861><234>,<632><240><869><305>,<632><311><867><358>,<632><364><875><428>,<632><434><877><481>,<632><522><875><622>,<632><628><876><692>,<632><716><721><727><|box_end|>, <|object_ref_start|>Caption<|object_ref_end|><|box_start|><632><786><736><816><|box_end|>, <|object_ref_start|>Picture<|object_ref_end|><|box_start|><633><739><871><781><|box_end|>, <|object_ref_start|>Page-footer<|object_ref_end|><|box_start|><33><965><41><974>,<75><953><483><961><|box_end|>, <|object_ref_start|>Page-header<|object_ref_end|><|box_start|><32><117><40><194>,<32><257><40><353>,<32><398><40><423>,<32><539><40><621>,<32><680><40><746>,<32><821><40><881><|box_end|>",
584
+ "image": "cases/layout/layout-03-layout_doclaynet_train_3435.jpg",
585
+ "source": "layout_doclaynet_train",
586
+ "image_sha256": "5dcc96a6ad6cdafeec656e05d8f7866c232ba9773ec2d05a180afd203490b356",
587
+ "difficulty": {
588
+ "score": 65.23,
589
+ "primitive_count": 34,
590
+ "label_count": 6,
591
+ "smallest_bbox_area_ratio": 7.21e-05,
592
+ "prompt_chars": 156
593
+ },
594
+ "validation": {
595
+ "protocol": "PASS",
596
+ "coordinates": "PASS",
597
+ "media_decode": "PASS",
598
+ "selection": "hardness_ranked"
599
+ },
600
+ "artifact_image_sha256": "8e035b83d1ca53298816550d4891fd9f2d84f83b59bba178cafdf6bf8623a9fe"
601
+ },
602
+ {
603
+ "id": "gui-01-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000043686__gui_0008",
604
+ "route": "gui",
605
+ "route_title": "GUI action grounding",
606
+ "title": "GUI action grounding #1",
607
+ "prompt": "<image>\nPoint to the UI element to click for the following instruction: A horizontal row of special characters including accented letters, symbols, and diacritics such as 'À', 'Á', 'Â', 'Ä', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý'.",
608
+ "expected": "<|object_ref_start|>A horizontal row of special characters including accented letters, symbols, and diacritics such as 'À', 'Á', 'Â', 'Ä', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý'<|object_ref_end|><|box_start|><493><491><|box_end|>",
609
+ "image": "cases/gui/gui-01-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000043686__gui_0008.jpg",
610
+ "source": "la_groundcua",
611
+ "image_sha256": "1bd406dd0960bbdfdf5ff6980ba4e0e936826c79002f38321b4f3f7397beb811",
612
+ "difficulty": {
613
+ "score": 24.4,
614
+ "primitive_count": 1,
615
+ "label_count": 1,
616
+ "smallest_bbox_area_ratio": null,
617
+ "prompt_chars": 310
618
+ },
619
+ "validation": {
620
+ "protocol": "PASS",
621
+ "coordinates": "PASS",
622
+ "media_decode": "PASS",
623
+ "selection": "hardness_ranked"
624
+ },
625
+ "artifact_image_sha256": "c9c27a9df49bac1c9664eb74ecf1fe9967e20281add73fff1273437af06b743b"
626
+ },
627
+ {
628
+ "id": "gui-02-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000006009__gui_0028",
629
+ "route": "gui",
630
+ "route_title": "GUI action grounding",
631
+ "title": "GUI action grounding #2",
632
+ "prompt": "<image>\nPoint to the UI element to click for the following instruction: A vertical list of file names in the file explorer, including 'vlc-3.0.2...', 'FreeCAD...', 'QGIS-OS...', 'Element...', 'disciples...', 'SSS.pdf', 'THE BRA...', 'Rose Cov...', and 'New fold...'.",
633
+ "expected": "<|object_ref_start|>A vertical list of file names in the file explorer, including 'vlc-3.0.2...', 'FreeCAD...', 'QGIS-OS...', 'Element...', 'disciples...', 'SSS.pdf', 'THE BRA...', 'Rose Cov...', and 'New fold...'<|object_ref_end|><|box_start|><500><555><|box_end|>",
634
+ "image": "cases/gui/gui-02-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000006009__gui_0028.jpg",
635
+ "source": "la_groundcua",
636
+ "image_sha256": "e21623711f386c778799fd3a7a447d82be992c9078b0b3a7a291b134584f0fff",
637
+ "difficulty": {
638
+ "score": 22.64,
639
+ "primitive_count": 1,
640
+ "label_count": 1,
641
+ "smallest_bbox_area_ratio": null,
642
+ "prompt_chars": 266
643
+ },
644
+ "validation": {
645
+ "protocol": "PASS",
646
+ "coordinates": "PASS",
647
+ "media_decode": "PASS",
648
+ "selection": "hardness_ranked"
649
+ },
650
+ "artifact_image_sha256": "7ff12fde621319e2959b3112fa6c1fe4e6ef83b8943a6ee169d7fc2140f59e74"
651
+ },
652
+ {
653
+ "id": "gui-03-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000041853__gui_0052",
654
+ "route": "gui",
655
+ "route_title": "GUI action grounding",
656
+ "title": "GUI action grounding #3",
657
+ "prompt": "<image>\nPoint to the UI element to click for the following instruction: A table section displaying existing tasks with columns for ID, SUBJECT, TYPE, STATUS, ASSIGNEE, and PRIORITY, including entries like 'Organize open source conf...' and 'End of project'.",
658
+ "expected": "<|object_ref_start|>A table section displaying existing tasks with columns for ID, SUBJECT, TYPE, STATUS, ASSIGNEE, and PRIORITY, including entries like 'Organize open source conf...' and 'End of project'<|object_ref_end|><|box_start|><289><535><|box_end|>",
659
+ "image": "cases/gui/gui-03-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000041853__gui_0052.jpg",
660
+ "source": "la_groundcua",
661
+ "image_sha256": "08d3f95cdc3dc2fcc0572d2631ddec2ce9af1a0c77bd62619b06b05b81876d13",
662
+ "difficulty": {
663
+ "score": 22.28,
664
+ "primitive_count": 1,
665
+ "label_count": 1,
666
+ "smallest_bbox_area_ratio": null,
667
+ "prompt_chars": 257
668
+ },
669
+ "validation": {
670
+ "protocol": "PASS",
671
+ "coordinates": "PASS",
672
+ "media_decode": "PASS",
673
+ "selection": "hardness_ranked"
674
+ },
675
+ "artifact_image_sha256": "8ba06f95a90cf6954aa7c8f7554b4f28d966afbfc8b8151c96e540e224139cf5"
676
+ }
677
+ ]
docs/HF_SPACE_DEPLOYMENT.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Hugging Face deployment
2
+
3
+ This guide describes a candidate deployment, not an already-created HF service.
4
+ The model repository belongs to XPENG-AI; this private Space is hosted under
5
+ FanLR. Both repository names and private deployment have been confirmed.
6
+
7
+ ## Two repositories
8
+
9
+ - Model repository: contents of the sibling `model/` directory; proposed ID
10
+ `XPENG-AI/GroundingPI-4B`.
11
+ - Gradio Space: contents of this `demo/` directory; proposed ID
12
+ `FanLR/GroundingPI-4B`.
13
+
14
+ The parent release workspace includes internal review material and must not be
15
+ uploaded. Uploading files privately is still a transfer to an external platform.
16
+
17
+ ## Private preview and hardware
18
+
19
+ Create both repositories as **Private from the beginning**. Protected Spaces hide
20
+ source code but expose the running application, so Protected is not a confidential
21
+ preview mode. Organization access depends on its roles and grants; verify the
22
+ actual reader set rather than assuming Private means only the uploader.
23
+ [Visibility](https://huggingface.co/docs/hub/spaces-overview#space-visibility),
24
+ [organization access](https://huggingface.co/docs/hub/organizations-security).
25
+
26
+ Choose Gradio and confirm available hardware before upload. According to current
27
+ official documentation, organization ZeroGPU hosting requires a Team/Enterprise
28
+ plan. Personal free-tier eligibility does not establish organization eligibility.
29
+ Do not enable paid hardware or change subscriptions without approval.
30
+ [ZeroGPU eligibility](https://huggingface.co/docs/hub/spaces-zerogpu).
31
+
32
+ ## Configuration
33
+
34
+ | Location | Name | Value |
35
+ | --- | --- | --- |
36
+ | Variable | GROUNDING_BACKEND | zerogpu |
37
+ | Variable | GROUNDING_MODEL_REPO | Reviewed model repository ID |
38
+ | Variable | GROUNDING_MODEL_REVISION | Full 40-character commit SHA |
39
+ | Variable | GROUNDING_MAX_TOKENS | 1024 |
40
+ | Variable | GROUNDING_GPU_SECONDS | 120; tune only after measurement |
41
+ | Secret | HF_TOKEN | Read access limited to the private model |
42
+
43
+ Do not set internal deployment variables or a local model path in HF.
44
+ The repository snapshot is downloaded using its pinned revision and then loaded
45
+ locally, because the custom processor opens local configuration files.
46
+ Never place a token in README, source, Variables, a URL or a screenshot.
47
+ [Secrets](https://huggingface.co/docs/hub/spaces-overview#managing-secrets-and-environment-variables).
48
+
49
+ Keep the README SDK configuration: `app_file: space_app.py`,
50
+ Gradio 5.49.1 and Python 3.12.12. Use the supplied standard NVIDIA Torch dependency
51
+ pins, not a vendor PPU environment. The runtime imports spaces before loading
52
+ the model; GPU work alone runs through `@spaces.GPU`.
53
+
54
+ ## Acceptance before wider access
55
+
56
+ 1. Validate build dependencies, complete model loading and memory use.
57
+ 2. Run every task family at least once; inspect actual pixels, raw tokens and EOS.
58
+ 3. Record unsuccessful calls as well as successes. Curated training examples are
59
+ not an independent accuracy benchmark.
60
+ 4. Verify first request, repeated requests, GPU lease release/reallocation, quota
61
+ exhaustion, timeout recovery and session isolation.
62
+ 5. Confirm owner access and unauthorized-user denial for both repositories and
63
+ the running application. A logged-out access check is part of acceptance.
64
+ 6. Pin and record model and Space revisions. Do not automatically make either public.
65
+
66
+ No HF login, upload, repository creation, hardware purchase or publication is
67
+ performed by this document. Recheck platform policies when deploying.
docs/UI_PAPER_R7.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Paper demo UI · r7
2
+
3
+ User-requested revision, 2026-09-15. The original reference layout is preserved;
4
+ purple/lime colors follow the supplied paper figure. The XPENG logo is unchanged.
5
+
6
+ - English interface, task guides, runtime states, recovery messages and accessibility labels.
7
+ - Predictions appear directly on the main image. The original/model/reference view selector
8
+ and reference-answer UI endpoint have been removed. Example input boxes in the Visual
9
+ Prompt task remain input conditions, not reference answers.
10
+ - Overlays use unfilled outlines. A large late region can no longer erase smaller targets.
11
+ Class labels are laid out separately, clamped, and omitted if they would cover small
12
+ targets or another label. Dense classes remain available in the linked inspector.
13
+ - Geometry is not deduplicated, suppressed, merged, moved, or changed for presentation.
14
+ - The input image and prompt still form the entire model request. No ground truth is sent.
15
+ - Case counts and training-set counts are no longer presented as headline copy.
16
+ - The original release lock remains in `ui_lock.json`; `ui_paper_r7_lock.json` records
17
+ this explicitly authorized revision. Data, source examples, and model weights are unchanged.
18
+
19
+ `validate_gradio.py` uses the new direct-overlay API result order:
20
+ image, metrics, targets, normalized JSON, raw tokens, status, desktop action, mobile action.
21
+ Historical API receipts remain unchanged. This revision is not a new accuracy evaluation.
22
+
23
+ Verification: run `python -m unittest discover -s tests -v` and `python scripts/verify_ui.py`.
24
+ Browser verification must cover desktop/mobile layout, direct overlays, category/instance
25
+ focus, zoom/reset, upload and case transitions, and error recovery. The old reference-view
26
+ browser script is historical and does not match this UI contract.
docs/VERIFICATION.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Verification and evidence boundaries
2
+
3
+ ## Existing service evidence — 2026-09-15
4
+
5
+ The native implementation was installed in a new isolated application environment
6
+ on a single PPU. The full model loaded and generated real outputs. A 27-example
7
+ Gradio regression completed uploads, generation with EOS and GAM parsing without
8
+ transport/format failures. This is not 100% semantic accuracy.
9
+
10
+ The original serial PPU request window had median 5.069 s and P95 14.532 s
11
+ (nearest rank, 27 requests). These are historical observations for that hardware
12
+ and workload, not HF latency guarantees or paper benchmark measurements.
13
+
14
+ The paper-r7 UI regression included 39 passing tests and browser verification of
15
+ direct prediction overlays, category focus, instance navigation, zoom, stale-state
16
+ clearing and responsive layout. Example live calls returned 27 boxes and 79 points;
17
+ counts are output observations, not verified recall.
18
+
19
+ ## This release candidate
20
+
21
+ The presentation and inference implementation are copied from the paper-r7 release.
22
+ README and deployment materials have been rewritten for external publication.
23
+ The UI fingerprint and example contracts remain locked. Model weights, tokenizer
24
+ and image processing remain byte-identical to the source. The cleaned custom
25
+ code has canonical Oxygen class names and no unused Mage/StreamMind branches.
26
+ Strict loading has no missing, unexpected or mismatched keys. Before/after
27
+ Transformers regression matched all generated tokens for all 27 examples, with
28
+ identical preprocessing tensors. This is equivalence, not semantic accuracy.
29
+
30
+ The parent release workspace contains the technical inspection report. Reported
31
+ tests must not be read as license approval, independent benchmark evaluation, or
32
+ approval to disclose model/data assets.
33
+
34
+ ## Still pending
35
+
36
+ - Standard NVIDIA GPU and final HF ZeroGPU execution.
37
+ - GPU lease capture, allocation/release, quota and long-idle cold starts.
38
+ - Private organization access verification and external-upload authorization.
39
+ - Independent accuracy evaluation and any paper speedup claims.
40
+ - Final legal, model-card, example-image and branding review.
41
+
42
+ The code does not run diffusion/parallel decoding just because a paper illustration
43
+ discusses it. Publish only results verified for the exact released checkpoint,
44
+ decoding method, hardware and evaluation protocol.
docs/ZEROGPU_DEPLOYMENT.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Runtime and model contract
2
+
3
+ ## Initialization versus requests
4
+
5
+ `space_app.py` installs the spaces CUDA hooks and initializes the model once at
6
+ process startup. In a ZeroGPU Space, the decorated generation function leases GPU
7
+ compute and returns CPU token IDs. It does not call from_pretrained per request.
8
+ The same code can run on a normal compatible GPU, where the decorator is effect-free.
9
+ [Official model-loading guidance](https://huggingface.co/docs/hub/spaces-zerogpu#model-loading).
10
+
11
+ The default implementation is native Transformers, not a persistent vLLM or SGLang
12
+ server. An explicitly configured HTTP backend exists for approved deployments, but
13
+ no automatic backend fallback is used.
14
+
15
+ ## Frozen behavior
16
+
17
+ - `oxygen_vl_v3` / `OxygenVLv3ForConditionalGeneration`; vision model type
18
+ `oxygen_k3_vision`.
19
+ - Download a reviewed, pinned snapshot; load the checkpoint's processor from a local
20
+ directory with `trust_remote_code=True`.
21
+ - Apply the original chat template to the current image and request.
22
+ - Preserve native image processing, image token/grid alignment and GAM vocabulary.
23
+ - BF16, SDPA, greedy generation and `use_cache=True`; native EOS from generation config.
24
+ - Preserve `skip_special_tokens=False` and `spaces_between_special_tokens=False`.
25
+ - Reject missing pixels/grid, context overflow, empty answers and missing EOS.
26
+ - Do not send annotations, reference counts or previous results to the model.
27
+ - Do not claim token-identical output or equal latency across hardware/backends.
28
+
29
+ The model package contains optional StreamMind source for provenance; this demo does
30
+ not enable that branch or require mamba-ssm. Do not copy a training environment into
31
+ the Space or install vendor-specific Torch wheels.
32
+
33
+ ## Limits and failures
34
+
35
+ Default 1,024 new tokens; supported UI/runtime range 1–2,048. Input plus requested
36
+ output must not exceed 8,192 tokens. GPU duration is a maximum lease, not a latency
37
+ promise. Queue waits and initialization must be distinguished from generation.
38
+
39
+ Incomplete output is a failure, not a correct empty result. On exceptions, the UI
40
+ clears stale predictions, restores its controls and exposes a recoverable error.
41
+ The example annotations are never used as fallback predictions.
42
+
43
+ ## Deployment boundary
44
+
45
+ PPU service verification does not validate NVIDIA CUDA, ZeroGPU capture/leases,
46
+ platform quotas or an organization's permissions. These are final-platform checks.
47
+ See [HF deployment](HF_SPACE_DEPLOYMENT.md) and [verification](VERIFICATION.md).
docs/ui_lock.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": {
3
+ "app.py": "e4662437b3835915f690fcdc658994aa59c1f32818db151a1d6e6d0a04ec09f5",
4
+ "assets/Manrope-OFL.txt": "e01b637272e0cbdfb240184dd98ea5cc671556d9894dae2668d92ab2c906787c",
5
+ "assets/Manrope-variable.ttf": "d0639be45d0af36e798172419d7bd173c4bd4f29e2b76cbb69db1d11bf8b0a40",
6
+ "assets/SOURCES.md": "3cceb52136b55f86840e9585e3c37faed1adc762452b0fea50aecba696dac7fa",
7
+ "assets/console.js": "cb72bd437e702d2b9536f1a20a21ead38d81d0b8208854c5ec978adf41659365",
8
+ "assets/frosted.css": "393bf5f1c04a49a6e9b17e855e573646489b4add85bc7973eb6bb277686b5c80",
9
+ "assets/original.css": "ecee3334f0d1b5e58f31548939445b73cd31e9ad8c92accea7471c37369aaf2b",
10
+ "assets/paper.css": "0b9991dcf3c02b10f937b17b961f774844b9dcec3ff0a3effa41549c73453337",
11
+ "assets/xpeng-logo.png": "ff0db78ddf8f9a122eec74e8eb79581f8e5dbc46803dddeb780a06f5ae295750",
12
+ "cases/dense/dense-01-o365_bbox_gt50_00009110.jpg": "398038106cbac731516dd01de25354fe4d61f3599df64baa611f1d5a99e0e8fb",
13
+ "cases/dense/dense-02-o365_bbox_gt50_00004676.jpg": "7ee3beb63bdfd50c183538bd56f9d7e079fa41bde78aad9d5fe0d22c041c2673",
14
+ "cases/dense/dense-03-o365_bbox_gt50_00011992.jpg": "eb9331146b66a1af1e8c832a22043c6f1b45d5d3bb7231816f975ced2cd88e39",
15
+ "cases/dense_point/dense_point-01-sensenova_sa1b_point_1067906__phrase_000.jpg": "917975c9b31791290a2a660c91af8ae0653cfe258fa0c53539bcb868867aece2",
16
+ "cases/dense_point/dense_point-02-sensenova_sa1b_point_1445784__phrase_002.jpg": "0b9a2281fec580c02b9292d8b3f96b675a8659d721f4dd8a1ae16a1eadbaf4e9",
17
+ "cases/dense_point/dense_point-03-sensenova_sa1b_point_1451598__phrase_001.jpg": "d2f0e070f49cc001ef6855964175c8c383358fcc2185d62abf29ba0de0d1be22",
18
+ "cases/grounding/grounding-01-object365-locate_anything_object365_object365-file-0027-row-000000119924.jpg": "2e3946eafcbdc2d2ac9e0b62343595e0b51e71b38eb15c3b0669fab46c78e9f6",
19
+ "cases/grounding/grounding-02-object365-locate_anything_object365_object365-file-0027-row-000001469030.jpg": "c6abef94a28290ca94e8dd043ba58e326cfcb22088b75f32274acc07af15950c",
20
+ "cases/grounding/grounding-03-object365-locate_anything_object365_object365-file-0027-row-000001076761.jpg": "ff9581327870a05ad8679c3e5891f27dfe55acc98ed713a8abf8d02e7604774b",
21
+ "cases/gui/gui-01-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000043686__gui_0008.jpg": "c9c27a9df49bac1c9664eb74ecf1fe9967e20281add73fff1273437af06b743b",
22
+ "cases/gui/gui-02-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000006009__gui_0028.jpg": "7ff12fde621319e2959b3112fa6c1fe4e6ef83b8943a6ee169d7fc2140f59e74",
23
+ "cases/gui/gui-03-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000041853__gui_0052.jpg": "8ba06f95a90cf6954aa7c8f7554b4f28d966afbfc8b8151c96e540e224139cf5",
24
+ "cases/layout/layout-01-layout_doclaynet_train_16966.jpg": "8ba09e49907c5d7a3a31148a3fceaf2695bd04f35a017a62ef8c455b985f7218",
25
+ "cases/layout/layout-02-layout_doclaynet_train_20356.jpg": "5fbf03f82cc66566e4630547b53b7f51cd0ebd772a072c1d6f37f8c0bafdb646",
26
+ "cases/layout/layout-03-layout_doclaynet_train_3435.jpg": "8e035b83d1ca53298816550d4891fd9f2d84f83b59bba178cafdf6bf8623a9fe",
27
+ "cases/ocr/ocr-01-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000019189.jpg": "4634583edfab147e8708c6119e726fb8f394744e0225c8319136bb5000ba5d8c",
28
+ "cases/ocr/ocr-02-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000018671.jpg": "8db936cadff524299c5b61b94992f3b70ec90e1dd3873f072b34d41692393bdd",
29
+ "cases/ocr/ocr-03-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000021130.jpg": "d959da84d676117701e6d3920bff692aab94d6075e5714e2a324df3b61f18cf8",
30
+ "cases/refer_point/refer_point-01-roboafford_affordance_point_paco_491580_000.jpg": "e5233bcfadb4d6cb3be1a0ac75573183084494661dd31cc42e7282d21b6c3e13",
31
+ "cases/refer_point/refer_point-02-roboafford_affordance_point_paco_558444_002.jpg": "df60dcc4812e93720202874e7b88cca122b25ff2615dd31e2bd697a552bce322",
32
+ "cases/refer_point/refer_point-03-roboafford_affordance_point_paco_311488_000.jpg": "e4fc006bbcb49c5e57c3b002a35e5866c15c898d6930117e0f89617121cd3928",
33
+ "cases/referring/referring-01-humanref_nocot_lf2_00007963.jpg": "4fac0cc45af121260bc7468aa63fbe7f6dfdcbc5a2f251c04a8a0e06212048df",
34
+ "cases/referring/referring-02-humanref_nocot_lf2_00004121.jpg": "9b7ec8dc3ad013a57fab9d1199ee0ce14a3104f8e56f60df908b8769d32e195d",
35
+ "cases/referring/referring-03-humanref_nocot_lf2_00011458.jpg": "44978de1893cdcf9c0c3ed7dd40df3d3f38b7c5334ba0929d2604a2a2fb5d561",
36
+ "cases/visual_prompt/visual_prompt-01-sensenova_sa1b_visual_1718306.jpg": "57104d07c82cfb97a72075ef479f7d8d1c00db82386aa5c38da0ef163a82dc2f",
37
+ "cases/visual_prompt/visual_prompt-02-sensenova_sa1b_visual_2475968.jpg": "ba96beb1cc54682f56e34b1381fefc9b7b95905363cff917bbfdac886e265bac",
38
+ "cases/visual_prompt/visual_prompt-03-sensenova_sa1b_visual_1573415.jpg": "2593b4f81c4fbfd70e73df0710fb143af232126daa0a96bc86c72575713475a5",
39
+ "grounding_demo/catalog.py": "75e543fed7f0ca018fb41c4b528efc2901aa6a0f05232959297d6d40798f676f",
40
+ "grounding_demo/console.py": "72a8a3557aa2364b3ee40d077c22c72761e41b0e487dbad97e5f1bcada170699",
41
+ "grounding_demo/protocol.py": "c08ac104aae96759d5b3958cbb57751c695b8c4dcf55bd7f0fbd847fe34c1459",
42
+ "grounding_demo/render.py": "05e9ffadf7ab95d94e57c47dac4fb052c6e207204753bf88246419b7be32c1d1"
43
+ },
44
+ "case_contract_sha256": "d00f2091dcb3c866e5e3a331f89537839640b2374c4bc32685960706d18b58b1",
45
+ "cases": 27,
46
+ "routes": 9
47
+ }
docs/ui_paper_r7_lock.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": {
3
+ "app.py": "48cce3fc447974dc837d949a064f14e96d99e996689bfdcdca0cdb7a5e62bc2a",
4
+ "assets/Manrope-OFL.txt": "e01b637272e0cbdfb240184dd98ea5cc671556d9894dae2668d92ab2c906787c",
5
+ "assets/Manrope-variable.ttf": "d0639be45d0af36e798172419d7bd173c4bd4f29e2b76cbb69db1d11bf8b0a40",
6
+ "assets/SOURCES.md": "3cceb52136b55f86840e9585e3c37faed1adc762452b0fea50aecba696dac7fa",
7
+ "assets/console.js": "dd7cd9c1934ee732830439e14aa5db24a09b8415cd45265b98f894d1e76676bd",
8
+ "assets/frosted.css": "393bf5f1c04a49a6e9b17e855e573646489b4add85bc7973eb6bb277686b5c80",
9
+ "assets/original.css": "7a244c7f65e40797850dcde7d6b6505b1b5de60aa24b129f44b33ae52291fd2e",
10
+ "assets/paper.css": "61fc60bf8c379a0894fbfe06574964ec2ed256791a23860fa4dbb872eb2869f9",
11
+ "assets/xpeng-logo.png": "ff0db78ddf8f9a122eec74e8eb79581f8e5dbc46803dddeb780a06f5ae295750",
12
+ "cases/dense/dense-01-o365_bbox_gt50_00009110.jpg": "398038106cbac731516dd01de25354fe4d61f3599df64baa611f1d5a99e0e8fb",
13
+ "cases/dense/dense-02-o365_bbox_gt50_00004676.jpg": "7ee3beb63bdfd50c183538bd56f9d7e079fa41bde78aad9d5fe0d22c041c2673",
14
+ "cases/dense/dense-03-o365_bbox_gt50_00011992.jpg": "eb9331146b66a1af1e8c832a22043c6f1b45d5d3bb7231816f975ced2cd88e39",
15
+ "cases/dense_point/dense_point-01-sensenova_sa1b_point_1067906__phrase_000.jpg": "917975c9b31791290a2a660c91af8ae0653cfe258fa0c53539bcb868867aece2",
16
+ "cases/dense_point/dense_point-02-sensenova_sa1b_point_1445784__phrase_002.jpg": "0b9a2281fec580c02b9292d8b3f96b675a8659d721f4dd8a1ae16a1eadbaf4e9",
17
+ "cases/dense_point/dense_point-03-sensenova_sa1b_point_1451598__phrase_001.jpg": "d2f0e070f49cc001ef6855964175c8c383358fcc2185d62abf29ba0de0d1be22",
18
+ "cases/grounding/grounding-01-object365-locate_anything_object365_object365-file-0027-row-000000119924.jpg": "2e3946eafcbdc2d2ac9e0b62343595e0b51e71b38eb15c3b0669fab46c78e9f6",
19
+ "cases/grounding/grounding-02-object365-locate_anything_object365_object365-file-0027-row-000001469030.jpg": "c6abef94a28290ca94e8dd043ba58e326cfcb22088b75f32274acc07af15950c",
20
+ "cases/grounding/grounding-03-object365-locate_anything_object365_object365-file-0027-row-000001076761.jpg": "ff9581327870a05ad8679c3e5891f27dfe55acc98ed713a8abf8d02e7604774b",
21
+ "cases/gui/gui-01-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000043686__gui_0008.jpg": "c9c27a9df49bac1c9664eb74ecf1fe9967e20281add73fff1273437af06b743b",
22
+ "cases/gui/gui-02-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000006009__gui_0028.jpg": "7ff12fde621319e2959b3112fa6c1fe4e6ef83b8943a6ee169d7fc2140f59e74",
23
+ "cases/gui/gui-03-groundcua-locate_anything_groundcua_groundcua-file-0014-row-000000041853__gui_0052.jpg": "8ba06f95a90cf6954aa7c8f7554b4f28d966afbfc8b8151c96e540e224139cf5",
24
+ "cases/layout/layout-01-layout_doclaynet_train_16966.jpg": "8ba09e49907c5d7a3a31148a3fceaf2695bd04f35a017a62ef8c455b985f7218",
25
+ "cases/layout/layout-02-layout_doclaynet_train_20356.jpg": "5fbf03f82cc66566e4630547b53b7f51cd0ebd772a072c1d6f37f8c0bafdb646",
26
+ "cases/layout/layout-03-layout_doclaynet_train_3435.jpg": "8e035b83d1ca53298816550d4891fd9f2d84f83b59bba178cafdf6bf8623a9fe",
27
+ "cases/ocr/ocr-01-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000019189.jpg": "4634583edfab147e8708c6119e726fb8f394744e0225c8319136bb5000ba5d8c",
28
+ "cases/ocr/ocr-02-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000018671.jpg": "8db936cadff524299c5b61b94992f3b70ec90e1dd3873f072b34d41692393bdd",
29
+ "cases/ocr/ocr-03-ocr_textocr-locate_anything_ocr_textocr_textocr-file-0042-row-000000021130.jpg": "d959da84d676117701e6d3920bff692aab94d6075e5714e2a324df3b61f18cf8",
30
+ "cases/refer_point/refer_point-01-roboafford_affordance_point_paco_491580_000.jpg": "e5233bcfadb4d6cb3be1a0ac75573183084494661dd31cc42e7282d21b6c3e13",
31
+ "cases/refer_point/refer_point-02-roboafford_affordance_point_paco_558444_002.jpg": "df60dcc4812e93720202874e7b88cca122b25ff2615dd31e2bd697a552bce322",
32
+ "cases/refer_point/refer_point-03-roboafford_affordance_point_paco_311488_000.jpg": "e4fc006bbcb49c5e57c3b002a35e5866c15c898d6930117e0f89617121cd3928",
33
+ "cases/referring/referring-01-humanref_nocot_lf2_00007963.jpg": "4fac0cc45af121260bc7468aa63fbe7f6dfdcbc5a2f251c04a8a0e06212048df",
34
+ "cases/referring/referring-02-humanref_nocot_lf2_00004121.jpg": "9b7ec8dc3ad013a57fab9d1199ee0ce14a3104f8e56f60df908b8769d32e195d",
35
+ "cases/referring/referring-03-humanref_nocot_lf2_00011458.jpg": "44978de1893cdcf9c0c3ed7dd40df3d3f38b7c5334ba0929d2604a2a2fb5d561",
36
+ "cases/visual_prompt/visual_prompt-01-sensenova_sa1b_visual_1718306.jpg": "57104d07c82cfb97a72075ef479f7d8d1c00db82386aa5c38da0ef163a82dc2f",
37
+ "cases/visual_prompt/visual_prompt-02-sensenova_sa1b_visual_2475968.jpg": "ba96beb1cc54682f56e34b1381fefc9b7b95905363cff917bbfdac886e265bac",
38
+ "cases/visual_prompt/visual_prompt-03-sensenova_sa1b_visual_1573415.jpg": "2593b4f81c4fbfd70e73df0710fb143af232126daa0a96bc86c72575713475a5",
39
+ "grounding_demo/catalog.py": "75e543fed7f0ca018fb41c4b528efc2901aa6a0f05232959297d6d40798f676f",
40
+ "grounding_demo/console.py": "dbc1a08c937f18d5c104d4ab18316937d21a2b0d2df9ba2cba296d9ae1e20f16",
41
+ "grounding_demo/protocol.py": "aa4e634070ab7a17c6bc477051e97cb02e772e9e37db89d5de9b6497312635b0",
42
+ "grounding_demo/render.py": "189e0dcb6ea4493c1ef2f930cabdf62362ba48b261c0df24f94898e7e9166ec5"
43
+ },
44
+ "case_contract_sha256": "d00f2091dcb3c866e5e3a331f89537839640b2374c4bc32685960706d18b58b1",
45
+ "cases": 27,
46
+ "routes": 9
47
+ }
grounding_demo/__init__.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ """GroundingPI paper demo runtime."""
2
+
3
+ __all__ = ["__version__"]
4
+ __version__ = "0.1.0"