浣撻獙鍦ㄧ嚎 AI 鐢诲浘鏈嶅姟
Midjourney
Midjourney 鏄竴涓敱鍚屽悕鐮旂┒瀹為獙瀹ゅ紑鍙戠殑浜哄伐鏅鸿兘绋嬪簭锛屽彲鏍规嵁鏂囨湰鐢熸垚鍥惧儚锛屼簬2022骞?鏈?2鏃ヨ繘鍏ュ叕寮€娴嬭瘯闃舵锛岀敤鎴峰彲閫忚繃 Discord 鐨勬満鍣ㄤ汉鎸囦护杩涜鎿嶄綔銆傝鐮旂┒瀹為獙瀹ょ敱 Leap Motion 鐨勫垱鍔炰汉澶у崼路闇嶅皵鍏硅礋璐i瀵笺€傗€斺€?Wikipedia
鍙互鍔犲叆 Beta 璁″垝浠?Discord 缇や腑鍚戞満鍣ㄤ汉鎻愪氦浣滃浘鎸囦护銆傚畼缃戞湇鍔′篃鎻愪緵浠樿垂璁㈤槄銆?/p>
Microsoft Bing Image Creator
寰蒋鍊熷姪 OpenAI 鐨?DALL-E 鍥惧儚鐢熸垚 AI 锛屾彁渚涗簡杩欎釜鍦ㄧ嚎鍥剧墖鐢熸垚鏈嶅姟銆傜敤鎴疯緭鍏ヤ竴娈垫枃鏈彁绀猴紝浠呴渶鏁扮鍗冲彲鑾峰緱涓€缁?AI 鐢熸垚鐨勪笌涔嬪尮閰嶇殑鍥惧儚銆?/p>
Preview 闃舵锛屾瘡浣嶆櫘閫氱敤鎴峰獟浣撳彲浠ュ揩閫熺敓鎴?25 娆★紝瓒呰繃娆℃暟闇€瑕佹帓闃熺瓑寰呫€?/p>
鎼缓鑷繁鐨?AI 浣滃浘鐜
鍦ㄧ嚎鏈嶅姟鏁堟灉濂斤紝浣嗘槸鏈変娇鐢ㄦ鏁伴檺鍒躲€傚鏋滀綘闇€瑕佹洿澶氱殑鑷敱搴︼紝閭d箞鍙互鑰冭檻鑷繁鎼缓涓€濂?AI 鍋氬浘鐜銆?/p>
鍑嗗
Stable Diffusion GUI
AI 缁樺浘宸茬粡鐏嚭鍦堬紝鑷劧寮€婧愮ぞ鍖洪噷涔熸湁璁稿 Stable Diffusion 鐨勫浘褰㈢晫闈紝鏂逛究鐢ㄦ埛涓婃墜浣撻獙銆?br> 鏈変笓闂ㄦ彁渚涚粰 MacOS 妗岄潰绔殑 DiffusionBee锛岃繕鏈夎法骞冲彴鐨?Stable Diffusion UI v2 銆?/p>
鑰屾湰鏂囨垜浠潃閲嶄粙缁嶅彲浠ラ儴缃插湪浜戠鐨?Web UI 銆?br> AUTOMATIC1111锛堢畝绉?A1111锛塖table Diffusion Web UI 鏄负楂樼骇鐢ㄦ埛鎻愪緵鐨?Stable Diffusion GUI銆?br> 澶氫簭浜嗘椿璺冪殑寮€婧愮ぞ鍖猴紝澶у鏁版柊鍔熻兘閮戒細鍏堟敮鎸佷笂杩欎釜鍏嶈垂鐨?Stable Diffusion GUI 銆?br> 浣嗚浣跨敤瀹冨苟涓嶅鏄撱€傛枃妗d笉澶熻灏斤紝浠ュ強鎻愪緵鐨勮尗鑼姛鑳藉垪琛ㄩ兘浼氳鏂版墜杩疯尗銆?/p>
璐拱涓€鍙颁簯涓绘満
鍒濇浣撻獙锛屽厛璇曡瘯鏈€渚垮疁鐨?GPU 涓绘満銆?br> P.S 鏈€浣庨厤鐨勪篃瀹屽叏澶熺敤锛岀敓鎴愬浘鐗囧緢蹇紒
鎴戝紑閫氱殑浜戜富鏈虹殑閰嶇疆濡備笅锛?/p>
- 绯荤粺锛?Ubuntu22.04
- 鏄惧崱锛?1 * NVIDIA T4
- CPU/鍐呭瓨锛?4 鏍?32 G
- 绯荤粺鐩橈細 200GB
- 甯﹀锛?10Mbps
椤虹晠鐨勭綉缁滅幆澧?/h3>
鐣ワ紝鑷繁鎯冲姙娉?/p>
瀹夎
鏈哄櫒寮€閫氬悗锛屽彲浠ョ洿鎺ヤ粠 Web 绔竴閿櫥褰曪細
涔熷彲浠ヤ娇鐢?ssh 鐧诲綍锛屽湪 鈥滄洿澶氭搷浣溾€?涓嬫媺鑿滃崟涓€夋嫨閲嶅埗瀵嗙爜锛屽嵆鍙噸鏂拌瀹氫竴涓?root 璐﹀彿鐨勭櫥褰曞瘑鐮侊紝鐒跺悗浜戜富鏈轰細閲嶅惎銆?/p>
鍏蜂綋鐨勪綘鍙互鍙傝€冩枃妗d骇鍝佹枃妗c€?/p>
鐧诲綍浜戜富鏈哄悗锛屽彲浠ュ厛妫€鏌ヤ竴涓嬫樉鍗″瀷鍙凤細
$ lspci | grep -i nvidia
00:06.0 3D controller: NVIDIA Corporation TU104GL [Tesla T4] (rev a1)
璐х湡浠峰疄锛屾病鏈夐棶棰橈紝閭d箞寮€濮嬫惌寤哄惂锛?/p>
瀹夎涓€浜涘繀瑕佺殑渚濊禆杞欢
# 鏇存柊杞欢鍖呯储寮?
sudo apt-get -y update
# 蹇呰杞欢
sudo apt-get -y install wget git python3 python3-venv python3-pip
sudo apt-get -y install aria2 screen
# 瀹夎 cuda 杞欢鍖咃紝璁╂樉鍗″彂鎸ヨ秴鑳藉姏
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda
# 娓呯悊 deb 瀹夎鍖?
rm *.deb
# 瀹夎 cuda 涔嬪悗锛岄渶瑕侀噸鍚敓鏁?
sudo reboot
楠岃瘉 cuda 鏄惁瀹夎鎴愬姛锛?/p>
$ nvidia-smi
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02 Driver Version: 530.30.02 CUDA Version: 12.1 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 Tesla T4 On | 00000000:00:06.0 Off | 0 |
| N/A 38C P0 26W / 70W| 2279MiB / 15360MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 103851 C python3 2274MiB |
+---------------------------------------------------------------------------------------+
鍐欏湪鍓嶉潰鐨勪竴鐐瑰缓璁?/h3>
寤鸿浣犲湪浣跨敤 ssh 鐧诲綍浜戜富鏈烘椂锛屼娇鐢?screen 鍛戒护杩涘叆涓€涓櫄鎷熺粓绔細璇濓紝杩欏彲浠ラ伩鍏嶅洜涓虹綉缁滀笉绋冲畾鑰屼腑鏂簡姝e湪鎵ц鐨勫懡浠ゃ€傚洜涓烘帴涓嬫潵鐨勪竴浜涘懡浠ら渶瑕佷笅杞藉ぇ鏂囦欢鑰岃€楁椂姣旇緝闀裤€?/p>
screen 鍛戒护閫熻锛?/p>
# 鏂板缓涓€涓?screen 浼氳瘽锛屾垜鐨勪細璇濆彇鍚嶄负 workspace
screen -R workspace
# 閫€鍑?screen 浼氳瘽
## 鍏堟寜缁勫悎閿?Ctrl+A
## 鐒跺悗鎸夊瓧姣?D
# 褰撻渶瑕侀噸鏂拌繘鍏?screen 浼氳瘽
screen -r -d workspace
璇︾粏鐨勫懡浠や娇鐢ㄨ鏄庯紝鍙傝€?How To Use Linux Screen 銆?/p>
閮ㄧ讲 Web UI
浣犲彲浠ョ洿鎺?clone 椤圭洰 AUTOMATIC1111/stable-diffusion-webui (鍙堢О A1111 ) 鐨勬渶鏂颁唬鐮侊紝鐒跺悗鎸夌収 README 涓殑璇存槑瀹夎鍗冲彲銆?/p>
鑰屾垜鍙傝€冧簡鍙︿竴涓」鐩細
濡傛灉浣犳兂蹇€熷紑濮嬩綋楠岋紝灏辫窡鎴戜竴鏍疯剼鏈竴鎶婃锛屽厤寰楄€楄垂鏃堕棿鎵惧悇绉嶆彃浠?妯″瀷锛?br> 濡傛灉浣犲緢鍦ㄦ剰杩欎簺鍛戒护鍦ㄥ共浠€涔堬紝鎴戠畝鍗曟坊鍔犱簡涓€浜涙敞閲婏紱
鐪嬩笉鎳傦紵娌″叧绯伙紝杩欎釜绯诲垪浠ュ悗浼氭湁鏂囩珷娣卞叆杩欎簺缁嗚妭銆?/p>
#!/usr/bin/env bash
# A1111 椤圭洰娌℃湁鎵?tag 鐨勪範鎯紝浣犳媺鍙栧埌鐨勬渶鏂扮増鏈唬鐮佸彲鑳芥棤娉曞鐜版湰鏂囩殑鍐呭锛?
# 鑰岃繖涓」鐩?Fork 鑷?A1111 锛岃繕璐村績鍦版墦涓婁簡 tag 锛屽缓璁綘鍜屾垜涓€鏍蜂娇鐢ㄨ繖浠芥簮鐮?
git clone -b v2.2 https://github.com/camenduru/stable-diffusion-webui
# 鎸囧畾涔嬪悗鎿嶄綔鐨勬牴鐩綍
base_dir="$(pwd)/stable-diffusion-webui"
# 绠€鍖?ariac2 涓嬭浇鍛戒护
download="aria2c --console-log-level=error -c -x 16 -s 16 -k 1M"
# Extra network / Textual Inversion
# 璐熼潰璇嶏紝鍔熻兘璇存槑 https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Negative-prompt
git clone https://huggingface.co/embed/negative ${base_dir}/embeddings/negative
# Extra network / Lora
# 鏀寔鎶?Lora 妯″瀷浣滀负鍏抽敭璇?
git clone https://huggingface.co/embed/lora ${base_dir}/models/Lora/positive
# 4x-UltraSharp 锛屼竴涓€氱敤妯″瀷锛屽彲浠ユ彁楂樺浘鐗囩殑鍒嗚鲸鐜囥€?
# 鍘熷妯″瀷鍙戝竷鍦?MEGA 缃戠洏锛屼负浜嗕笅杞芥柟渚夸娇鐢?huggingface 涓婄殑澶囦唤銆?
${download} https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d ${base_dir}/models/ESRGAN -o 4x-UltraSharp.pth
# 涓€浜涙柟渚跨殑鎻掍欢锛屽彲浠ュ幓浠栦滑鐨?Github 涓婚〉鏌ョ湅鍔熻兘浠嬬粛
## 鏂逛究浠?Web 绔笅杞?civitai 甯傚満鐨勬ā鍨?
git clone -b v2.0 https://github.com/camenduru/sd-civitai-browser ${base_dir}/extensions/sd-civitai-browser
## 鏂逛究浠?Web 绔笅杞?huggingface 甯傚満鐨勬ā鍨?
git clone https://github.com/camenduru/stable-diffusion-webui-huggingface ${base_dir}/extensions/stable-diffusion-webui-huggingface
## 涓€涓浘鐗囨祻瑙堝櫒锛屾柟渚挎祻瑙堜繚瀛樿繃鐨勫浘鐗?
git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser ${base_dir}/extensions/stable-diffusion-webui-images-browser
# 涓绘ā鍨?
models="${base_dir}/models"
## Stable Diffuison v1.5锛孲D1.5 鐨勬ā鍨?(鍙€?
${download} https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors -d ${models}/Stable-diffusion -o v1-5-pruned-emaonly.safetensors
## 鍥介3 https://huggingface.co/xiaolxl/GuoFeng3
${download} https://huggingface.co/xiaolxl/GuoFeng3/resolve/main/GuoFeng3.2.safetensors -d ${models}/Stable-diffusion -o GuoFeng3.2.safetensors
# LoRA 妯″瀷
mkdir -p ${models}/Lora
## 澧ㄥ績 MoXin https://civitai.com/models/12597/moxin
${download} https://civitai.com/api/download/models/14856 -d ${models}/Lora -o MoXin_v10.safetensors
鏈€鍚庢垜浠惎鍔?Web UI
鐩存帴閫氳繃 launch.py 鍚姩锛岃€屼笉鏄?webui.sh 锛岃繖鏍峰彲浠ュ姞杞介澶栧畨瑁呯殑鎻掍欢銆?br> 涓€浜?Python 渚濊禆鍖呬細鍦ㄥ垵娆¤繍琛屾椂瀹夎銆?/p>
cd stable-diffusion-webui
## 鍒濆鍖栧苟鍚敤鏂扮殑 python venv 鐜
python3 -m venv .venv
source .venv/bin/activate
## 瀹夎鏀寔 cuda 11.8 鐨?pytorch, xformer
pip install torch torchvision torchaudio torchtext torchdata --extra-index-url https://download.pytorch.org/whl/cu118 -U
pip install xformers==0.0.18 triton==2.0.0 -U
## 鍦?10000 绔彛涓婂惎鍔?Web 鏈嶅姟
python3 launch.py --listen --xformers --enable-insecure-extension-access --gradio-queue --port 10000
娴忚鍣ㄦ墦寮€ http://${host_ip}:10000 灏卞彲浠ョ湅鍒?Stable Diffusion Web 椤甸潰浜嗐€?/p>
鎶?${host_ip} 鎹㈡垚浣犵殑浜戜富鏈?ip 鍦板潃銆?br> P.S 瀹夎鑴氭湰涓渷鐣ヤ簡閮ㄥ垎鏈枃鐢ㄤ笉鍒扮殑鎻掍欢锛屾墍浠?Web 鎴浘浼氱暐鏈変笉鍚屻€?/p>
浣跨敤鑷缓鐨?AI 浣滃浘鐜
閫夋嫨涓€涓熀纭€妯″瀷锛堜富妯″瀷锛夊湪 Stable Diffusion checkpoint 涓嬫媺鑿滃崟涓紝閫夋嫨 GuoFeng3.2.safetensors 銆?/p>
GuoFeng3 杩欐槸涓€涓腑鍥藉崕涓藉彜椋庨鏍兼ā鍨嬶紝涔熷彲浠ヨ鏄竴涓彜椋庢父鎴忚鑹叉ā鍨嬶紝鍏锋湁2.5D鐨勮川鎰熴€傛潵鑷細 https://huggingface.co/xiaolxl/GuoFeng3
鐐瑰嚮 Generate 涓嬮潰鐨?Show/hide extra networks 鍥炬爣锛屽彲浠ョ湅鍒板凡缁忓畨瑁呯殑妯″瀷銆?/p>
鍒囨崲閫夐」鍗★紝鍙互鐪嬪埌鎴戜滑宸茬粡瀹夎鐨勬墍鏈?LoRA 妯″瀷銆?/p>
Q锛?浠€涔堟槸 LoRA 妯″瀷锛?br> A锛?鏍规嵁鐗瑰畾姒傚康鏇存敼鐜版湁 Stable Diffusion 妯″瀷缁撴灉鐨勬枃浠躲€傝繖鍙互鏄竴绉嶈壓鏈鏍笺€佷竴涓鑹层€佷竴涓幇瀹炰腑鐨勪汉銆佷竴涓墿浣撴垨涓€涓富棰樸€備竴浜涜憲鍚嶇殑渚嬪瓙锛欰rcane Style LoRA锛堝ゥ鏈鏍?LoRA锛?锛孧akima from Chainsaw Man LoRA锛堟潵鑷姩婕€婄數閿汉銆嬩腑鐨勭帥濂囩帥锛夈€傦紙鏉ヨ嚜锛歨ttps://aituts.com/stable-diffusion-lora/ 锛?/p>
鐐瑰嚮涓€涓?LoRA 妯″瀷锛屽彲浠ョ湅鍒板湪 Prompts 杈撳叆妗嗕腑锛岃嚜鍔ㄥ~鍐欎笂浜嗘ā鍨嬪悕绉帮細
鎴戦€夋嫨 Moxin_10 杩欎釜妯″瀷銆?/p>
澧ㄥ績 MoXin 1.0
鏄旀稉瀛愩€婄惔蹇冦€嬶紝鐜嬪瓩銆婂阀蹇冦€嬶紝蹇冨搲缇庣煟锛屾晠鐢ㄤ箣鐒夈€?br> 鏉ヨ嚜锛?https://civitai.com/models/12597/moxin
锛堥潪甯搁€傚悎涓庡浗椋? 鎼厤浣跨敤鐨?LoRA 妯″瀷锛屽彲浠ョ敓鎴愭按澧ㄧ敾椋庢牸鐨勫浘鐗囥€傦級
浠庢渶绠€鍗曠殑寮€濮?/h2>
鍑嗗鍒涗綔锛岄鍏堣鏈変釜鎯虫硶锛?br> 鍋囧鎴戞兂鐢讳竴鍙唺銆?/p>
鍦ㄥ叧閿瘝 (Prompt) 杈撳叆妗嗕腑娣诲姞涓€鍙ユ弿杩?
a bear
鎻愮ず璇嶇洰鍓嶅彧鏀寔鑻辫銆?br> 濡傛灉浣犳湁鏇村鏉傜殑鎻忚堪锛屼絾鏄〃杈句笉鍑烘潵锛熺炕璇戣蒋浠朵竴澶ф妸銆?/p>
鐒跺悗鐐瑰嚮 Generate 杩涜鐢熸垚锛屽ぇ姒傝姳浜?10s锛屽浘鐗囧氨鐢熸垚濂戒簡銆?/p>
璇村疄璇濓紝杩欒檸澶磋檸鑴戠殑榛戠唺锛屾晥鏋滆繕鎸鸿悓锛侀】鏃跺鎴戜滑鐨?AI 缁樼敾涔嬫梾锛屽厖婊′俊蹇冧簡鏈夋湪鏈夛紵
濡傛灉瑕佸啀娆$敓鎴愶紝灏辩户缁偣鍑?Generate 锛涘鏋滆涓€娆$敓鎴愬寮犲浘鐗囷紝鍙互璋冩暣 Batch count 銆?br> 鏄惧崱鏈夊杩樺彲浠ヨ皟鏁?Batch size 杩涜骞跺彂鐢熸垚馃槉銆?/p>
鐐瑰嚮 Generate 杩涜鎵归噺鐢熸垚锛屽ぇ姒傝姳浜?13s锛屽寮犲浘鐗囧氨鐢熸垚濂戒簡銆?/p>
澶氱敓鎴愬嚑寮犱箣鍚庝細鍙戠幇锛屽濂囨€€殑鍥剧墖鐪熶笉灏戯紝璐ㄩ噺鍙傚樊涓嶉綈銆?/p>
鑾峰緱鏇村ソ鐨勬晥鏋?/h2>
棣栧厛鎴戜滑鍙互鐐瑰紑妯″瀷鐨勪粙缁嶉〉闈紝鐪嬬湅妯″瀷鐨勪綔鑰呴兘鏈変粈涔堝缓璁€?br> 鏍规嵁浣滆€呯殑寤鸿锛屾垜鍋氫簡濡備笅璋冩暣锛?/p>
鍔犱笂璐熼潰璇嶏紙Negative prompt):
lowres, worstquality, low quality, normal quality, text, error, extra digit, jpegartifacts, signature, watermark, username, blurry
杩欎簺璐熼潰璇嶏紝绋嶅井缈昏瘧涓嬶紝灏辫兘鎳備粬浠殑鎰忔€濄€?/p>
淇敼浜嗗弬鏁?
- Sampler: DPM++ SDE Karras
- Sampling steps: 35
- CFG Scale: 5
杩欓噷鍏堜笉浠嬬粛杩欎簺鍙傛暟鐨勫惈涔夛紝浠呬粎鏄寜鐓фā鍨嬩綔鑰呮帹鑽愮殑鏉ヨ缃€?/li>
鍐嶆潵鐐瑰嚮 Generate 锛岀敓鎴愮湅鐪嬨€?/p>
鐢熸垚鏃堕棿闀夸簡涓€浜涳紝澶ф 40s銆?br> 鑰屼笖閫氳繃璐熼潰璇嶇瓫鎺変簡璁稿璐ㄩ噺涓嶄匠鐨勫浘鐗囩礌鏉愶紝鍑哄浘鏁堟灉纭疄鍙樺ソ浜嗚澶氥€?/p>
璧嬩簣鍥剧墖涓婚
鎴戜滑鎻愪緵鐨勫叧閿瘝杩囦簬绠€鍗曪紝鎵€浠ョ敓鎴愮殑鍥剧墖娌℃湁涓€涓粺涓€鐨勪富棰橈紝鎵€浠ユ垜浠渶瑕佺粏鍖栦竴涓嬮渶姹傦紝鎵╁厖涓€涓嬫彁绀鸿瘝涓殑鐢婚潰鎻忚堪銆?/p>
姣斿锛岀幇鍦ㄦ垜鎯宠鐢讳竴鍙粦鐔婄珯鍦ㄦ灚鍙舵灄涓粌涔犳尌鍓戙€?br>
淇敼鍏抽敭璇嶏紝鎶婂浘鐗囨弿杩扮殑鏇寸粏鑷达細
A black bear stood in the maple leaf forest and practiced waving his sword.
涓轰簡蹇€熺湅鍒版瀯鍥炬晥鏋滐紝鍙互璋冧綆 Batch count銆?/p>
鍐嶆灏濊瘯鐢熸垚锛?/p>
鍥剧墖閲岀殑杩欏彧榛戠唺鏈夆€滃墤瀹⑩€濆唴鍛冲効浜嗭紝鍙槸鎵嬫寚鐪嬭捣鏉ユ€€殑銆?/p>
鎵嬫寚鐨勭殑鐢熸垚闂锛屽湪浣跨敤 Stable Diffusion 鏃跺緢甯歌锛屾垜浠彲浠ユ殏鏃堕€氳繃璐熼潰璇嶅幓缁曡繃杩欎釜闂銆?br> Tips: 浣犲鏋滀娇鐢ㄥ拰鎴戜竴鏍风殑鍙傛暟鍜屽叧閿瘝锛屽~鍏ュ悓鏍风殑 Seed 灏辫兘澶嶇幇鎴戣繖寮犲浘鍝︼綖
鍥剧墖鐢熸垚淇℃伅涓彲瑙?Seed: 620974436 銆?/p>
涓句竴鍙嶄笁
褰撴湁涓€寮犲浘鐗囪鎴戜滑鎰熻涓嶉敊锛屽笇鏈涘啀寰楀埌绫讳技鐨勫垱鎰忔€庝箞鍋氾紵
鎺ヤ笅鏉ユ垜浠互杩欏紶鈥濈伆鐔婂墤瀹⑩€濈殑鏋勫浘涓哄熀鍑嗭紝鏉ョ敓鎴愬叾浠栫殑鍥剧墖銆?br>
鐐瑰嚮鐢熸垚鍥剧墖涓嬫柟鐨?Send to img2img 鎸夐挳銆?/p>
鐐瑰嚮鍚庝細鑷姩璺宠浆鍒?img2img 鏍囩椤点€備粩缁嗚瀵熷彲浠ュ彂鐜帮紝鐩告瘮涔嬪墠鐨勯〉闈㈠張澶氫簡 2 涓彲璋冩暣鐨勫弬鏁帮細
Denoising strength锛屽幓鍣己搴︼紝鎺у埗涓庡師濮嬪浘鍍忕浉姣旓紝瀹冨皢浜х敓澶氬皯鍙樺寲锛?/p>
- 璁剧疆鎴?0 鏃讹紝涓嶄細鏈変换浣曞彉鍖栵紱
- 璁剧疆鎴?1 鏃讹紝浼氬緱鍒颁竴涓棤鍏崇殑缁樺浘銆?/li>
閭f垜浠繚鎸佷箣鍓嶇殑鍙傛暟閮戒笉鍙橈紝浠呬粎璋冩暣 Denoising strength 锛屾潵鐪嬬敓鎴愬寮犲浘鐗囩殑鏁堟灉銆?/p>
- Denoising strength: 0.75
- Denoising strength: 0.35
鍥犳濡傛灉鎴戜滑鎯宠鐢熸垚涓庡師鍥剧墖绫讳技鐨勬瀯鍥撅紝Denoising strength 鍙栧€煎湪 0.5 浠ヤ笅鏇翠匠銆?/p>
Resize mode锛屽鏋滅洰鏍囧浘鍍忕殑瀹介珮姣斾笌杈撳叆鍥惧儚鐨勫楂樻瘮涓嶅悓锛屾湁濡備笅鍑犵鏂规硶鍙互璋冨拰宸紓锛?/p>
- Just resize锛?绠€鍗曞湴灏嗘簮鍥惧儚璋冩暣涓虹洰鏍囧垎杈ㄧ巼锛屽彲鑳藉鑷翠笉姝g‘鐨勫楂樻瘮銆?/li>
- Crop and resize锛?璋冩暣婧愬浘鍍忕殑澶у皬锛屼繚鐣欏楂樻瘮锛屼娇鍏跺崰鎹暣涓洰鏍囧垎杈ㄧ巼锛屽苟瑁佸壀绐佸嚭鐨勯儴鍒嗐€?/li>
- Resize and fill锛?璋冩暣婧愬浘鍍忕殑澶у皬锛屼繚鎸佸楂樻瘮锛屼娇鍏跺畬鍏ㄩ€傚悎鐩爣鍒嗚鲸鐜囷紝骞朵粠婧愬浘鍍忎腑鎸夎/鍒楀~鍏呯┖鐧姐€?/li>
- Just resize (latent upscale)锛氱被浼间簬 鈥淛ust resize鈥濓紝浣嗙缉鏀炬槸鍦ㄦ綔鍦ㄧ┖闂翠腑瀹屾垚鐨勩€備娇鐢ㄥぇ浜?0.5 鐨?Denoising strength 鏉ラ伩鍏嶅浘鍍忔ā绯娿€?/li>
鎴戜滑鍥哄畾 Denoising strength 涓?0 锛堝嵆涓嶇敓鎴愭柊鐨勭粯鍥撅級锛屽皾璇曞皢 512x512 鍒嗚鲸鐜囩殑鍘熷浘璋冩暣涓?300x600 鐨勫浘鐗囷紝瑙傚療鍦ㄤ笉鍚?Resize mode 涓嬬殑鍙樺寲銆?/p>
璧峰垵鎴戜笉鏄緢鑳界悊瑙?Just resize (latent upscale) 鐨勬剰涔?锛屾劅瑙夊氨鏄鍘熷浘鍙樺緱鏇存娊璞′簡銆?br> 褰撴垜鏍规嵁璇存槑涓殑鎻愮ず鎶?Denoising strength 璁剧疆涓?0.6 锛堝嵆澶т簬 0.5锛夛紝鍐嶆鐢熸垚锛?/p>
杩欐牱鐢熸垚鐨勫浘鐗囨槸娓呮櫚鐨勶紝AI 鍙戞尌浜嗗垱鎰忕殑鍚屾椂璁╄繖涓€缁勫浘鐗囦腑鐨勭伆鐔婏紝鍙樺緱鏇寸槮浜嗐€傜湅鏉?Just resize (latent upscale) 妯″紡涓昏鏄敤鏉ュ拰 Denoising strength 閰嶅悎鐨勩€?/p>
鎻愰珮鍒嗚鲸鐜?/h2>
鍦ㄤ笉閭d箞鍏呰鐨勭畻鍔涜祫婧愪笅锛屼负浜嗘洿澶氭洿蹇湴鐢熸垚鍥惧儚锛屾垜浠笉浼氳瀹氳繃楂樼殑鍥剧墖鍒嗚鲸鐜囷紝浣嗘槸褰撶敓鎴愮殑缁撴灉璁╂垜浠弧鎰忔椂锛屽垎杈ㄧ巼涓嶈揪棰勬湡鎬庝箞鍔烇紵
鍦?Stable Diffusion 涓彁渚涗簡 Image AI upscaler 锛堝浘鍍?AI 鍗囬鍣級锛屾瘮濡傦細 ESRGAN 銆?br>
鎵惧埌涓剰鐨勫浘鐗囷紝鐐瑰嚮涓嬫柟鐨?Send to extras 鎸夐挳銆?/p>
鐐瑰嚮鍚庝細鑷姩璺宠浆鍒?Extras 鏍囩椤点€備絾鏄繖閲岀殑閫夐」姣旇緝澶氾紝绡囧箙鏈夐檺锛岀畝鍗曠粰鍚勪綅鐪嬪畼婕旂ず涓€涓嬶紝浠ュ悗鏂囩珷涓粏鑱娿€?/p>
缁х画鎺㈢储
浣跨敤鏂囨湰鐢熸垚鍥剧墖渚濊禆鍚堥€傜殑妯″瀷锛屽彂鎸ュ垱鎰忕粍鍚堝叧閿瘝锛圥rompts锛夛紝杈呬互璋冩暣鍙傛暟鑾峰緱婊℃剰鐨勬晥鏋溿€?/p>
瀛︿範璧勬簮寰堝锛屽彲浠ュ鐪嬬湅鍏朵粬浜虹殑浣滃搧銆?br> 姣斿锛?https://prompthero.com/prompt-builder/62cc0211b76
涓€骞呬綔鍝佺敤鍒扮殑妯″瀷锛屽仛鍥惧弬鏁帮紝鍏抽敭璇嶉兘浼氬垎浜嚭鏉ャ€傝櫧鐒朵粎鍑繖浜涗笉涓€瀹氳兘澶嶅埢涓€涓悓鏍风殑浣滃搧锛屼絾鏄氨绠楁槸鐓ф妱鍏抽敭璇嶄篃鑳藉彂鐜颁笉灏戞湁瓒g殑涓滆タ銆?/p>
涓嬮潰鏄垜浣跨敤 Stable Diffusion 1.5 鍩虹妯″瀷鍜岀浉鍚岀殑鍏抽敭璇嶇敓鎴愮殑浣滃搧锛?/p>
鎺ㄨ崘涓€浜涘彂甯?AI 鑹烘湳浣滃搧缃戠珯锛?/p>
- https://prompthero.com/
-
https://pixai.art/
鎺ㄨ崘涓€浜?Prompts 瀛︿範绗旇锛?/li> - https://www.creativindie.com/best-midjourney-prompts-an-epic-list-of-crazy-text-to-image-ideas/
-
https://stable-diffusion-art.com/prompts/
鎺ㄨ崘涓€浜涙ā鍨嬪競鍦猴細 - https://civitai.com/
- https://huggingface.co/models
鎬荤粨
鏈缁欏ぇ瀹跺垎浜簡濡備綍寮€鍚綘鐨?AI 缁樺浘涔嬫梾锛岃€?AI 鑹烘湳鍗翠笉浠呴檺浜庡浘鍍忥紝濡傛灉澶у瀵?AI 鑹烘湳鎰熷叴瓒g殑璇濓紝鎺ㄨ崘澶у鍘荤湅鐪嬭繖绡囨枃绔狅紝瀹冪浉褰撲簬鏄竴涓祫婧愬鑸€?br> 鍒╃敤 AI 鍘诲彂鎸ユ洿澶氱殑鍒涙剰鍚э紒
寮曠敤
鎷撳睍鎬濊€?br> Q锛?AI 鑳戒綔鍥撅紝閭d箞 AI 鍙互甯繖鍐欎綔鍥惧叧閿瘝鍚楋紵
A锛?褰撶劧鍙互锛佷絾鏄笅鍥炲啀璇淬€傛暚璇锋湡寰呬箣鍚庣殑鍒嗕韩锛?/p>
鍙傝€?/p>
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features/
- https://github.com/camenduru/stable-diffusion-webui-colab
- https://huggingface.co/xiaolxl/GuoFeng3
- https://civitai.com/models/12597/moxin
- https://developer.nvidia.com/cuda-11-8-0-download-archive
- https://pytorch.org/get-started/locally/
- https://stable-diffusion-art.com/inpainting_basics/
- https://stable-diffusion-art.com/ai-upscaler/
- https://pharmapsychotic.com/tools.html