界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

janus

janus

【效率与协作】Routes Janus, Janus-Pro, and JanusFlow workflows for multimodal understanding, text-to-image generation, and demo or service adaptation.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: janus description: "Routes Janus, Janus-Pro, and JanusFlow workflows for multimodal understanding, text-to-image generation, and demo or service adaptation." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

Janus

Use this skill for the DeepSeek Janus family:

  • Janus / Janus-Pro multimodal understanding and autoregressive text-to-image generation.
  • JanusFlow understanding and rectified-flow text-to-image generation.
  • Demo/service adaptation for Gradio, FastAPI, and client workflows.

Start here when the task names Janus, Janus-Pro, JanusFlow, image question answering, OCR/formula conversion, text-to-image generation, or a local demo/server.

Quick install

Read references/installation-and-models.md for the verified install variants and model-family notes. The usual starting point is:

pip install -e .

Use one of the extra installs only when the task needs it:

  • pip install -e .[gradio] for the Gradio demos.
  • pip install diffusers[torch] or another compatible diffusers build for JanusFlow generation.

If import behavior is unclear, run scripts/check_janus_environment.py from any working directory.

Routes

Minimal verification

When you only need to confirm that the package is importable and the public APIs are visible, use the environment check script first, then inspect the relevant sub-skill:

  1. Import the package and confirm the installed distribution.
  2. Verify the route-specific classes or helpers you need.
  3. Choose the sub-skill that matches the user request instead of guessing from file names.

What this skill covers

  • Prompt formatting and image placeholder handling.
  • janus.utils.io.load_pil_images for file-path and data:image/... inputs.
  • VLMImageProcessor, VLChatProcessor, and MultiModalityCausalLM for Janus / Janus-Pro understanding.
  • Janus generation loops that use classifier-free guidance and VQ decoding.
  • JanusFlow's rectified-flow generation path, including its diffusers/VAE dependency.
  • Gradio and FastAPI demo adaptation without depending on the original checkout.

What this skill does not do

  • It does not run the large model downloads or demos automatically.
  • It does not tell future agents to open source-checkout files.
  • It does not replace route-specific troubleshooting; read the nearest sub-skill reference when something fails.

Provenance

Read references/repo-provenance.md before using this skill on a different checkout or before refreshing it.

我的收藏