计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
multimodal-understanding【效率与协作】Guides Janus-family image question answering, prompt formatting, image loading, and multimodal input preparation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about image+question prompting, OCR/formula conversion, visual question answering, image placeholder debugging, or adapting the Janus understanding examples.
references/workflows.md for end-to-end understanding recipes.references/api-reference.md for verified processor/model signatures and output fields.references/troubleshooting.md for image, template, dtype, and backend failures.scripts/janus_understanding.py for a safe dry-run helper and an optional real model run.For installation and model-family selection, use the root ../../references/installation-and-models.md.
Choose this route when the user asks to:
<image_placeholder>.prepare_inputs_embeds.<image_placeholder> and one empty assistant turn.VLChatProcessor(..., force_batchify=True).vl_gpt.prepare_inputs_embeds(**prepare_inputs).vl_gpt.language_model.generate(...) with the attention mask and tokenizer special ids.When the task is only to validate prompt/image layout, use:
python sub-skills/multimodal-understanding/scripts/janus_understanding.py \
--family janus-pro \
--model-id deepseek-ai/Janus-Pro-1B \
--image ./sample.png \
--question "Convert the formula into LaTeX."
The default mode prints a plan and does not download model weights. Add --run-model only when the environment, model access, and GPU/CPU trade-off are acceptable.
../image-generation/SKILL.md for Janus or Janus-Pro text-to-image generation.../janusflow-workflows/SKILL.md for JanusFlow rectified-flow image generation.../demos-and-serving/SKILL.md for Gradio or FastAPI serving.