**Prompt的基礎認識** ![SD-06 Prompt的基礎認識](https://hackmd.io/_uploads/BJuTcVg3p.png) Prompt 提示詞大致可規劃出三大面向: 第一部分是把「主題與背景」,第二是形容該圖像的「風格和媒介」,第三部分「顏色和氛圍感」形容詞 「主體+風格+渲染」三大項目並非都要寫到,主要根據自己所要生成的圖像適當地加入敘述 1. 提示詞之間用英文逗號,分隔 2. 提示詞可以換行使用 3. 每個單詞權重默認為1,放在越前面影響越大 4. 提示詞數量在75個單詞之內 超過的詞影響會非常少 可以在詞彙上加上小 中 大括號權重修改 其中小括號使用最靈活 可以直接加:設定數值(House:1.5)... 5. ()小括號 []中括號 {}大括號 House=1,(House)=1.1,((House))=1.331 House=1,[House]=0.9,[[House]]=0.729 House=1,{House}=1.05,{{House}}=1.15 ![螢幕擷取畫面 2023-11-22 120940](https://hackmd.io/_uploads/SkXmybjVp.png) **-下滑線 有連接的作用** Red_blue color chair,red blue color chair, red|blue color chair(交替採樣) ![image](https://hackmd.io/_uploads/BJCtl_5vT.png) **控制提示詞生效的時間** [提示詞:0~1數值] 採樣進行至70%提示詞才開始生效 [提示詞::0~1數值] 採樣一開始就參與進行 但至70%之後就停止採樣 [提示詞1:提示詞2:0~1數值] 前面70%提示詞1生效 後面30%提示詞2生效 [提示詞1|提示詞2] 交替影響 如: [white|purple]控制空間色系 ![image](https://hackmd.io/_uploads/Sk2RqvqDa.png) **關於Prompt 的描述詞彙** 1. 畫質詞+畫風詞- masterpiece, best quality, higher, extremely detailed CG, perfect lighting, 8K wallpaper... 1. 真實系列-photograph, photorealistic... 1. 插畫風格-illustration, painting, paintbrush... 1. 二次元-anime, comic, game CG... 1. 3D model-3D, C4D render, unreal engine, octane render 1. 畫風詞-cyberpunk(賽博朋克), 8bit/16bit piexel(像素風),studio(宮崎駿風格),pixel style(皮克斯風格),Chinese ink style(水墨畫),watercolor(水彩風格)…. 1. 畫面主體描述-living room,bed room,building... 1. 環境 場景-in spring、 indoor、 outdoor、 city、urban、suburbs 6. Lora-使用Lora model時 要注意有否觸發詞Trigger Words 7. 負面提示詞-NSFW(not suitable for work不適合在公共場合出現), ugly, lowers, normal quality, duplicate, morbid, fused fingers, bad hands, unclear, extra arms and legs **提示詞的工具(Extension)** https://github.com/Physton/sd-webui-prompt-all-in-one (prompt-all-in-one)它具有更直觀,更強大的輸入介面功能,並提供自動翻譯,歷史記錄和書籤功能。 ![image](https://hackmd.io/_uploads/r1Ej0w9PT.png) ![image](https://hackmd.io/_uploads/B1ZnCvqPT.png) https://github.com/daxijiu/sd-webui-sdxl-styles-preset.git (styler preset) ![image](https://hackmd.io/_uploads/HJo81OqPa.png) https://github.com/a2569875/lora-prompt-tool (LoRA 模型提示工具) ![螢幕擷取畫面 2023-12-28 115238](https://hackmd.io/_uploads/S1Cz-u5wa.png) **建築立面案例練習** Prompr: masterpiece,best quality,architecture,facade design, ![ele-1_0](https://hackmd.io/_uploads/ByQZGOqP6.jpg) ![螢幕擷取畫面 2023-12-28 115448](https://hackmd.io/_uploads/H1GjZ_5Dp.png) **Stable Diffusion 1.5 - Cheat Sheet 備忘錄** 藝術家靈感風格 Stable Diffusion 所設想的這些藝術家風格的集合。 雖然進行概述很有幫助,但請記住,這些風格僅模仿藝術家作品的某些方面(顏色、媒材、位置等)。 它們受到 SD 相當膚淺的知識的限制,但可能可以為您自己的創作提供良好的基礎。 https://supagruen.github.io/StableDiffusion-CheatSheet/#Armstrong-Rolf ![螢幕擷取畫面 2024-02-08 121124](https://hackmd.io/_uploads/Sk-cE0Zjp.png) ![螢幕擷取畫面 2024-02-08 121140](https://hackmd.io/_uploads/BJ_q40WsT.png) **SDXL 1.0 Artistic Studies** https://rikkar69.github.io/SDXL-artist-study/ ![螢幕擷取畫面 2024-02-08 122806](https://hackmd.io/_uploads/ByIP_CZip.png) ![螢幕擷取畫面 2024-02-08 123712](https://hackmd.io/_uploads/SJY5qAWi6.png) **建議教學影片** Stable Diffusion提示词全攻略,必备提示词插件,关键词字符解析,写Prompt神器 https://www.youtube.com/watch?v=cQZx4eQlr_w **Script的xyz plot** Prompt:masterpiece,best quality,modern interior,living room,4K uhd ![螢幕擷取畫面 2024-03-10 185714](https://hackmd.io/_uploads/Sk3MGGi6p.png) ![螢幕擷取畫面 2024-03-10 185924](https://hackmd.io/_uploads/SkCqGGs66.png) 在文生圖 利用Script的xyz plot試著比對model及SD VAE&Clip skip ![螢幕擷取畫面 2024-03-10 194810](https://hackmd.io/_uploads/HyORQQjap.png) Model:v1-5-pruned-emaonly 提示詞:masterpiece,best quality,modern interior,living room,4K uhd ![螢幕擷取畫面 2024-03-10 200726](https://hackmd.io/_uploads/H1D3MXiTp.png) ![螢幕擷取畫面 2024-03-10 200617](https://hackmd.io/_uploads/BkkRf7sTp.png) ![螢幕擷取畫面 2024-03-10 200628](https://hackmd.io/_uploads/BykAGQjp6.png) ![螢幕擷取畫面 2024-03-10 200637](https://hackmd.io/_uploads/r1apMQsaa.png)