133563825as-ai/dsh-localdream ↗★ 2
dsh-localdream
接入手机端本地NPU生图与重绘 适合需要离线、免Token进行AI生图与图生图的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:133563825as-ai/dsh-localdream说明文档
阅读完整 README ↗容器里的配置与提示词
都落在 /localdream/(通常是 /root/.dsh/localdream/),全是普通 JSON,可以直接编辑:
localdream/
├── settings.json 使用偏好
├── models.json per-model 参数预设
├── prompts/ 提示词模板,一个模板一个 JSON
└── out/ 出图输出
用工具改(推荐,会做校验):
ld_config({ action: 'show' })
ld_config({ action: 'set', key: 'defaultAspectRatio', value: '3:4' })
ld_config({ action: 'set', key: 'models..cfg', value: '6' })
ld_config({ action: 'reset', key: '' })
ld_prompt({ action: 'save', name: '雨夜少女', prompt: '...', aspectRatio: '3:4', steps: 30 })
ld_prompt({ action: 'list' })
然后出图时带模板名即可套用:
ld_draw({ template: '雨夜少女' })
每次调用都重新读盘,改完立即生效,不需要重启宿主。
settings.json 的键
| 键 | 说明 | 默认 |
|---|---|---|
defaultNegativePrompt | 默认负面提示词(cfg > 1 时生效) | 内置通用质量词表 |
defaultAspectRatio | 默认宽高比 | 1:1 |
defaultCount | 默认连出张数 | 1 |
defaultOutputFormat | 默认落盘格式 | png |
defaultModel | 后端被回收时默认重挂哪个模型 | 空(必须显式指定) |
maxBatch | 单次连出张数上限 | 2 |
maxBatch 默认 2 是有意的:手机 NPU 一次连出更多会持续高负载、发热甚至顶掉内存。想要更多张,优先分多次调用。