算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
visual_prompt_scaling【设计与创意】Build AutoVP frame-shaped visual prompt masks and apply bounded universal prompts to resized images.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when implementing AutoVP-style input scaling and frame prompts. Do not use it for patch-token prompt tuning or model-internal prompts.
Source image size, target image size, channel count, image array, and prompt parameters.
Prompt width p, binary frame mask, centered image canvas, and prompted image.
Compute p=(source_size-target_size)//2; build a frame mask; center the image; apply a sigmoid-bounded prompt only where mask is one. Reject target sizes larger than the source input. Record odd padding decisions.
Run python tests/test_visual_prompt_scaling.py or the Distiller skill-tree validator with tests.