算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
vpt_prompt_token_insertion【设计与创意】Build shallow and deep Visual Prompt Tuning token sequences for Transformer-style image embeddings.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when implementing or checking Visual Prompt Tuning (VPT) token formatting for a vision Transformer or a reduced VPT proxy. Do not use it to compute losses, choose hyperparameters, or emit classification metrics.
[batch, 1 + patches, hidden] where the first token is [CLS].[num_prompt_tokens, hidden].[layers, num_prompt_tokens, hidden].location="prepend", prompt count, hidden size, and whether prompts are shallow or deep.[batch, 1 + prompts + patches, hidden].[CLS] plus at least one image token.[CLS] at position 0 and preserve image-token order.[CLS].[CLS] and image tokens unchanged.Run python tests/test_prompt_ops.py from this skill directory, or run the Distiller skill validator with --run-tests.
This skill implements the paper's default prepend-token VPT mechanism. Pixel-padding prompt variants and pooling choices are intentionally outside this module's contract.