![見出し画像](https://assets.st-note.com/production/uploads/images/166807608/rectangle_large_type_2_94ebb6ae161bbd83d86f357ebed53786.png?width=1200)
Stable Diffusion『ComfyUI』をつかってみたい!#きゃんべるです。
今日の目標は、ComfyUI画像を生成することです。
★Stable Diffusionは、イギリスのスタートアップ企業Stability AIが開発した画像生成AIモデルです。
【Stable DiffusionのWebUIの種類】
・AUTOMATIC1111(WebUIのオリジナルバージョン)
・Forge(AUTOMATIC1111版をベースに最適化されたバージョン)
・Fooocus(プロンプトだけでハイクオリティな画像が生成できるツール)
・ComfyUI(ノードベースのGUIツール)
★ComfyUIをつかって、初めて生成できた画像がこちらです↓
![](https://assets.st-note.com/img/1734879025-R4No75ZPBfw2E1F9jVKWr6et.png?width=1200)
![](https://assets.st-note.com/img/1734879139-L3K1o8cfbvNFGaztQAOZYsl4.png?width=1200)
![](https://assets.st-note.com/img/1734879053-X2v7byQosn9Kxd5relpFjTYR.png?width=1200)
![](https://assets.st-note.com/img/1734879041-6mLB58CKERxsW9NPA1Zrn4Uy.png?width=1200)
①「Stability Matrix」と「ComfyUI」をインストール
参照↓
②Stability Matrixの左メニューから、ComfyUIを「Launch」を押す
![](https://assets.st-note.com/img/1734879438-bkhYBi1edt20HxSmrO9wFo3p.png?width=1200)
③起動できると下部にURLが記載されているのでクリック
![](https://assets.st-note.com/img/1734879552-HtkMe7VClPLmpJuKBYgI1AwT.png?width=1200)
④これが一番最初に出る画面↓
※いったん全部削除して、表示なしにする。
![](https://assets.st-note.com/img/1734879676-I1dREga7XTxk8QWYUS9zhF6D.png?width=1200)
![](https://assets.st-note.com/img/1734879801-jcfImKtrwRDFo3ga79HeXCL4.png?width=1200)
⑤画面上でダブルクリック、検索メニューを表示
![](https://assets.st-note.com/img/1734879920-9bA1RIqj0YOrHdMzhNeDcFWT.png?width=1200)
⑥「ksampler」で検索し、KSapmlerをクリックして画面に追加
![](https://assets.st-note.com/img/1734879995-Y7xeCOiFaWoDXVdfkwRJ4h5n.png?width=1200)
![](https://assets.st-note.com/img/1734880033-WliutPm4OF29edUEvpwq6Z1n.png?width=1200)
⑦「Load Checkpoint」と入力して、Load CheckPointを追加し、modelとmodelをマウスドラッグでつなぐ
![](https://assets.st-note.com/img/1734880144-PTW71lLMBaXune5f6mK3GoAU.png?width=1200)
![](https://assets.st-note.com/img/1734880168-TeOdJml4tuKaSXr2Yx6RpFn5.png?width=1200)
⑧「CLIP Text Encode」と入力し、CLIP Text Encode(Prompt)を追加
![](https://assets.st-note.com/img/1734880315-RTVJu874XNhEaesFQKvZnP0d.png?width=1200)
![](https://assets.st-note.com/img/1734880337-OUqhykmo7i56VL9EG2b0NjKg.png?width=1200)
![](https://assets.st-note.com/img/1734880406-UR1aPKyfjHet0X8JYWMirVcB.png?width=1200)
![](https://assets.st-note.com/img/1734880471-Y6BlErIXZPG8Vud3Jzpq1ceC.png?width=1200)
(上をpisitiveに、下をnegativeに接続)
⑨「Empty Latent Image」で検索し、Empty Latent Imageを追加
![](https://assets.st-note.com/img/1734880641-fhVgOBv7Rp39byAIlUPxec4z.png?width=1200)
![](https://assets.st-note.com/img/1734880744-f8cE95KqBkHpC2DIFsmPu1oG.png?width=1200)
⑩「VAE Decode」で検索し、VAE Decodeを追加
![](https://assets.st-note.com/img/1734880865-FPGkH0bzBh4p1SvEA2DOsina.png?width=1200)
![](https://assets.st-note.com/img/1734880982-pGv2lyEn6SKANw95mstTfrYW.png?width=1200)
⑪Load CheckpointのVAEを、VAE DecodeのVAEに接続
![](https://assets.st-note.com/img/1734881051-1PZS2MQj5ywUOxBafJthXbLz.png?width=1200)
⑫「Save Image」で検索し、Save Imageを追加
![](https://assets.st-note.com/img/1734881098-KGCdiOse4bIpu1DAXqQ80kRo.png?width=1200)
![](https://assets.st-note.com/img/1734881132-xB7pWHdPbezknUVGSF9uRcts.png?width=1200)
⑬ポジティブプロンプト
masterpiece, best quality, very aesthetic, absurdres, ultra detailed, UHD, 8K, highly detailed, blue theme, 1girl,, girl, twintails, long hair, blonde hair, blue eyes, black ribbon, white dress, too many frills, nemophila, cinematic lighting, lens flare, chromatic aberration, depth of field, newest
⑭ネガティブプロンプト
(bad quality,worst quality,low quality,bad anatomy,bad hand:1.3), unaestheticXL_hk1, nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
⑮KSamplerの各項目を設定
![](https://assets.st-note.com/img/1734881332-dq1cbHJMo8KGweasP7EOuRYU.png?width=1200)
⑯Empty Latent Imageの各項目を設定
![](https://assets.st-note.com/img/1734881413-3gwW5rMHp9oucEKFDUCdRvbm.png)
⑰Load Checkpointを設定
![](https://assets.st-note.com/img/1734881663-Mpy1w6mJotID0sBRONKzCblv.png)
⑱「Queue」ボタンを押して、画像生成
![](https://assets.st-note.com/img/1734881727-FyAwBROhHWV7sCNzEiocY5re.png)
⑲ぱんぱかぱーん!!!出来ました。
![](https://assets.st-note.com/img/1734881776-UzAZsfXTlrhj5yiaR2b0N84M.png?width=1200)
⑳最後はワークフローの保存
![](https://assets.st-note.com/img/1734882370-LmH9vOsd1WrGV8KPBgNFhSMi.png?width=1200)