---
# System prepended metadata

title: SD-26 AI擬真建築外觀(T-Group)
tags: [lineart, "ControlNet\_", depth, canny]

---

**SD-26 AI擬真建築外觀(T-Group)**
![SD-26 AI擬真建築外觀(T-Group)](https://hackmd.io/_uploads/H1la-J7XC.png)

以3D渲染之圖片為底圖 利用ControlNet進行各種控制 生成各種擬真建築外觀方案

**生成Prompt網站**
https://imagetoprompt.com/

**ControlNet的應用**
ControlNet v1.1：完整指南 - 穩定的擴散藝術 (stable-diffusion-art.com)
https://stable-diffusion-art.com/controlnet/
ControlNet 是一種穩定擴散模型，可讓您從參考圖像中複製構圖或人體姿勢。
經驗豐富的穩定擴散使用者知道生成您想要的確切成分有多難。圖像有點隨機。您所能做的就是玩數位遊戲：生成大量圖像並選擇您喜歡的圖片。借助 ControlNet，穩定擴散用戶終於有了一種精確控制拍攝物件位置和外觀的方法！
![B1lR7cGC6](https://hackmd.io/_uploads/HJ2iEzO7C.png)

![Sk-R7qzRT](https://hackmd.io/_uploads/S1VnVMuXC.png)


**ControlNet推薦影片**
EVERYTHING YOU NEED TO KNOW to get started with CONTROLNET
https://www.youtube.com/watch?v=YgWv4zLZ1rk

**底圖一** 
(512x288)
![p-01-512](https://hackmd.io/_uploads/Hynlu4ymC.jpg)
(1024x576)
![p-01-1024](https://hackmd.io/_uploads/HJebdNkm0.jpg)


Prompt:Eco-friendly little church in suburbs,wood and stone facade,focus on natural environment,sunny day,

Prompt:Eco-friendly little church in suburbs,rose window,wood and stone facade,focus on natural environment,landscape,outdoor,
(加上global illuminations 容易生成有燈光效果的場景)

Model:realistic_v10BAKEDVAE

 
**在文生圖中啟用ControlNet的 canny** 
Control Weight(控制權重)調為0.85
![螢幕擷取畫面 2024-05-13 150423](https://hackmd.io/_uploads/BkQcsVk70.png)
Control Mode 選擇Balanced平衡
使用canny 除了可調整控制權種外
調整Threshold的參數 可以微調線條的控制
最低臨界點Canny Low Threshold
最高臨界點Canny High Threshold

![00100-764372552](https://hackmd.io/_uploads/S1jn5E1QR.jpg)

![00101-186997453](https://hackmd.io/_uploads/BJiziN17R.jpg)

![00104-1633400958](https://hackmd.io/_uploads/HyGnjV1Q0.jpg)

想給AI更多發揮 Control Mode 選擇ControlNet為重
![00085-1267998079](https://hackmd.io/_uploads/H1GxONyXA.jpg)

![00089-3402404506](https://hackmd.io/_uploads/ry_ItEyXC.jpg)

想要AI更多依據提示詞發揮 Control Mode 選擇My prompt is more important
![00106-3897778551](https://hackmd.io/_uploads/rkYV6EJ7C.jpg)

![00110-1888097748](https://hackmd.io/_uploads/H14_a4yQR.jpg)

**啟用ControlNet的 lineart**
Control Weight(控制權重)調為0.85
![螢幕擷取畫面 2024-05-13 151459](https://hackmd.io/_uploads/S1_bAN17R.png)

![00113-508093415](https://hackmd.io/_uploads/SksXC4JQ0.jpg)

![00114-577892975](https://hackmd.io/_uploads/Sk3jAE1Q0.jpg)

![00115-834583220](https://hackmd.io/_uploads/HJBekH1mA.jpg)

![00123-1688367708](https://hackmd.io/_uploads/HyaOJrk70.jpg)

![00126-21091290](https://hackmd.io/_uploads/Bk_weHJ7R.jpg)


![螢幕擷取畫面 2024-05-13 153056](https://hackmd.io/_uploads/rkEpWH1mR.png)

![00130-920876709](https://hackmd.io/_uploads/HJeRZS170.jpg)

![00141-3839052212](https://hackmd.io/_uploads/HyIKQBym0.jpg)

![00145-2412810259](https://hackmd.io/_uploads/H1TEEHk70.jpg)

**啟用二個ControlNet**
第一個lineart
Control Weight(控制權重)調為0.8
![螢幕擷取畫面 2024-05-15 204452](https://hackmd.io/_uploads/BJFPCXM7R.png)


第一個Shuffle (主要是透過彩度影響)
Control Weight(控制權重)調為0.2
![f02](https://hackmd.io/_uploads/rJV3hQM7R.jpg)

![螢幕擷取畫面 2024-05-15 203616](https://hackmd.io/_uploads/H19Qp7GXR.png)


並加上LoRA model 可以增加點景效果
lora:UrbanScene_1024_test1

![00947-1290415600](https://hackmd.io/_uploads/r1cOCQz70.jpg)

![00942-669608418](https://hackmd.io/_uploads/BJbTpXMXA.jpg)

![00941-3755876993](https://hackmd.io/_uploads/By_M2XzX0.jpg)

**底圖二** 
(512x288)
![p-04-512](https://hackmd.io/_uploads/BJuZgNzmC.jpg)
(1024x576)
![p-04-1024](https://hackmd.io/_uploads/Hy7zgEG70.jpg)

![00949-639174841](https://hackmd.io/_uploads/Hk0Gg4zXA.jpg)

![螢幕擷取畫面 2024-05-15 205354](https://hackmd.io/_uploads/BkmdlVfm0.png)

![螢幕擷取畫面 2024-05-15 205432](https://hackmd.io/_uploads/HJAqxNM7C.png)

![00951-389325420](https://hackmd.io/_uploads/rJqeZ4zmC.jpg)

![00953-3890298584](https://hackmd.io/_uploads/BJ38W4fX0.jpg)

![00954-3870361314](https://hackmd.io/_uploads/rJ5s-VM70.jpg)




