作用
將 prompt 新增一些語法,讓你使用 prompt 更彈性
一樣到 Extensions 頁面新增 sd-dynamic-prompts 插件
使用
詳細教學可以參考
https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/SYNTAX.md
https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/tutorial.md
這邊列出幾個常用的新增語法
隨機選其中一個
|
1 2 3 |
# 會在 boy,girl,dog,cat 中隨機選 1 個 { boy | girl | dog | cat } stand in the middle of road Ex: dog stand in the middle of road |
隨機選其中 N 個
|
1 2 |
{2$$boy|girl|dog|cat} stand in the middle of road Ex: boy,dog stand in the middle of road |
註解
|
1 2 3 |
在 prompt 中可以使用註解了 # 寫註解 // 寫註解 |
樣板
作者提供基礎樣板來使用
|
1 2 3 4 5 6 7 |
Elegant solitaire engagement ring. {classic|petite|thin|cigar|tapered|twisted} # Band design {silver|{white|rose|yellow}gold|platinum} # Band metal {round|faceted|honeycomb} # Band texture band with a {round|brilliant|oval|heart-shaped} # Stone cut __items/materials/gems__ # Gem type. |