算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
prompt_training_loop【设计与创意】Optimize only universal visual prompt parameters while frozen model components remain unchanged.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or implementation must demonstrate the paper's central adaptation mechanism: the model is frozen and only a shared visual prompt is optimized with cross-entropy. It is not for fine-tuning, linear probing, or per-image adversarial perturbation.
params_before, params_after, loss_before, loss_after, and frozen-parameter checks.A tiny logistic proxy test verifies that one or more prompt updates reduce loss and leave frozen weights unchanged.
The helper script is intentionally scalar and lightweight for deterministic validation. Real CLIP recovery can replace the gradient provider while preserving the same contracts.