visual-dialogue-tools
Route image upload, click-mask segmentation, OCR, Husky VQA/captioning, inpainting, replacement, and ControlNet image workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- visual-dialogue-tools
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route image upload, click-mask segmentation, OCR, Husky VQA/captioning, inpainting, replacement, and ControlNet image workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/controller-state.md6.6 KB
- 参考文档references/image-tool-reference.md6.3 KB
- 参考文档references/image-workflows.md4.3 KB
- 参考文档references/troubleshooting.md4.4 KB
- 脚本scripts/validate_mask_inputs.py5.6 KB
03 SKILL.md 正文
Visual Dialogue Tools
Use this sub-skill when the task is about uploading an image, clicking a region, asking about text or scene content, removing or replacing a masked object, saving a mask for later use, or generating/editing an image from segmentation, canny, scribble, depth, pose, line, or normal control maps.
Route elsewhere
- App launch/load strings, tab gating, certificates, and service-level model loading belong in
../app-deployment/SKILL.md. - ImageBind audio/thermal generation and DragGAN point editing belong in
../cross-modal-generation/SKILL.md. - Video upload, captioning, action recognition, dense captioning, and TikTok-style clip generation belong in
../video-understanding/SKILL.md.
Read first
- Read references/controller-state.md for the ConversationBot state model, upload flow, click-mask handling, memory updates, and path recovery rules.
- Read references/image-tool-reference.md when you need the exact tool names, comma-separated input grammar, checkpoint expectations, or output filename conventions.
- Read references/image-workflows.md for end-to-end recipes such as Pick, OCR on a clicked region, remove/replace, save-mask reuse, and control-map generation.
- Read references/troubleshooting.md when a tool is unloaded, a mask is empty, parent-image recovery fails, a checkpoint is missing, OCR returns no text, or the prompt grammar is ambiguous.
- Run scripts/validate_mask_inputs.py before handing a candidate image/mask pair to removal, replacement, or OCR workflows; it checks file existence, format, dimensions, non-empty masks, and an optional parent relationship.
Operating notes
- Treat
stateas the chat transcript anduser_state[0]as the live session cache. - Uploaded images seed both caption and OCR memory; clicked masks are saved under
image/with a recoverable parent anchor. - Use OCR when the user cares about exact characters; use HuskyVQA when the user cares about scene semantics inside a selected region.
- Removal uses the inpainting path; replacement uses the masked-object replacement path; both expect the image path first and the mask path second.
- Many models are e-mode aware and move to CPU between calls, so do not assume GPU residency across turns.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).