











肥西老母鷄

BOOKCARD














注册『Facebook』要HK電話冧靶.可能區域限制係『google play』下載吾到『facebook.apk』,可用下面URL地址下載後.
| https://apkcombo.app/tw/facebook/com.facebook.katana/download/apk |
用USB磁碟复制入手機『DOWNLOAD』資料夾.係USB磁碟係装到app.
| /storage/emulated/0/download |












為左張3HK電話咭,祗有買部『Google Pixel5』.鋪頭話係官翻機,冇黑色得番綠色.部機擺得耐冇曬電,係大陸WIFI連線受限,實際可上網.
用『Google Pixel』手機要張『流動數據』『收發短信』『接打電話』叁合壹HK電話卡.手機要更新GOOGLE PLAY等程式先用得. 部機得128GB驚慢,實際運行流畅. 等有銀諗買『Google Pixel8 Pro 1TB』.首先HK電話罧靶, 愛蒞注冊Gmail郵箱.
部機擺係庶,電池發脹,寄翻去换電, 收我壹舊水, 電池襟用左, 有銀换Pixel10.














装『Instagram』要『WhatsApp』收驗証碼. 且佢保安系統, 係新機登入要填舊舊機驗証碼, 登出舊機. 如果舊機跌左就大鑊.
後續, 冇過两日收到警告, 第日畀人停用,提出申訴後第日帳戶恢复,可能係『Instagram』判斷你係真人.














注册『WhatsApp』,要HK電話冧靶, SIM咭可『收短信』同埋『上網』流動數據.















注冊Google帳號即注冊Gmail郵箱,要諗定個名6字母,仲畀人注册到.仲有畫埋定logo 解像512px*512px. 揀『源界明朝』體. Google公司條列定明Gmail郵箱閑2年注消


















之前買『Lucky2』齊上網,冇電話冧靶,冇得接打電話,冇得收發短信.要注册『instagram』就要買個有『電話冧靶』可『接打電話』『收發短信』『上網』叁合壹. 諗住『冧靶』長期持有.
和記旗下3HK.有超抵『365日數據通行證-大灣區 45GB』, $268蚊壹年係大陸有40GB數據, 3HK支持『esim』係官網畀銀後,下載寫入手機.部『piexl 5』係支持『esim』.但係鐘意實體『sim卡』. 3HK吾郵寄返大陸.祗有坐車落去『3HK舖頭』.係『郎豪坊』落車去『西洋菜街』或者太子落車去『始創中心』, 『3HK舖頭』有個大大3字.
| 旺角西洋菜街南1A號百寶利商業中心地下3及4號舖 |
| 彌敦道750號始創中心地下G07號舖 |
祗係两間舖冇貨,話係聖誕畀人搶矖,祇得係帮襯黃牛355蚊人仔,包順風寄埋上蒞.第日朝早送到.係3HK信封入面有張儲值卡.
| https://apkcombo.app/zh/my3/hk.com.three.my3plus/ |

生成手執標誌牌女仔. 之後嵌入文本.
| prompt | 咒詞 |
| 20yo, | 20歲 |
| score_9, | |
| score_8_up, | |
| score_7_up, | |
| shiny oild skin, | 油亮皮膚 |
| sweat, | 汗水 |
| upper_body, | 上身 |
| Pencil_skirt, | 短笔裙 |
| Miniskirt, | 迷理裙 |
| Office_lady, | 文秘 |
| Japan_girl, | |
| need_buzz, | |
| holding sign, | 持有標誌 |
| intricate detail, | 錯綜複雜細節 |
| \nworking, | n工作 |
| boss, | 老細 |
| super, | 超級 |
| office casual, | 辦公室休閒裝 |
| delicate patterns, | 精緻圖案 |
| black hair | 黑髮 |
| Long hair, | 長髮 |
| ban, | 禁令 |
| large breasts, | 大波 |
| nindoor, | |
| room, | 房 |
| interior, | 室內 |
| lights, | 燈 |
| \n(makeup, blush, shameful) | 化妝、臉紅、丟臉 |
| looking at viewer, | 著觀眾 |
| brown eyes, | 棕眼 |
| turn up eyes, | 抬起眼睛 |
| (open mouth:0.6), | 張嘴 |
| \n(best quality, masterpiece, intricate detail, beautiful artwork), | 最好質量、傑作、精緻細節、美麗藝術品 |
| <lora:need_buzz_sign:0.95> |
| 反向咒詞 | |
| zPDXL2, | |
| (man:2), |

鴨寮街Lucky2上網卡,冇電話冧靶,自然冇得接打電話,冇得收發短信.插卡後開通『數據漫遊』.即插即用吾使實名登記.
香港10GB高速數據,中台澳5GB高速數據.用曬後降為低速任用,即係365日冇限數據,鴨寮街價70蚊,SIM卡+卡針.
張卡用曬5GB高速後,低速後用吾够壹個月,張卡切底用吾到.
部主力機插左雙卡,手頭有部老竇舊手機,開熱點畀屋企手機電腦上網,等遲D先買插sim卡wifi郵路.實测youtube係畫質240p流畅.
電腦













滙豐『萬事達-扣賬卡Debit Card』係冇透支額度.吾會使大左还吾起畀滙豐罰息.
『扣賬卡』連接銀行户口,『購物』『網購』零手續費,係日本購物扣户口日元, 係美國購物扣户口美金, 户口冇美金扣港紙. 反而『信用卡』係海外購物要收匯價同手續費,
係滙豐提款機撳錢零手續費.它行撳錢要收25蚊,海外它行撳錢要收40蚊.撳翻蒞入去同樣吾得.
可以係開『滙豐One』果陳開埋. 冇開到係『HSBC HK』手機程式補申請.
『萬事達卡』可綁支付寶,但係唔滙得銀入去.『香港滙豐流動理財應用程式 』.
啟動『扣賬卡』


准备陸張靓女参考圖,3D模型未必能匹配参考圖.關鍵係3D模型外觀协調.
| 頭前視 | Head-Front |
| 頭側視 | Head-Side |
| 頭後視 | Head-Back |
| 身前視 | Body-Front |
| 身側視 | Body-Side |
| 身後視 | Body-Back |
係『Blender』加載前视側視参考圖.
利用『Stable Diffusion』生成靓女頭参考圖
| simple background,white background,1 girl,Bald head,Pretty girl, |
| Hair, |
利用『Stable Diffusion』生成靓女身参考圖
| 4k,simple background,white background,Bald head,brown eyes, 1 girl,large breasts,Pretty girl, Naked, |
| Hair, |














諗住係滙豐開立戶口,壹蒞草錢,貳蒞收息.開立『滙豐One』吾使畀低額結存服務費.銀行為吸引新錢入蒞.入錢吾過柒日計新錢,等捌日後計舊錢.新錢過2000蚊美金畀高息定期,舊錢冇高息定期,禮拜六日做吾到定期.怪吾得亞公亞婆袋住錢轉銀行入定期,慳番滙率兼净錢高息.
| 名稱 | The Hongkong and Shanghai Banking Corporation Limited |
| 香港辦事處地址 | 1 Queen’s Road Central, Hong Kong |
| SWIFT 代碼 | HSBCHKHHHKH |
| https://m.mobilex-static.hsbc.com.hk/apk/3.53.5/24121210/SIGNED_hk.com.hsbc.hsbchkmobilebanking.apk |
『預約會面』
| https://forms.hsbc.com.hk/zh-hk/forms/make-appointment/ |
『預約服務』
| https://www.eticketing.hsbc.com.hk/Booking/Index/TC |

Blender-免費3D動畫
上世紀未荷蘭國森仔創立NEOGEO動畫獲得成功, 攬大沙炮創立NaN開發Blender. 冇两年𢴇笠收場.後蒞森仔創立Blender基金,以開源形式令Blender得以生存.
係『Blender』官網『https://www.blender.org/』下載.
| blender-4.3.0-windows-x64.msi |
| blender-4.2.4-windows-x64.msi |
『玩轉Blender-3D動畫角色創作(第3版)』配套資源,可係下面連接下載.下載後重命名『Learning-Blender-Production-Files-3rd-Edition.zip』,用『7-Zip』解壓.
| https://www.dropbox.com/scl/fi/szglgt5ipzt67ymkdysdn/Learning-Blender-Production-Files-3rd-Edition.zip?rlkey=n3m3ledcegp54moimge8nk0sh&dl=1 |
硬片要求

加時電腦腦冇配DVD,機箱冇5.25寸口,取而代之係家用NAS伺服機,16TB容量够存幾千DVD碟.用『FFmpeg』將DVD入面VOB轉MP4. 例
| G:\VIDEO_TS\VTS_01_1.VOB |
| ffmpeg -i G:\VIDEO_TS\VTS_01_1.VOB -c:v libx265 -c:a aac -preset medium -crf 23 D:\OUTPUT.MP4 |
| ffmpeg -i G:\VIDEO_TS\VTS_01_1.VOB -c:v h264_nvenc -c:a aac -preset medium -crf 23 D:\OUTPUT.MP4 |
用上面指令,壓肆條片, 『H.254』畀『H.265』大肆倍.
| H.254 | H.265 | 片長 | |
| 小念頭.MP4 | 660 MB | 119 MB | 46:11 |
| 木人桩.MP4 | 669 MB | 114 MB | 43:44 |
| 尋橋.MP4 | 783 MB | 142 MB | 51:08 |
| 標指.MP4 | 770 MB | 132 MB | 50:23 |
| 参式簡介 | |
| -i | 輸入檔 |
| -c:v | 視頻編碼 |
| -c:a | 音頻編碼 |
| -preset | 编码速度和质量 |
| -crf | 視頻編碼質量 |
| 視頻編碼 -c:v | |
| flv | 速度快,視頻文檔大 |
| vp6 | |
| libx264 | 同等清晰度下,视频文檔細,缺点係转换慢. |
| h264_qsv | Intel-GPU 硬件编码 |
| h264_nvenc | NVIDIA-GPU 硬件编码 |
| h264_amf | AMD-GPU 硬件编码 |
| h264_vaapi | Intel AMD NVIDIA-GPU硬件编码 |
| libx265 | 比264壓缩仲高 |
| 音頻編碼 -c:a | |
| mp3 | 速度快,視頻文檔大 |
| aac | 比MP3音檔細30% |
| 編碼 -preset | 编码速度和质量之间权衡 |
| ultrafast | 編碼速度最快,輸出質量最較低。 |
| superfast | 編碼速度飛快 |
| veryfast | 編碼速度飛快 |
| faster | 編碼速度較快 |
| fast | 編碼速度較快 |
| medium | 默認預設,平衡編碼速度和質量 |
| slow | 編碼速度較慢,輸出質量較高. |
| slower | 編碼速度更慢,輸出質量更高. |
| veryslow | 編碼速度最慢,輸出質量最高. |
| 視頻編碼質量-crf | |
| 0 | 無損壓縮 質量最高 文檔最大 |
| 18 | 視覺無損 質量非常高 文檔大細適中 |
| 23 | 默認值 平衡質量和文檔大細 |
| 51 | 質量最低 文檔最小 |

𢴇行『.sh1』脚本用『PowerShell』.默認执行策略『AllSigned』𢴇行『.sh1』冇反應阻止脚本𢴇行.
改為『RemoteSigned』允許𢴇行『.sh1』脚本.
| C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe |
| get-ExecutionPolicy |
| set-ExecutionPolicy RemoteSigned |
| get-ExecutionPolicy |




ebsynth-utility短片轉動畫,係開工之前,需准备架餐.
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\input |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\input\model.mp4 |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\input\model.mp4 |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output\video_frame |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output\video_mask |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output\video_key |
| Masterpiece,Ultra high res,High quality,4k,(Photorealistic:1.2),Photo,Miniskirt,Breasts,large breasts,Navel,Lace, |
| (worst quality:2), (low quality:2), (normal quality:2),lowres,((monochrome)),((grayscale)), (monochrome), skin spots, acnes, skin blemishes, age spot, glans,extra limbs,extra arms,extra legs,extra leg,extra foot,extra fingers,fewer fingers,strange fingers,missing arms,missing legs,missing fingers,fused fingers,too many fingers,bad hand,(bad_prompt:0.8), bad anatomy,bad hands, bad feet,bad body,bad proportions,gross proportions,DeepNegative,(fat:1.2),looking away,tilted head,{Multiple people},text,error,extra digit,fewer digits,cropped,jpeg artifacts,signature,watermark,username,blurry,cropped,poorly drawn hands,poorly drawn face,mutation,deformed,malformed limbs,long neck,cross-eyed,mutated hands,polar lowres, |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output\img2img_key |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output\img2img_key |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\output\img2img_upscale_key |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\xxxxx.ebs |
| Z:\Bookcard\Stable-Diffusion-ebsynth-utility\out-… |
| 正面咒詞 | 譯 |
| Masterpiece, | 傑作 |
| Ultra high res, | 超高解像 |
| High quality, | 高品質 |
| 4k, | 4k |
| (Photorealistic:1.2), | 真實感 |
| Photo, | 相片 |
| Miniskirt, | 迷你裙 |
| Breasts, | 胸部 |
| large breasts, | 大乳 |
| Navel, | 肚臍 |
| Lace, | 蕾絲 |
| WHITE LACE, | 白色蕾絲 |
| a girl with Tulle skirt, | 薄紗裙 |
| a girl with Lace blouse, | 蕾絲襯衫 |
| 反向咒語Negative Prompt | 簡述 |
| (worst quality:2), | 低質內容 |
| (low quality:2), | 低質內容 |
| (normal quality:2), | 低質內容 |
| lowres, | 低質內容 |
| ((monochrome)), | 黑白 |
| ((grayscale)), | 灰階 |
| (monochrome), | 單色 |
| skin spots, | 皮膚斑點 |
| acnes, | 痤瘡 |
| skin blemishes, | 皮膚瑕疵 |
| age spot, | 老人斑 |
| glans, | 龜頭 |
| extra limbs, | 多餘肢體 |
| extra arms, | 額外武器 |
| extra legs, | 多餘腳瓜瓤 |
| extra leg, | 多餘腳瓜瓤, |
| extra foot, | 多餘腳掌 |
| extra fingers, | 手指太多 |
| fewer fingers, | 手指更少 |
| strange fingers, | 怪手指 |
| missing arms, | 缺手瓜 |
| missing legs, | 缺腳瓜瓤 |
| missing fingers, | 缺手指 |
| fused fingers, | 融合手指 |
| too many fingers, | 手指太多 |
| bad hand, | 歪手 |
| (bad_prompt:0.8), | 不良提示 |
| bad anatomy, | 解剖不良 |
| bad hands, | 歪手 |
| bad feet, | 脚 |
| bad body, | 歪身歪勢, |
| bad proportions, | 身體比例差, |
| gross proportions, | 總比例 |
| DeepNegative, | 深度負面 |
| (fat:1.2), | 脂肪 |
| looking away, | 睇向別處 |
| tilted head, | 側頭 |
| {Multiple people}, | 多人 |
| text, | 文字 |
| error, | 錯字 |
| extra digit, | 額外數字 |
| fewer digits, | 細數 |
| cropped, | 裁剪 |
| jpeg artifacts, | 壓縮痕跡 |
| signature, | 簽名 |
| watermark, | 水印 |
| username, | 身份 |
| blurry, | 模糊 |
| cropped, | 裁剪 |
| poorly drawn hands, | 手畫得吾靚 |
| poorly drawn face, | 樣畫得吾靚 |
| mutation, | 突變 |
| deformed, | 變形 |
| malformed limbs, | 肢體畸形 |
| long neck, | 長頸 |
| cross-eyed, | 鬥雞眼 |
| mutated hands, | 手型變異 |
| polar lowres, | 極地低氣壓 |

Ebsynth Utility係Ebsynth 配套『Stable Diffusion』插件. 將短片分割幀,利用貳次元模型進行風格轉换.
| https://github.com/s9roll7/ebsynth_utility.git |
下載插件:
| https://github.com/Mikubill/sd-webui-controlnet.git |
| C:\stable-diffusion-webui\extensions\ebsynth_utility |
| C:\stable-diffusion-webui\tmp\ebsynth_utility |

神器『EbSynth』係两關鍵幀之間插值生成過渡幀,登入官網『https://ebsynth.com/』撳『Download』鍵.
| https://ebsynth.com/EbSynth-Beta-Win.zip |

『transparent-background』自動分離人像同背景,再生成遮罩,冇需人手干預.
| https://github.com/plemeri/transparent-background |
登入『命令行模式CMD』, 進入資料夾Python.
| CD C:\Program Files\Python310\ |
下載安裝『transparent-background』1.3.2版,
| python.exe -m pip install transparent-background==1.3.2 |
裝1.3.3版係產生’fast’錯設
| remover = Remover(fast=tb_use_fast_mode, jit=tb_use_jit, device=devices.get_optimal_device_name()) TypeError: Remover.init() got an unexpected keyword argument ‘fast’ |
卸裝『transparent-background』
| pip uninstall transparent-background |
可能需要更新python
| python.exe -m pip install –upgrade pip |
顯列python安装包及版本號.
| Pip list |
下載模型『ckpt_base.pth』『ckpt_fast.pth』『ckpt_base_nightly.pth』
下載後擺係『C:\Users\user.transparent-background』
佢有圖形版『transparent-background-gui.exe』壹建生成遮罩.
| C:\Program Files\Python310\Scripts\transparent-background-gui.exe |
如果『pydantic』報錯可先卸载後重装
| ImportError: cannot import name ‘ValidationInfo’ from ‘pydantic’ (C:\Users\bookc\AppData\Roaming\Python\Python310\site-packages\pydantic\__init__.cp310-win_amd64.pyd) |
先卸载『pydantic』
| python.exe -m pip uninstall pydantic |
後重装『pydantic』
| python.exe -m pip install pydantic==1.8.1 |

| https://ffmpeg.org/download.html |
| https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip |
| C:\ffmpeg-master-latest-win64-gpl\bin |
三大神器
| ffmpeg.exe | 音影轉碼 |
| ffplay.exe | 播放機 |
| ffprobe.exe | 多媒体码流分析 |
添增環境路徑.
| C:\ffmpeg-master-latest-win64-gpl\bin |
『nvidia 2080ti』吾支持半精度類型, 早知買『nvidia 3090ti』
| modules.devices.NansException: A tensor with NaNs was produced in Unet. This could be either because there’s not enough precision to represent the picture, or because your video card does not support half type. Try setting the “Upcast cross attention layer to float32” option in Settings > Stable Diffusion or using the –no-half commandline argument to fix this. Use –disable-nan-check commandline argument to disable this check. |
| A tensor with all NaNs was produced in VAE.
Web UI will now convert VAE into 32-bit float and retry. To disable this behavior, disable the ‘Automatically revert VAE to 32-bit floats’ setting. To always start with 32-bit VAE, use –no-half-vae commandline flag. |
另壹條橋係加入命令行參數
| webui-user.bat |
| set COMMANDLINE_ARGS= –no-half –no-half-vae –disable-nan-check |
| –no-half-vae | 吾將VAE模型切換成16bit浮點數 |
| –no-half | 吾將模型切換成16bit浮點數 |
| –disable-nan-check | 吾檢查生成圖像潛在空間是否包含nan值,係持續集成中運行時無需檢查點 |

『Openpose』直接控制姿势同埋表情.對人像動作控制大大提升.
首先獲得骨架姿勢『pose.json』
依據骨架生成圖畫.
| 正向咒語Prompt | 簡述 |
| 1girl, | 1女 |
| solo, | 獨奏 |
| long hair, | 長髮 |
| breasts, | 乳房 |
| towel, | 毛巾 |
| cleavage, | 卵裂 |
| very long hair, | 很長頭髮 |
| naked towel, | 裸毛巾 |
| brown eyes, | 棕色眼睛 |
| large breasts, | 大乳 |
| hair between eyes, | 眼睛之間頭髮 |
| upper body, | 上身 |
| looking at viewer, | 看著觀眾 |
| bangs, | 劉海 |
| bare shoulders, | 裸肩 |
| tile wall, | 瓷磚牆 |
| collarbone, | 鎖骨 |
| brown hair, | 棕髮 |
| indoors, | 室內 |
| parted lips, | 張開嘴唇 |
| ahoge, | 啊 |
| 反向咒語Negative Prompt | 簡述 |
| (worst quality:2), | 低質內容 |
| (low quality:2), | 低質內容 |
| (normal quality:2), | 低質內容 |
| lowres, | 低質內容 |
| ((monochrome)), | 黑白 |
| ((grayscale)), | 灰階 |
| (monochrome), | 單色 |
| skin spots, | 皮膚斑點 |
| acnes, | 痤瘡 |
| skin blemishes, | 皮膚瑕疵 |
| age spot, | 老人斑 |
| glans, | 龜頭 |
| extra limbs, | 多餘肢體 |
| extra arms, | 額外武器 |
| extra legs, | 多餘腳瓜瓤 |
| extra leg, | 多餘腳瓜瓤, |
| extra foot, | 多餘腳掌 |
| extra fingers, | 手指太多 |
| fewer fingers, | 手指更少 |
| strange fingers, | 怪手指 |
| missing arms, | 缺手瓜 |
| missing legs, | 缺腳瓜瓤 |
| missing fingers, | 缺手指 |
| fused fingers, | 融合手指 |
| too many fingers, | 手指太多 |
| bad hand, | 歪手 |
| (bad_prompt:0.8), | 不良提示 |
| bad anatomy, | 解剖不良 |
| bad hands, | 歪手 |
| bad feet, | 脚 |
| bad body, | 歪身歪勢, |
| bad proportions, | 身體比例差, |
| gross proportions, | 總比例 |
| DeepNegative, | 深度負面 |
| (fat:1.2), | 脂肪 |
| looking away, | 睇向別處 |
| tilted head, | 側頭 |
| {Multiple people}, | 多人 |
| text, | 文字 |
| error, | 錯字 |
| extra digit, | 額外數字 |
| fewer digits, | 細數 |
| cropped, | 裁剪 |
| jpeg artifacts, | 壓縮痕跡 |
| signature, | 簽名 |
| watermark, | 水印 |
| username, | 身份 |
| blurry, | 模糊 |
| cropped, | 裁剪 |
| poorly drawn hands, | 手畫得吾靚 |
| poorly drawn face, | 樣畫得吾靚 |
| mutation, | 突變 |
| deformed, | 變形 |
| malformed limbs, | 肢體畸形 |
| long neck, | 長頸 |
| cross-eyed, | 鬥雞眼 |
| mutated hands, | 手型變異 |
| polar lowres, | 極地低氣壓 |
| https://github.com/huchenlei/sd-webui-openpose-editor.git |

『Stable Diffusion』真人改動畫, 重點係揀適合模型,同埋設較細重绘幅度.
| 正向咒語Prompt | 簡述 |
| 1girl, | 1女 |
| solo, | 獨奏 |
| long hair, | 長髮 |
| breasts, | 乳房 |
| towel, | 毛巾 |
| cleavage, | 卵裂 |
| very long hair, | 很長頭髮 |
| naked towel, | 裸毛巾 |
| brown eyes, | 棕色眼睛 |
| large breasts, | 大乳 |
| hair between eyes, | 眼睛之間頭髮 |
| upper body, | 上身 |
| looking at viewer, | 看著觀眾 |
| bangs, | 劉海 |
| bare shoulders, | 裸肩 |
| tile wall, | 瓷磚牆 |
| collarbone, | 鎖骨 |
| brown hair, | 棕髮 |
| indoors, | 室內 |
| parted lips, | 張開嘴唇 |
| ahoge, | 啊 |
| 反向咒語Negative Prompt | 簡述 |
| (worst quality:2), | 低質內容 |
| (low quality:2), | 低質內容 |
| (normal quality:2), | 低質內容 |
| lowres, | 低質內容 |
| ((monochrome)), | 黑白 |
| ((grayscale)), | 灰階 |
| (monochrome), | 單色 |
| skin spots, | 皮膚斑點 |
| acnes, | 痤瘡 |
| skin blemishes, | 皮膚瑕疵 |
| age spot, | 老人斑 |
| glans, | 龜頭 |
| extra limbs, | 多餘肢體 |
| extra arms, | 額外武器 |
| extra legs, | 多餘腳瓜瓤 |
| extra leg, | 多餘腳瓜瓤, |
| extra foot, | 多餘腳掌 |
| extra fingers, | 手指太多 |
| fewer fingers, | 手指更少 |
| strange fingers, | 怪手指 |
| missing arms, | 缺手瓜 |
| missing legs, | 缺腳瓜瓤 |
| missing fingers, | 缺手指 |
| fused fingers, | 融合手指 |
| too many fingers, | 手指太多 |
| bad hand, | 歪手 |
| (bad_prompt:0.8), | 不良提示 |
| bad anatomy, | 解剖不良 |
| bad hands, | 歪手 |
| bad feet, | 脚 |
| bad body, | 歪身歪勢, |
| bad proportions, | 身體比例差, |
| gross proportions, | 總比例 |
| DeepNegative, | 深度負面 |
| (fat:1.2), | 脂肪 |
| looking away, | 睇向別處 |
| tilted head, | 側頭 |
| {Multiple people}, | 多人 |
| text, | 文字 |
| error, | 錯字 |
| extra digit, | 額外數字 |
| fewer digits, | 細數 |
| cropped, | 裁剪 |
| jpeg artifacts, | 壓縮痕跡 |
| signature, | 簽名 |
| watermark, | 水印 |
| username, | 身份 |
| blurry, | 模糊 |
| cropped, | 裁剪 |
| poorly drawn hands, | 手畫得吾靚 |
| poorly drawn face, | 樣畫得吾靚 |
| mutation, | 突變 |
| deformed, | 變形 |
| malformed limbs, | 肢體畸形 |
| long neck, | 長頸 |
| cross-eyed, | 鬥雞眼 |
| mutated hands, | 手型變異 |
| polar lowres, | 極地低氣壓 |
继『Stable Diffusion 2.1』後推出『Stable Diffusion XL1.0』升级版,分三版『Base』『refiner』『turbo』.適用於『AUTOMATIC1111』
| https://huggingface.co/stabilityai?search_models=xl |
下載 XL 模型
擺係
| C:\stable-diffusion-webui\models\Stable-diffusion |
下載VAE模型
| https://huggingface.co/stabilityai/sdxl-vae/resolve/main/sdxl_vae.safetensors?download=true |
擺係
| C:\stable-diffusion-webui\models\VAE |
下載LORA模型
| https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors?download=true |
擺係
| C:\stable-diffusion-webui\models\Lora |
| SDXL 1.0 模型 | 簡述 |
| sd_xl_base_1.0.safetensors | base模型 |
| sd_xl_base_1.0_0.9vae.safetensors | base模型內置 VAE |
| sd_xl_refiner_1.0.safetensors | refiner模型 |
| sd_xl_refiner_1.0_0.9vae.safetensors | refiner模型內置 VAE |
| sd_xl_turbo_1.0.safetensors | turbo模型 |
| sd_xl_turbo_1.0_fp16.safetensors | turbo模型內置 VAE |
| sdxl_vae.safetensors | 外置VAE模型 |
| sd_xl_offset_example-lora_1.0.safetensors | lora模型 |
Nvidia-2080ti吾支持float16精度,彈出警示.
| A tensor with all NaNs was produced in VAE.
Web UI will now convert VAE into 32-bit float and retry. To disable this behavior, disable the ‘Automatically revert VAE to 32-bit floats’ setting. To always start with 32-bit VAE, use –no-half-vae commandline flag. |
| webui-user.bat |
| set COMMANDLINE_ARGS= –no-half-vae |
| –no-half-vae | 吾將VAE模型轉換為float-16bit半精度 |
| –no-half | 吾將模型轉換為float-16bit半精度 |
| –disable-nan-check | 吾檢查生成圖像/潛在空間是否包含nan值,在持續集成中運行時無需檢查點 |
| 正咒詞 | |
| looking at viewer, | 睇著觀眾 |
| making eye contact, | 眼神交流 |
| a girl with Tulle skirt, | 薄紗裙 |
| a girl with Lace blouse, | 蕾絲襯衫 |
| a girl Sequin dress, | 亮片裙 |
| Volumetric Lighting, | 體積照明 |
| light depth, | 光深度 |
| flower | 花 |
| beautiful lighting, | |
| Double Exposure Style, | 雙重曝光風格 |
| Traditional Attire, | 傳統服飾 |
| Artistic Calligraphy and Ink, | 書法與水墨藝術 |
| dramatic atmospheric lighting, | 戲劇氛圍照明 |
| Volumetric Lighting, | 體積照明 |
| double image ghost effect, | 雙影像重影效果 |
| image combination, | 影像組合 |
| double exposure style, | 雙重曝光風格 |
| 1girl, | 1女孩, |
| solo, | 獨奏, |
| long hair, | 長髮 |
| breasts, | 乳房 |
| towel, | 毛巾 |
| cleavage, | 卵裂 |
| very long hair, | 長髮 |
| naked towel, | 裸毛巾 |
| brown eyes, | 棕眼 |
| large breasts, | 大乳房 |
| hair between eyes, | 眼睛之間頭髮 |
| upper body, | 上身 |
| looking at viewer, | 看著觀眾 |
| bangs, | 劉海 |
| bare shoulders, | 裸露肩膀 |
| collarbone, | 鎖骨 |
| brown hair, | 棕髮 |
| indoors, | 室內 |
| parted lips, | 張開嘴唇 |
| 反咒詞 | |
| ugly, | 醜陋 |
| deformed, | 變形 |
| noisy, | 嘈雜 |
| blurry, | 模糊 |
| low contrast, | 低對比度 |



『4x-UltraSharp』比『R-ESRGAN General 4xV3』放大效果仲清晰.冇損逼真放大.
| https://huggingface.co/lokCX/4x-Ultrasharp/resolve/main/4x-UltraSharp.pth?download=true |
| https://huggingface.co/lokCX/4x-Ultrasharp/tree/main |
| C:\stable-diffusion-webui\models\ESRGAN |

VAE模型用於修正圖畫色彩,『none冇』VAE模型色彩平淡,指定VAE模型後色彩鮮豔,光影分明.
VAE模型擺係
| C:\stable-diffusion-webui\models\VAE |
係『Stable Diffusion WEBUI』頁頂添加快速設定清單.
| [info] Quicksettings list (setting entries that appear at the top of page rather than in settings tab) (requires Reload UI) |
| sd_model_checkpoint sd_vae |







『Stable Diffusion』真人改動畫, 重點係揀適合模型,同埋設較細重绘幅度.
| 正向咒語Prompt | 簡述 |
| 1girl, | |
| arm support, | |
| black skirt, | |
| breasts, | |
| brown eyes, | |
| cleavage, | |
| jacket, | |
| lips, | |
| long hair, | |
| looking at viewer, | |
| open clothes, | |
| pencil skirt, | |
| shirt, | |
| sitting, | |
| skirt, | |
| smile, | |
| solo |
| 反向咒語Negative Prompt | 簡述 |
| (worst quality:2), | 低質內容 |
| (low quality:2), | 低質內容 |
| (normal quality:2), | 低質內容 |
| lowres, | 低質內容 |
| ((monochrome)), | 黑白 |
| ((grayscale)), | 灰階 |
| (monochrome), | 單色 |
| skin spots, | 皮膚斑點 |
| acnes, | 痤瘡 |
| skin blemishes, | 皮膚瑕疵 |
| age spot, | 老人斑 |
| glans, | 龜頭 |
| extra limbs, | 多餘肢體 |
| extra arms, | 額外武器 |
| extra legs, | 多餘腳瓜瓤 |
| extra leg, | 多餘腳瓜瓤, |
| extra foot, | 多餘腳掌 |
| extra fingers, | 手指太多 |
| fewer fingers, | 手指更少 |
| strange fingers, | 怪手指 |
| missing arms, | 缺手瓜 |
| missing legs, | 缺腳瓜瓤 |
| missing fingers, | 缺手指 |
| fused fingers, | 融合手指 |
| too many fingers, | 手指太多 |
| bad hand, | 歪手 |
| (bad_prompt:0.8), | 不良提示 |
| bad anatomy, | 解剖不良 |
| bad hands, | 歪手 |
| bad feet, | 脚 |
| bad body, | 歪身歪勢, |
| bad proportions, | 身體比例差, |
| gross proportions, | 總比例 |
| DeepNegative, | 深度負面 |
| (fat:1.2), | 脂肪 |
| looking away, | 睇向別處 |
| tilted head, | 側頭 |
| {Multiple people}, | 多人 |
| text, | 文字 |
| error, | 錯字 |
| extra digit, | 額外數字 |
| fewer digits, | 細數 |
| cropped, | 裁剪 |
| jpeg artifacts, | 壓縮痕跡 |
| signature, | 簽名 |
| watermark, | 水印 |
| username, | 身份 |
| blurry, | 模糊 |
| cropped, | 裁剪 |
| poorly drawn hands, | 手畫得吾靚 |
| poorly drawn face, | 樣畫得吾靚 |
| mutation, | 突變 |
| deformed, | 變形 |
| malformed limbs, | 肢體畸形 |
| long neck, | 長頸 |
| cross-eyed, | 鬥雞眼 |
| mutated hands, | 手型變異 |
| polar lowres, | 極地低氣壓 |

利用遮罩替换背景
| 正面咒詞 | 譯 |
| Masterpiece, | 傑作 |
| Ultra high res, | 超高解像 |
| High quality, | 高品質 |
| 4k, | 4k |
| (Photorealistic:1.2), | 真實感 |
| Photo, | 相片 |
| No humans, | 冇人 |
| Classroom, | 課室 |
| Indoors, | 室内 |
| 反向咒語Negative Prompt | 簡述 |
| sketches, | 速寫,素描 |
| ( (monochrome) ), ( (greyscale) ), | 黑白,灰階 |
| facing away,
looking away, |
人面避開,
眸目避開 |
| (Text:4),error,extra digit,fewer digits, | 文字,錯字,額外數字,細數 |
| cropped,jpeg artifacts,blurry, | 裁剪,壓縮痕跡,模糊, |
| signature,watermark,username, | 簽名,水印,身份, |
| (worst quality:2),(low quality:2),(normal quality:2), (lowers), (normal quality), | 低質內容 |
| bad anatomy,
bad body, bad hands, extra limbs, extra legs, extra foot, extra arms, (too many fingers:2), malformed limbs, (fused fingers:2), long neck, bad proportions, missing arms, missing legs, missing fingers, |
歪身體構造,
歪身歪勢, 歪手, 多餘肢體, 多餘腳瓜瓤, 多餘腳掌, 額外武器, 手指太多, 畸形肢體, 融合手指, 長頸, 身體比例差, 缺手瓜, 缺腳瓜瓤, 缺手指, |
| Bad-artist, | 衰明星 |
| Bad-artist-anime, | 衰動漫明星 |
| Bad-prompt_version, | 恶意版本2 |
| Badhand, | 坏人 |
| Easynegative, | 易阴性 |
| Ng_deepnegative, | Ng_deepnegative |

Facebook开發『segment anything model』(SAM) 畫面識認,帮『ControlNet/Inpaint』重绘生成遮罩,重畫前後景,此版適合『Automatic1111’s WebUI』.
| https://github.com/continue-revolution/sd-webui-segment-anything/archive/refs/heads/master.zip |
| https://github.com/continue-revolution/sd-webui-segment-anything |
| https://github.com/continue-revolution/sd-webui-segment-anything.git |
| CD C:\stable-diffusion-webui\extensions\ |
| git clone https://github.com/continue-revolution/sd-webui-segment-anything.git |
| C:\stable-diffusion-webui\extensions\sd-webui-segment-anything |
| C:\stable-diffusion-webui\tmp\sd-webui-segment-anything |
手工下載模型『segment anything model』越大越确.
| https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth |
| https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth |
| https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth |
| https://huggingface.co/lkeab/hq-sam/resolve/main/sam_hq_vit_h.pth |
| https://huggingface.co/lkeab/hq-sam/resolve/main/sam_hq_vit_l.pth |
| https://huggingface.co/lkeab/hq-sam/resolve/main/sam_hq_vit_b.pth |
擺係sam資料夾.
| C:\stable-diffusion-webui\extensions\sd-webui-segment-anything\models\sam |
手工下載GroundingDINO模型
| https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/GroundingDINO_SwinB.cfg.py?download=true |
| https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/GroundingDINO_SwinT_OGC.cfg.py?download=true |
| https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/groundingdino_swinb_cogcoor.pth?download=true |
| https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/groundingdino_swint_ogc.pth?download=true |
擺係grounding-dino資料夾.
| C:\stable-diffusion-webui\extensions\sd-webui-segment-anything\models\grounding-dino |



上次『Inpaint』除水印,適用於颜色單調圖.層次豐富用『sd-webui-cleaner』插件. 此版適合『Automatic1111’s WebUI』.
『URL for extension’s git repository』填
『https://github.com/novitalabs/sd-webui-cleaner.git』
| https://github.com/novitalabs/sd-webui-cleaner.git |
| CD C:\stable-diffusion-webui\extensions\ |
| https://codeload.github.com/novitalabs/sd-webui-cleaner/zip/refs/heads/main |
| python.exe -s -m pip install -r requirements.txt |
| https://huggingface.co/anyisalin/big-lama/resolve/main/big-lama.safetensors |
| C:\stable-diffusion-webui\extensions\sd-webui-cleaner\models |

『LoRA』(Low-Rank Adaptation)模型,擴展名同樣係『.safetensors』.基於基礎模型訓練,作為基礎模型補充,大细係幾拾兆之間.係吾修改基礎模型,用小量數據訓練出獨特畫風模型.
『LoRA』模型擺係『C:\stable-diffusion-webui\models\Lora』後.帮『LoRA』模型添加封面,圖檔名與模型名壹致,同『LoRA』模型擺係壹起,撳『refresh page』刷新.
係『civitai.com』封面圖左上角會標『LoRA』字樣.
| https://civitai.com/ |
撳『LoRA』模型自動添加咒詞.且可叠加,并設權重.初始值1.
| <lora:模型名:權重值> |
| <lora:hina:1> |
| 模型 | 位置 |
| 基礎模型 | C:\stable-diffusion-webui\models\Stable-diffusion |
| LoRA模型 | C:\stable-diffusion-webui\models\Lora |
| LoRA模型 | Lora_model.safetensors |
| 封面圖 | Lora_model.png |

用AI改圖背景,用photoshop做『蒙板』,限黑白孖色,背景填充白色,人像填充黑色.
| 正面咒詞 | 譯 |
| Masterpiece, | 傑作 |
| Ultra high res, | 超高解像 |
| High quality, | 高品質 |
| 4k, | 4k |
| (Photorealistic:1.2), | 真實感 |
| Photo, | 相片 |
| No humans, | 冇人 |
| Japanese stairs, | 日本樓梯 |
| flower | 日本建筑 |
| japanese architecture, | 日本建筑 |
| Japanese Street | 日本街道 |
| Indoors, | 室内 |
| Outdoors, | 戶外 |
| Scenery, | 風景 |
| Tree, | 樹 |
| Sky, | 天 |
| Cloud, | 雲 |
| Day, | 日頭 |
| Rock, | 岩石 |
| Mountain, | 山 |
| Grass, | 草 |
| Water, | 水 |
| River, | 河 |
| Blue sky, | 藍天 |
| Reflection, | 水映 |
| Building, | 建筑 |
| Architecture, | 建筑風格 |
| House, | 别墅 |
| Bridge, | 桥 |
| Pond, | 池塘 |
| Cast Asian architecture, | 亚洲建筑 |
| Cloudy sky, | 多云天空 |
| 反向咒語Negative Prompt | 簡述 |
| sketches, | 速寫,素描 |
| ( (monochrome) ), ( (greyscale) ), | 黑白,灰階 |
| facing away,
looking away, |
人面避開,
眸目避開 |
| (Text:4),error,extra digit,fewer digits, | 文字,錯字,額外數字,細數 |
| cropped,jpeg artifacts,blurry, | 裁剪,壓縮痕跡,模糊, |
| signature,watermark,username, | 簽名,水印,身份, |
| (worst quality:2),(low quality:2),(normal quality:2), (lowers), (normal quality), | 低質內容 |
| bad anatomy,
bad body, bad hands, extra limbs, extra legs, extra foot, extra arms, (too many fingers:2), malformed limbs, (fused fingers:2), long neck, bad proportions, missing arms, missing legs, missing fingers, |
歪身體構造,
歪身歪勢, 歪手, 多餘肢體, 多餘腳瓜瓤, 多餘腳掌, 額外武器, 手指太多, 畸形肢體, 融合手指, 長頸, 身體比例差, 缺手瓜, 缺腳瓜瓤, 缺手指, |
| Bad-artist, | 衰明星 |
| Bad-artist-anime, | 衰動漫明星 |
| Bad-prompt_version, | 恶意版本2 |
| Badhand, | 坏人 |
| Easynegative, | 易阴性 |
| Ng_deepnegative, | Ng_deepnegative |

咒詞反推『Clip』同『DeepBooru』之外,仲有『WD 1.4 Tagger』, 生成咒詞并以權重排序.排前權重高排後權重低.此版適合『Automatic1111’s WebUI』.
| https://github.com/picobyte/stable-diffusion-webui-wd14-tagger.git |
| CD C:\stable-diffusion-webui\extensions\ |
| git clone https://github.com/picobyte/stable-diffusion-webui-wd14-tagger.git |
| C:\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger |
| C:\stable-diffusion-webui\tmp\stable-diffusion-webui-wd14-tagger |
| CD C:\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger |
| python.exe -s -m pip install -r requirements.txt |
批量生成咒詞.
| Interrogate image | 反推圖畫 |
| Ratings and included tags | 評級標簽 |
| Excluded tags | 排除標簽 |
| https://github.com/KichangKim/DeepDanbooru/releases |
| https://discord.gg/BDFpq9Yb7K |
| C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v1-20191108-sgd-e30 |
| C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v3-20200101-sgd-e30 |
| C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v3-20200915-sgd-e30 |
| C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v3-20211112-sgd-e28 |
| C:\stable-diffusion-webui\models\deepdanbooru\deepdanbooru-v4-20200814-sgd-e30 |
| C:\stable-diffusion-webui\extensions\ stable-diffusion-webui-wd14-tagger \models |
| https://huggingface.co/SmilingWolf/wd-vit-tagger-v3 |
| https://huggingface.co/SmilingWolf/wd-swinv2-tagger-v3 |
| https://huggingface.co/SmilingWolf/wd-convnext-tagger-v3 |
| https://huggingface.co/SmilingWolf/wd-v1-4-moat-tagger-v2 |
| https://huggingface.co/SmilingWolf/wd-v1-4-convnextv2-tagger-v2 |
| https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger-v2 |
| https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger |
| https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger-v2 |
| https://huggingface.co/SmilingWolf/wd-v1-4-swinv2-tagger-v2 |
| https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger |
| wd-vit-tagger-v3.onnx |
| wd-vit-tagger-v3.csv |
| wd-swinv2-tagger-v3.onnx |
| wd-swinv2-tagger-v3.csv |
| wd-convnext-tagger-v3.onnx |
| wd-convnext-tagger-v3.csv |
| wd-v1-4-moat-tagger-v2.onnx |
| wd-v1-4-moat-tagger-v2.csv |
| wd-v1-4-convnextv2-tagger-v2.onnx |
| wd-v1-4-convnextv2-tagger-v2.csv |
| wd-v1-4-convnext-tagger-v2.onnx |
| wd-v1-4-convnext-tagger-v2.csv |
| wd-v1-4-convnext-tagger.onnx |
| wd-v1-4-convnext-tagger.csv |
| wd-v1-4-vit-tagger-v2.onnx |
| wd-v1-4-vit-tagger-v2.csv |
| wd-v1-4-swinv2-tagger-v2.onnx |
| wd-v1-4-swinv2-tagger-v2.csv |
| wd-v1-4-vit-tagger.onnx |
| wd-v1-4-vit-tagger.csv |

ONNX(Open Neural Network Exchange) 神經網络推理型模,支持『Python』同『C++』. 分『CPU』同『GPU』版.
裝ONNX Runtime-CPU版
| pip install onnxruntime |
裝ONNX Runtime-GPU版,適用cuda 11.x
| pip install onnxruntime-gpu |
裝ONNX Runtime-GPU版,適用cuda 12.x
| pip install onnxruntime-gpu –extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/ |

咒師經驗豐富可寫出契合貼近咒詞.『Stable Diffusion』內置『Clip』同埋『DeepBooru』.對『圖畫』分析反推算出咒詞.首次啟用需下載模型文檔.
新版『Stable Diffusion』『Clip』同『DeepBooru』缩細為两細圖標,係『img2img』->『Generate』下側. 『Clip』生成語句咒語,『DeepBooru』生成單詞咒詞效果更佳.
『Clip』反推下載『model_base_caption_capfilt_large.pth』
| https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_caption_capfilt_large.pth |
下載後擺係『C:\stable-diffusion-webui\models\BLIP\』
| C:\stable-diffusion-webui\models\BLIP\model_base_caption_capfilt_large.pth |
『DeepBooru』反推下載『model-resnet_custom_v3.pt』
| https://github.com/AUTOMATIC1111/TorchDeepDanbooru/releases/download/v1/model-resnet_custom_v3.pt |
下載後擺係『C:\stable-diffusion-webui\models\torch_deepdanbooru\』
| C:\stable-diffusion-webui\models\torch_deepdanbooru\model-resnet_custom_v3.pt |

『吉屋裝修』用『ControlNet』『MLSD直線』提取建筑直線幾何邊界,後重新上色.添刪咒詞控制屋內家私.
| Prompt | 正面咒詞 |
| Floor, | 地板 |
| High resolution, | 高解像 |
| Modern style, | 現代風格 |
| (window:1.3), | 窗門 |
| tv cabinet, | 電視櫃 |
| (Big tv:1.3), | 大電視 |
| (couch:1.5), | 瞓椅 |
| Ceiling lamp, | 吸頂燈 |
| (A set of sofas:2), | 沙發 |
| (A coffee table:2), | 咖啡臺 |
| 山水場景 | 簡述 |
| mountain, | 山 |
| On a hill, | 山上 |
| Valley, | 山谷 |
| The top of the hill, | 山頂 |
| Beautiful detailed sky,
Beautiful detailed water, |
天清水靚 |
| On the beach, | 海滩 |
| On the ocean, | 大海 |
| In a meadow, | 草原 |
| landscape, | 開闊風景 |
| Night, | 晚黑 |
| In the rain, | 雨中 |
| Rainy days, | 兩天 |
| cloudy, | 多雲 |
| Full moon, | 圓月 |
| cloud, | 雲 |
| moon, | 月球 |
| moonlight, | 月光 |
| 季節 | 簡述 |
| In spring, | 春 |
| In summer, | 夏 |
| In autumn, | 秋 |
| In winter, | 冬 |
| Negative prompt | 反向咒詞 |
| Easy Negative, | 易阴性 |
| low resolution, | 低像素 |
| Text, | 文字 |
| Error, | 錯字 |
| Extra digit, | 額外數位 |
| fewer digits, | 細數 |
| cropped, | 裁剪, |
| jpeg artifacts, | 壓縮痕跡, |
| blurry, | 模糊, |
| Cropped, | 裁剪 |
| blurry, | 模糊, |
| Signature, | 簽名 |
| watermark, | 水印 |
| Username, | 身份 |
| (worst quality:2) , | 質量差 |
| (low quality:2) , | 質量低 |
| (normal quality:2) , | 質量正常 |
| (lowers), | 低像素 |
| (plant:1.4), | 草木 |
| Nsfw, | Not Safe For Work,唔适宜係辦公場所睇. |



超微X10SDV簡化板,缺两個千兆口,有两個萬兆口.CPU係『D-1521』,插两條『32GB-2R*4』,著機自檢耐.
超微底板有5個藍色SATA口, 1個橙色SATA口. 仝供電有關.橙色SATA口吾使額外供電,靠第7PIN供電.藍色SATA口靠額外5V供電.
網卡芯片散熱阻擋M.2散熱,唯有用冇下托架散熱,用銅箔胶紙固定.
超微主板有前置面板插口,『超微機箱』皆有止插口Front panel Header.
有兩個『USB2.0-9Pin』,臺個左上邊,另臺個例右下邊.
祗适宜做NAS, 冇『USB3.0-19PIN』吾岩做Route.

本蒞諗住係『truenas』,用虛擬機装『Windows10』做『下載機』.實制未能充份利用CPU同Memory.更好係直接装『Windows10』.摆係角落用WIFI做冇線『下載機』.
配置都係淘汰件.最衰『ITX機箱』密吾透氣, 粒『XEON E5-2630LV3』係幾分鐘內超過壹百度.裝『AVC 9025』疏風.拆com口擋版透氣.裝『AVC 5020』直吹CPU.
| 下載機 | 配置 |
| 火牛 | 臺逵flex-500w |
| CPU | INTEL XEON E5-2630LV3 |
| CPU散熱 | SOCKET2011-纯銅散熱風扇 |
| CPU風扇 | AVC 5020 |
| 底板 | 雜牌X99-ITX |
| 機箱 | 3槽ITX機箱 |
| WIFI | Intel Wi-Fi 7 BE200 |
| Memory | SAMSUNG 32GB DDR4 2400T |
| HDD | SAMSUNG SM961 256GB |
| SSD | SAMSUNG 1000GB |
| 顯卡 | MSI GT710 1G |
| 下載機 | 配置 |
| 火牛 | 臺逵flex-500w |
| CPU | INTEL XEON E5-2630LV3 |
| CPU散熱 | SOCKET2011-纯銅散熱風扇 |
| CPU風扇 | AVC 4020 |
| 底板 | 雜牌X99-ITX |
| 機箱 | 3槽ITX機箱 |
| WIFI | Intel Wi-Fi 7 BE200 |
| Memory | SAMSUNG 32GB DDR4 2400T |
| HDD | SAMSUNG SM961 256GB |
| SSD | SAMSUNG 1000GB |
| 顯卡 | MSI GT710 1G |








係舊時網卡附有『3pin-WOL』插主板,實現『網絡喚醒』, 好彩依時主板附帶網口吾使『3pin-WOL』線. 『網絡喚醒』通過網線發送『喚醒魔術包』將『休眠』『睡眠』『閂機』電腦呌醒, 『閂機』後呌吾醒,可能Windows10電源管理引起.冇線WIFI吾得『網絡喚醒』,有線網卡先得『網絡喚醒』.
係主板BIOS設置『網絡喚醒』
Windows10網卡設置
Windows10電源選項,混合式關機停用 WOL.
Windows10電源選項
Windows10網絡喚醒
| 睡眠(S3) | |
| 休眠(S4) | |
| 關機(S5) |





臺『ITX機箱』密吾透氣,粒『XEON E5-2630LV3』係幾分鐘內超壹百度.之前買拆機銅底鋁片散熱,打印風扇支架.裝『AVC 5020』直吹CPU.冚埋盖免强吾死機.
係網買『AVC 5020』睇蒞係拆機,線極短. 標『0.25a』但係噪聲大.



上世紀末已有電腦摄像頭,一直冇買蒞玩,前排買過中古『Microsoft LifeCam Studio』條線根斷退貨.後蒞睇中Logitech摄像頭『MX BRIO』同『MX BRIO705 for Business』.包装吾同性能冇分别,
『MX BRIO』可用『Logi Options+』『Logitech G HUB』『Logi Tune』設置. 建議用『Logi Tune』.
壹定要插係『USB3.0-TYPE C』吾係吾上4K,『相片品質』『8.3MP 16:9(3840*2160)』, 『影片品質』『2160p 16:9(30fps)』.
插係『USB2.0』『相片品質』得翻『2.1MP 16:9(1920*1080)』,『影片品質』得翻『1080p 16:9(30fps)』.
| Logi Options+ |
| https://download01.logi.com/web/ftp/pub/techsupport/optionsplus/logioptionsplus_installer.exe |
| Logitech G HUB |
| https://download01.logi.com/web/ftp/pub/techsupport/gaming/lghub_installer.exe |
『MX BRIO705 for Business』要用『Logi Tune』.
| Logi Tune |
| https://software.vc.logitech.com/downloads/tune/LogiTuneInstall.exe |



雜牌ITX機箱買蒞諗住做『影音機』,肆面密吾透氣.得『4020風扇』抽風.貪佢有3條槽.
『RYZEN5-1500X』+『原裝幽靈風扇』仲免强頂得住. 換左『XEON E5-2630LV3』+『纯銅散熱』+『猫頭鷹NF-A6x25』慶過辣雞.幾分鐘內超百度.两粒U都係功耗60w,睇蒞此類機箱CPU極限60w.
加裝两個『AVC 9025』疏風.冚辦闌COM口擋版拆蒞透氣.裝埋『AVC 12025』直吹CPU.




使Windows10作為『網盤』『BT』下載機, 再蒞用『Microsoft 遠端桌面』
遠程控制下載機.
『下載機』開啟遠端桌面
『下載機』設定電源與睡眠









利用TrueNAS虛擬機装Windows10, 作為『網盤』『BT』下載機, 再蒞用 『Microsoft 遠端桌面』遠程控制下載機.
首先借『MediaCreationTool_22H2.exe』下載『Windows10-x64.iso』鏡像.
| https://www.microsoft.com/zh-hk/software-download/windows10 |
下載虛擬機驅動『Stable virtio-win.iso』
| https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md |
將『Windows10-x64.iso』同埋『virtio-win.iso』擺係NAS
| /mnt/pool0/dataset/ |
分配Windows10磁碟
設置網路
電腦要兩wlan網口,兩條網線.壹個畀『TrueNAS』『enp6s0』, 壹個畀『Win10』『enp5s0』.
設置虛擬機
挂載虛擬機驅動『virtio-win.iso』
著『Win10』虛擬機
装網卡驅程
但系點解吾直接裝Windows10充份利用CPU同Memory, 再蒞『Microsoft 遠端桌面』遠程控制下載機.
| CPU模式 | |
| Custom | 虛擬 CPU,性能相对差 |
| Host-model | |
| Host-passthrough | 物理CPU暴露畀虛擬機,虛擬機睇到物理CPU型號 |




新買『SEAGATE-16TB』同之前剩低两個组成raid0,插两『SEAGATE-16TB』. 同舊版本『trueNAS』有小小吾同.
通過網络訪問NAS『Sharing共用』
| Stripe | Raid0 |
| Mirror鏡像 | Raid1 |
| Raid-Z | Raid5 |


舊相掃描後微粒偏大.『Stable Diffusion』支持舊相冇損修复.
| 放大算法 | 效果 |
| Lanczos | 冇損高質放大算法 |
| Nearest | 傳統放大算法,去噪差,放大效果差, |
| BSRGAN | 細節佳,速度快,色彩暗 |
| ESRGAN_4x | 去噪差 |
| LDSR | 放大效果差 |
| R-ESRGAN 4x | 放大現實畫像效果佳 |
| R-ESRGAN 4x Anime6B | 放大動畫畫像效果佳 |
| ScuNET | 放大效果差 |
| ScuNET PSNR | 放大效果差 |
| SwinIR 4x | 放大效果差 |







『Stable Diffusion』繪畫動人興奮,玩真人改漫畫,用『ControlNet』『Canny』提取線稿,後重新上色.效果比手機,色彩轉真人改漫畫,高幾皮.
| 正向咒語Prompt | 簡述 |
| Masterpiece, | 傑作 |
| Ultra high res, | 超高解像 |
| High quality, | 高品質 |
| 4k, | 4k |
| (Photorealistic:1.2), | 真實感 |
| Photo, | 相片 |
| A beautiful girl, | 靚女 |
| 反向咒語Negative Prompt | 簡述 |
| sketches, | 速寫,素描 |
| ( (monochrome) ), ( (greyscale) ), | 黑白,灰階 |
| facing away,
looking away, |
人面避開,
眸目避開 |
| text,error,extra digit,fewer digits, | 文字,錯字,額外數字,細數 |
| cropped,jpeg artifacts,blurry, | 裁剪,壓縮痕跡,模糊, |
| signature,watermark,username, | 簽名,水印,身份, |
| (worst quality:2),(low quality:2),(normal quality:2), (lowers), (normal quality), | 低質內容 |
| bad anatomy,
bad body, bad hands, extra limbs, extra legs, extra foot, extra arms, (too many fingers:2), malformed limbs, (fused fingers:2), long neck, bad proportions, missing arms, missing legs, missing fingers, |
歪身體構造,
歪身歪勢, 歪手, 多餘肢體, 多餘腳瓜瓤, 多餘腳掌, 額外武器, 手指太多, 畸形肢體, 融合手指, 長頸, 身體比例差, 缺手瓜, 缺腳瓜瓤, 缺手指, |
| Bad-artist, | 衰明星 |
| Bad-artist-anime, | 衰動漫明星 |
| Bad-prompt_version, | 恶意版本2 |
| Badhand, | 坏人 |
| Easynegative, | 易阴性 |
| Ng_deepnegative, | Ng_deepnegative |

Stable_Diffusion_share
Stable Diffusion外網訪問–share
之前利用『–listen』係內網訪問『Stable Diffusion』電腦,利用『–share』係外網訪問『Stable Diffusion』.
| C:\stable-diffusion-webui\webui-user.bat |
| set COMMANDLINE_ARGS=–share |
| https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_windows_amd64.exe |
| C:\stable-diffusion-webui\venv\lib\site-packages\gradio |
| https://684da9579597aa77c4.gradio.live |
| 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_windows_amd64.exe |
| 2. Rename the downloaded file to: frpc_windows_amd64_v0.2 |
| 3. Move the file to this location: C:\stable-diffusion-webui\venv\lib\site-packages\gradio |
| This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces) |



『ControlNet』含『插件』『模型』分開下載.
『Stable Diffusion』裝『插件』需編輯『webui-user.bat』,加入命令行参式『–enable-insecure-extension-access』啟用插件訪問.
| C:\stable-diffusion-webui\webui-user.bat |
| set COMMANDLINE_ARGS=–listen –enable-insecure-extension-access |
下載插件方式1:
| https://github.com/Mikubill/sd-webui-controlnet.git |
下載插件方式2:
| https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui-extensions/master/index.json |
| C:\stable-diffusion-webui\extensions\sd-webui-controlnet |
| C:\stable-diffusion-webui\tmp\sd-webui-controlnet |
『雙精度模型』『ControlNet-v1-1』
| https://huggingface.co/lllyasviel/ControlNet-v1-1/tree/main |
下載『ControlNet』雙精度模型.
『單精度模型』
| https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/tree/main |
下載『ControlNet』單精度模型.
下载支持SDXL1.0-ControlNet模型
| https://huggingface.co/lllyasviel/sd_control_collection/tree/main |
下載『ControlNet』SDXL1.0模型
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_canny_full.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_depth_full.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/ioclab_sd15_recolor.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/ip-adapter_sd15.pth?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/ip-adapter_sd15_plus.pth?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/ip-adapter_xl.pth?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_blur.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_blur_anime.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_blur_anime_beta.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_canny.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_canny_anime.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_depth.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_depth_anime.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_openpose_anime.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_openpose_anime_v2.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/kohya_controllllite_xl_scribble_anime.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_canny_128lora.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_canny_256lora.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_depth_128lora.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_depth_256lora.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_recolor_128lora.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_recolor_256lora.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_sketch_128lora.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sai_xl_sketch_256lora.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sargezt_xl_depth.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sargezt_xl_depth_faid_vidit.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sargezt_xl_depth_zeed.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/sargezt_xl_softedge.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_diffusers_xl_canny.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_diffusers_xl_depth_midas.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_diffusers_xl_depth_zoe.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_diffusers_xl_lineart.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_diffusers_xl_openpose.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_diffusers_xl_sketch.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_xl_canny.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_xl_openpose.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/t2i-adapter_xl_sketch.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/thibaud_xl_openpose.safetensors?download=true |
| https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/thibaud_xl_openpose_256lora.safetensors?download=true |
將下載『.pth模型』『.yaml描述』『.safetensors模型』复制至models檔䅁夾
『C:\stable-diffusion-webui\extensions\sd-webui-controlnet\models』
| 模型標記 | 模型版本 | 品質 | SD版本 | 預處理 | 文檔擴展名 |
| control | v11-1.1版 | e實驗品 | sd15 | ip2p | .pth模型 |
| v11f1修正版1 | p正品 | sd21 | .yaml描述 | ||
| u半成品 | .safetensors模型 |
下载VAE模型
| https://huggingface.co/stabilityai/sdxl-vae |
| sdxl_vae.safetensors |
擺係
| C:\stable-diffusion-webui\models\VAE |
係『txt2img』『img2img』下側『ControlNet』
| Enable使能 | 勾選後撳『ControlNet』先啟用. |
| Low VRAM低顯存 | 顯存細過4GB,勾選 |
| Pixel Perfect完美像素 | 自動匹配解像,實現最佳效果 |
| Allow Preview | 允許預覽 |
| Effective Region Mask有效區遮擋 | |
| Upload independent control image上傳獨立控制影畫 | |
| Preprocessor預處理 | |
| Model模型 | |
| Control Weight權重 | ControlNet對影像影響值, 權重值設0.6~1.1 |
| Starting Control Step | 開始介入時機,默認0,叢開始影響影像. |
| Ending Control Step | 結束介入時機,默認1,對影像影響至結束 |
| Annotator resolution | 影像解像 |
| Canny-Low threshold | 值越低越細致 |
| Canny-High threshold | 值越高越粗糙 |
| Control類型 | |
| all | 冚辦闌 |
| Canny | 硬邊緣 |
| Depth | 深度 |
| IP-Adapter | 圖生圖 |
| Inpaint | 局部重繪 |
| Instant-ID | |
| InstructP2P | 指導圖生圖 |
| Lineart | 線稿 |
| MLSD | 直線 |
| NormalMAP | 法線貼圖 |
| OpenPose | 姿勢 |
| Recolor | 重新上色 |
| Reference | 引用 |
| Revision | 修正 |
| Scribble | 涂鴉 |
| Segmentation | 語義分割 |
| Shuffle | |
| SoftEdge | |
| SparseCTRL | |
| T2I-Adapter | 文生圖 |
| Tile | 平鋪 |

撳『Extensions擴展』->『Install from URL网址安装』->裝『ControlNet』時報錯.
| AssertionError:extension access disabled because of command line flags |
主因係『–listen』開啟監聲後,禁止安裝插件. 加入『–enable-insecure-extension-access』啟用危險擴展訪問.
編輯『C:\stable-diffusion-webui\webui-user.bat』
加入『set COMMANDLINE_ARGS=–xformers –listen –enable-insecure-extension-access』
『提示詞』亦呌『咒詞』.
『提示詞』分『正向提示詞Positive Prompt』『反向提示詞Negative Prompt』.
『正向提示詞』指定鐘意特征.
『反向提示詞』消除唔鐘意特征.
『提示詞』越多越符合指望. 『提示詞』以『,』分隔,排序越前權重越高,排序越後權重越低,忽略『吉格』『换行』.
『提示詞』權重默認係1. 可通過()改變權重
| 提示詞語法 | 描述 |
| girl,silk, | 分隔提示詞 |
| (girl:3), | 權重提升3倍, 權重=0.1~100 |
| (girl), | 提升1.1倍 |
| ((girl)), | 提升1.1*1.1=1.21倍 |
| (((girl))), | 提升1.1*1.1*1.1=1.331倍 |
| [girl], | 下降1.1倍 |
| [[girl]], | 下降1.1*1.1=1.21倍 |
| [[[girl]]], | 下降1.1*1.1*1.1=1.331倍 |
| Girl | cat, | 混合體 |
| Girl And cat , | 元素混合 |
| Lovely[cow|horse], |
| 反向提示詞Negative Prompt | 簡述 |
| (nsfw), | Not Safe For Work,唔适宜係辦公場所睇. |
| sketches, | 速寫,素描 |
| (worst quality:2),(low quality:2),(normal quality:2), (lowers), (normal quality), | 低質內容 |
| ( (monochrome) ), ( (greyscale) ), | 黑白,灰階 |
| facing away,
looking away, |
人面避開,
眸目避開 |
| text,error,extra digit,fewer digits, | 文字,錯字,額外數字,細數 |
| cropped,jpeg artifacts,blurry, | 裁剪,壓縮痕跡,模糊, |
| signature,watermark,username, | 簽名,水印,身份, |
| bad anatomy,
bad body, bad hands, extra limbs, extra legs, extra foot, extra arms, too many fingers, malformed limbs, fused fingers, long neck, bad proportions, missing arms, missing legs, missing fingers, |
歪身體構造,
歪身歪勢, 歪手, 多餘肢體, 多餘腳瓜瓤, 多餘腳掌, 額外武器, 手指太多, 畸形肢體, 融合手指, 長頸, 身體比例差, 缺手瓜, 缺腳瓜瓤, 缺手指, |
| 畫質 | 簡述 |
| High quality, | 高畫質 |
| Masterpiece, | 杰作 |
| 8k, | |
| Hight definition, | 高清 |
| HD | 高清 |
| Highly realistic, | 超現實 |
| 山水場景 | 簡述 |
| mountain, | 山 |
| On a hill, | 山上 |
| Valley, | 山谷 |
| The top of the hill, | 山頂 |
| Beautiful detailed sky,
Beautiful detailed water, |
天清水靚 |
| On the beach, | 海滩 |
| On the ocean, | 大海 |
| In a meadow, | 草原 |
| landscape, | 開闊風景 |
| Night, | 晚黑 |
| In the rain, | 雨中 |
| Rainy days, | 兩天 |
| cloudy, | 多雲 |
| Full moon, | 圓月 |
| cloud, | 雲 |
| moon, | 月球 |
| moonlight, | 月光 |
| 季節 | 簡述 |
| In spring, | 春 |
| In summer, | 夏 |
| In autumn, | 秋 |
| In winter, | 冬 |
| 畫風/風格 | 簡述 |
| Contour deepening, | 輪廓加深 |
| Flat color, | 纯色 |
| Monochrome, | 單色 |
| Partially colored, | 部分着色 |
| Chromatic aberration, | 色差失焦 |
| CG, | 提升畫質 |
| Comic, | 動漫 |
| Sketch, | 素描 |
| Pixel art, | 像素 |
| Photo, | 影相 |
| Illustration, | 插畫 |
| animation | 動漫 |
| 鏡頭 | 簡述 |
| Pov, | 正面視角 |
| Full body, | 正面冚身視角 |
| Cowboy shot, | 正面上身視角 |
| Dramatic angle | 戲劇視角 |
| From below, | 45度俯視 |
| Bust, | 半身像 |
| Upper body, | 上身 |
| From behind, | 後面 |
| Back, | 背影 |
| Profile, | 側身 |
| Turning around, | 回眸 |
| Multiple views, | 多視角 |
| 光效 | 簡述 |
| God rays, | 神光 |
| Glowing light, | 熒光 |
| Sparkle, | 閃耀 |
| Blurry, | 模糊 |
| Lens flare, | 光暈 |
| Overexposure, | 過曝 |
| Ray tracing, | 光線追踪 |
| Reflection light, | 反射光 |
| Motion blur, | 動態模糊 |
| Cinematic lighting, | 电影光效 |
| Jpeg artifacts, | 壓縮失真 |
| Colorful refraction, | 彩光折射 |
| Golden hour lighting, | 暖金色光照 |
| Strong rim light, | 輪廓光 |
| Intense shadows, | 强陰影 |
| 色調 | 簡述 |
| xx hue | xx色調 |
| colorful | 彩色 |
| Vivid colors | 鮮色 |
| nostalgia | 怀舊 |
| bright | 光亮 |
| High contrast | 高對比 |
| High saturation | 高飽和 |
| greyscale | 灰色 |
| 髮色 | 簡述 |
| Purple hair | 紫髮 |
| Silver hair | 銀髮 |
| Dark blue hair | 深藍髮 |
| Light blue hair | 淺藍髮 |
| Blonde hair | 金髮 |
| Colored inner hair | 髮底彩 |
| Streaked hair | 單株彩髮 |
| Gradient hair | 漸變彩髮 |
| 髮形 | 簡述 |
| Hair bun | 西瓜頭 |
| Ponytail | 馬尾 |
| Drill hair | 公主卷 |
| Messy hair | 散髮 |
| braid | 辫 |
| Twin braids | 孖辫 |
| Wavy hair | 波浪卷 |
| bangs | 髮陰 |
| 表情 | 簡述 |
| Glaring | 𥄫 |
| embarrassed | 尷尬 |
| Grimace | 古靈精怪 |
| Teasing smile | 嘲笑 |
| Evil smile | 邪笑 |
| shy | 怕羞 |
| unamused | 冇趣 |
| Kind smile | 有善微笑 |
| 耳仔 | 簡述 |
| Pointy ears | 尖耳 |
| Fox ears | 狐耳 |
| 眼仔 | 簡述 |
| Aqua eyes | 水汪汪 |
| Tsurime | 眼角 |
| Glowing eyes | 發光 |
| Sclera | 眼白 |
| Pupil | 瞳 |
| Eyelashes | 睫毛 |
| tareme | 垂眼 |
| 嘴仔 | 簡述 |
| 上剎 | 簡述 |
| Jacket | 背心 |
| Hoodie | 外套 |
| Dress shirt | 衬衫 |
| Tailcoat | 燕尾服 |
| Sweater | 襴衫 |
| 下剎 | 簡述 |
| Pants | 褲 |
| bloomers | 燈籠褲 |
| skirt | 裙 |
| Pencil skirt | 窄脚褲 |
| 套装 | 簡述 |
| Business suit | 西装 |
| chemise | 連身裙 |
| Ski clothes | 滑雪服 |
| Collared dress | 有領連身裙 |
| Sleeveless dress | 冇袖連身裙 |
| 鞋仔 | 簡述 |
| slippers | 拖鞋 |
| Mary janes | 瑪麗珍鞋 |
| loafers | 樂樂福鞋 |
| Knee boots | 過膝長靴 |
| Ballet slippers | 芭蕾舞鞋 |
| High heels | 高跟鞋 |
| socks | 襪 |
| 朱耳繩 | 簡述 |
| Earings | 耳環環 |
| Hood | 兜兜帽 |
| Crown | 后冠 |
| Hair bow | 蝴蝶髮夹 |
| Glowes | 手套 |
| Hair pin | 髮夾 |
| 手勢 | 簡述 |
| waving | 招手 |
| Spread arms | 張臂 |
| Spread fingers | 張指 |
| shushing | 噓嘘 |
| Arms up | 抬臂 |
| Hands in hair | 撥頭 |
| Hand on hip | 單手叉腰 |
| 姿勢 | 簡述 |
| Stand | 企 |
| Knees to chest | 膝頭頂胸 |
| Knees up | 抬膝 |
| sit | 坐 |
| run | 跑 |
| walk | 走 |
| Lie down | 趴 |
| kneel | 跪 |
| 材質 | 簡述 |
| Paper style | 紙質 |
| Wood | 木質 |
| Grey conerete | 灰水泥 |
| Marbel | 大理石 |
| Gold | 金 |
| Sliver | 銀 |
| Metal | 金屬 |
| Copper | 銅 |
| plastic | 塑膠 |
| metallic | 金屬質感 |
| foam | 泡沬 |
| nendoroid | 粘土 |
| gemstones | 寶石 |
| crystal | 水瞐 |
| sculpture | 雕塑 |
| crystal | 水晶 |
| mural | 壁畫 |
| textured | 紋理 |
| Filigret-metal | 拉絲金屬 |
| Armor | 盔甲 |
| Warframe | 機甲 |
| Skeletal | 屍體 |
| silk | 絲綢 |
| bone | 體 |
| Filigree metal design | 花絲金屬設計 |
| Plastic | 膠 |
| Wax | 臘燭 |
| ice | 冰 |
| Dry ice | 干冰 |
| 自然景觀 | 簡述 |
| Black smoke | 黑烟/黑雾 |
| Smooth fog | 弱雾 |
| Cloudy | 雲畫 |
| Puffy clouds | 雲海 |
| Dramatic clouds | 戲劇雲彩 |
| Thunderstorms | 暴雨 |
| Stormy ocean | 海面暴雨 |
| Ocean backdrop | 海洋背景 |
| lightning | 閃電 |
| Dawn | 日落 |
| Sunrise | 日出 |
| rainbow | 彩虹 |
| Ethereal fog | 薄雾 |
| landscape | 地貌 |
| halo | 光環環 |
| waterfall | 瀑布 |
| Frozen river | 冰川 |
| Gloomy night | 陰天 |
| Swirlying dust | 旋轉塵 |
| Abyss | 深渊 |
| Candoluminescence | 白冷光 |
| Sea foam | 浪花 |
| mist | 薄雾 |
| vapor | 水滊 |
| 珠寶 | 簡述 |
| Atmospheric | 氛圍 |
| Beryl | 綠寶石 |
| Carve | 雕刻 |
| Chrysoberyl | 金綠石 |
| Commercial photography | 商業摄影 |
| Copper | 銅 |
| Corundum | 剛玉 |
| Diamond | 鉆石 |
| Feldspar | 長石 |
| Garnet | 石榴石 |
| gold | 金 |
| Hoolow out | 鏤空 |
| hue | 色調 |
| inlay | 鑲嵌 |
| Intricated details | 細節複雜 |
| jade | 翡翠 |
| jewelry | 寶石 |
| Lazurite | 青金石 |
| Liquid | 液態 |
| Mirror | 鏡面 |
| Olivine | 橄欖石 |
| Patterm | 花紋 |
| Perfect lighting | 燈光 |
| relief | 浮雕 |
| Rose quartz | 玫瑰石英 |
| Ruby | 紅寶石 |
| 喫 | 簡述 |
| A stick of sugar-coated haws | 冰糖葫蘆 |
| Roast duck | 燒鴨 |
| Box lunch | 盒仔飯 |
| Eight-treasure rice pudding | 八寶飯 |
| Glass noodles | 粉絲 |
| guotie | 鍋餅 |
| Hot pot | 火鍋 |
| Jellied bean curd | 豆腐腦 |
| Konjak tofu | 魔芋豆腐 |
| Lotus root | 蓮藕 |
| Rice noodles | 米粉 |
| Rice tofu | 米豆腐 |
| Set meal | 套餐 |
| Spring roll(s) | 春卷 |
| Steamed twisted rolls | 花卷 |
| Tangyuan/Sweet rice dumpling(soup) | 元宵 |
| wonton | 雲吞 |


係舊時對畫像改頭换面,非資深畫家吾得,『Stable Diffusion』局部重繪-今改頭换面變得容易.





中古『NETGEAR® GS108』得8網口,諗住買16口『NETGEAR® GS116EV2』.两百幾紋.
『NETGEAR』網口左右各壹眼LED燈.左燈著『100m/bps』带寬,右燈著『10m/bps』带寬, 左右燈著『1000m/bps』带寬.
電腦網卡左燈著係『通電』燈,右燈係信號指示燈.
點知『GS116EV2』有壹個網口得『100m/bps』带寬,可熊係網線造成,重新夾CAT8頭.也可能另壹邊網卡『100m/bps』带寬造成,『JBL-L75MS』係『100m/bps』带寬.








本蒞諗住買『惠威M-80W』,聽講質量麻麻一直冇落手.
睇中『JBL-L75MS』, 兩個5.25寸低音, 兩個1寸高音, 壹個4寸中音. 總合係單壹箱內.搞特價4798果斷落手.
順風寄蒞,三重紙箱, 『音箱』長790MM摆吾入書架.
附件有『電池』『摇控』『勾』『指南書』『電線』. 冇畀『3.5MM音頻線』, 好在支持『RJ45網線』『WIFI』『USB線』『藍牙』
『藍牙』連線
『AUX3.5MM』音箱線
Windows10藍牙連線-吾知係咪藍牙驅動造成,間歇冇聲斷聲,後蒞買两頭3.5MM插頭連線.
『WLAN』網口
插網線後,通過手機電腦連線『192.168.1.5』,有可能係其它ip,登錄『音箱』後台. 可以連『wifi』.
『USB』口
插USB線冇反應,事因佢插USB磁碟.
連『WIFI』
插網線後,通過手機電腦連線『192.168.1.5』
『SFX』聲場增強
摇控『SFX』鍵-加强室內立體聲寬廣聲場,冇效果.
『接地』
有獨立接地口,閉環接地線,屋企接地係邊?
『低音』BASS CONTOUR
『低音調節』撥『-3DB』加重低音輸出. 聽人聲吾使撥.

Stable Diffusion2.1係指v2.1模型
| cd C:\stable-diffusion-webui |
| git pull |
下載768*768模型『v2-1_768-ema-pruned.ckpt』. 配置檔『v2-inference-v.yaml』改名為『v2-1_768-ema-pruned.yaml』




有舊『ATX火牛』230W, 諗住用係『B450-ITX』配『RYZEN5-1500X』得60W岩岩够. 但係舊『ATX火牛』20pin. 冇左4pin插係『B450-ITX』照樣著機.多出4pin分别係『3.3v』『5V』『12V』『地』. 理論蒞講通過係飛線增加『4PIN』.網有20PIN轉24PIN線,直頭吾著機,好彩冇燒底板.





新買ITX機箱諗住用翻『益衡FLEX-600W火牛』, 點知装得『atx』同『sfx』火牛, 唯有買『益衡SFX火牛』總功率750瓦,『SFX』同係為『itx』細機箱設計, 方體更适合係細機箱.
配線齊但係主板24PIN偏短,後蒞買30CM長24PIN駁線.且功耗下火牛風轉减小噪聲.
㸃知雜牌『X99-itx』掉失『M.2-SSD』, 以為係火牛引起.又再買『EVGA SFX 650W』㸃知仲衰. 後蒞换左amphenol-sata線先搞掂.




壹臺『Stable Diffusion』電腦,可以有多塊『NVIDIA-GPU顯卡』,發熱噪聲犀利, 唯有擺係機房仔,係內網用『手機』『平板』『電腦』訪問『Stable Diffusion』.
| C:\stable-diffusion-webui\webui-user.bat |
| set COMMANDLINE_ARGS=–listen |
係win10仲要防火牆加網埠監聽.

更新『AMI-BIOS』有『AFUWIN』同埋『AFUDOS』, 但係『AFUWIN』吾支緩『win10』, 得翻『AFUDOS』 .
| 示例 | |
| AFUDOS.EXE BIOS.BIN /0 | 導出BIOS |
| AFUDOS.EXE BIOS.BIN /P | 寫入MAIN BIOS |
| AFUDOS.EXE BIOS.BIN /B | 寫入啟動块Boot Block |
| AFUDOS.EXE BIOS.BIN /santa | 强制寫BIOS |
| AFUDOS.EXE F BIOS.BIN | 强制寫BIOS |

『華南X99-F8D Plus』開機蓝屏『TeeDriverW8x64.sys』, 可禁節能模式『CPU C3/C6』修复,但系冇左『睡眠模式』.諗住試更新BIOS修复.但系雜牌主板『Q-FLASH』冇『BIOS』更新程式.更新『AMI-BIOS』用『AFUDOS.EXE』,係Win10冇DOS啟動磁碟,利用『Rufus』制『MS-DOS』開機磁碟. 同『Etcher』壹樣, 但係『Rufus』內含『MS-DOS』同『FreeDOS』映像.
登入『http://rufus.ie』下載『rufus-4.5.exe』.
| http://rufus.ie |
| https://github.com/pbatard/rufus/releases/download/v4.5/rufus-4.5.exe |

當睇到下面信息『Stable Diffusion』已装掂,但係缺『基礎模型』.
| No checkpoints found. When searching for checkpoints, looked at: |
| – file C:\stable-diffusion-webui\model.ckpt |
| – directory C:\stable-diffusion-webui\models\Stable-diffusion |
| Can’t run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit. |
先去『civitai.com』下載模型
| https://civitai.com/ |
| https://huggingface.co/ |
係『Stable Diffusion』左上角揀基礎模型.擴展名『.safetensors』『.ckpt』, 大細係6GB~4GB之間. 『基礎模型』吾可叠加.
『基礎模型』擺係指定檔案夾.
| Model模型 | 檔案夾位置 |
| Checkpoint『.ckpt』 | C:\stable-diffusion-webui\models\Stable-diffusion |
| .safetensors | C:\stable-diffusion-webui\models\Stable-diffusion |
『基礎模型』添加封面,圖檔名與模型名壹致,同『基礎模型』模型擺係壹起,之後撳『refresh page』刷新.
| 基礎模型 | model.safetensors |
| 封面圖 | model.png |



『Stable Diffusion』開源AI划畫畵程式. 輕易係網络下載,部署係電腦行.
| https://github.com/AUTOMATIC1111/stable-diffusion-webui |
『提示詞』畀『Clip』解讀, 『Diffusion』逐步生成圖像.
| 『提示詞』->『Clip』->『Diffusion』->『VAE』->『畵』 |
硬件要求
部署運行環境.
部署Stable Diffusion
| git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui |
| “C:\Program Files\Python310\python.exe” |
| @echo off |
| set PYTHON=”C:\Program Files\Python310\python.exe” |
| set GIT= |
| set VENV_DIR= |
| set COMMANDLINE_ARGS=–xformers |
| call webui.bat |
| ERROR:Could not find a version that satisfies the requirement torch |
| ERROR:NO matching distribution found for torch |
| WARNING:There was an error checking the latest version of pip. |
| python -m pip install –upgrade pip |
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip |
| RuntimeError: Torch is not able to use GPU; add –skip-torch-cude-test to COMMANDLINE_ARGS variable to disable this check |
| set COMMANDLINE_ARGS=–xformers –skip-torch-cuda-test |
| RuntimeError: Couldn’t install gfpgan. |
| RuntimeError: Couldn’t install clip. |
| RuntimeError: Couldn’t install open_clip. |
| OSError: Can’t load tokenizer for ‘openai/clip-vit-large-patch14’. If you were trying to load it from ‘https://huggingface.co/models’, make sure you don’t have a local directory with the same name. Otherwise, make sure ‘openai/clip-vit-large-patch14’ is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer. |
| TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument ‘socket_options’ |
| ImportError: cannot import name ‘_compare_version’ from ‘torchmetrics.utilities.imports’ (C:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\imports.py) |
| Downloading: “https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors” to C:\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors |
| C:\stable-diffusion-webui\venv |
| Running on local URL: http://127.0.0.1:7860 |

安裝『Stable Diffusion』時未有安裝『open-clip-torch』
| changing setting sd_model_checkpoint to v1-5-pruned-emaonly.safetensors [6ce0161689]: AttributeError
Traceback (most recent call last): |
| AttributeError: ‘NoneType’ object has no attribute ‘lowvram’ |
| pip install open-clip-torch==2.20.0 |
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install open-clip-torch==2.20.0 |

『Stable Diffusion』冇自带模型,需自行下載,當妳睇到下面信息,下載『v1-5-pruned-emaonly.safetensors』, 之后擺係『C:\stable-diffusion-webui\models\Stable-diffusion\』資料夾.
| Downloading: “https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors” to C:\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors |
| https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors | Sour |
| C:\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors | dest |


當妳『Stable Diffusion』睇到下面信息,未有裝『transformers』模型分詞器.或版本舊.
| OSError: Can’t load tokenizer for ‘openai/clip-vit-large-patch14’. If you were trying to load it from ‘https://huggingface.co/models’, make sure you don’t have a local directory with the same name. Otherwise, make sure ‘openai/clip-vit-large-patch14’ is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer. |
| pip install transformers |
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install transformers |
| pip install –upgrade transformers |
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade transformers |

安裝『Stable Diffusion』時未有裝『torchmetrics』.
| ImportError: cannot import name ‘_compare_version’ from ‘torchmetrics.utilities.imports’ (C:\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\utilities\imports.py) |
進入『命令行模式CMD』
查版本號
| pip show torchmetrics |
缷載
| pip uninstall torchmetrics |
下載0.11.4版本
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install torchmetrics==0.11.4 |

安裝『Stable Diffusion』時報錯
| TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument ‘socket_options’ |
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install httpx==0.24.1 -force-reinstall |
| python.exe -m pip install httpx==0.24.1 -force-reinstall |

安裝『Stable Diffusion』時未裝『open_clip』. 其實亦係『clip』
| RuntimeError: Couldn’t install open_clip. |
進入『open_clip』
| https://github.com/mlfoundations/open_clip |
或者下載『open_clip』落『C:』碟
| git clone https://github.com/openai/open_clip.git |
下載『open_clip-main.zip』後解壓本地安裝
| https://codeload.github.com/mlfoundations/open_clip/zip/refs/heads/main |
复制『C:\open_clip』到『C:\stable-diffusion-webui\venv\Scripts』
| C:\open_clip | Sour |
| C:\stable-diffusion-webui\venv\Scripts | dest |
進入『命令行模式CMD』
CD去『CLIP』檔䅁夾, 作為本地路徑
| cd C:\stable-diffusion-webui\venv\Scripts\open_clip |
执行下列安裝指令
| C:\stable-diffusion-webui\venv\Scripts\python.exe setup.py build install |
常試通過pip指令安裝
| pip install open_clip_torch |













諗住買3090Ti點知連成萬,孖2080Ti送NVLink先陸千有找.
登入NVIDIA官網下載嘉時至新驅動
| https://www.nvidia.com/Download/index.aspx?lang=en-us |
| 填NVIDIA Driver Downloads | |
| NVIDIA Driver Downloads | 揀 |
| Product Type | GeForce |
| Product Series | GeForce RTX 40 Series |
| Product | GeForce RTX 4090 Ti |
| Operating System | Windows 10 64-bit |
| Download Type | NVIDIA Studio Driver |
撳Search下載驅動
| https://us.download.nvidia.com/Windows/552.22/552.22-desktop-win10-win11-64bit-international-nsd-dch-whql.exe |
新顯卡NVLINK金手指有封膜,撕左插入NVLINK桥即掂.冇使搞BIOS.
下載『NVLinkTestCUDA11』測試NVLINK桥造總線带寛
| https://www.pugetsystems.com/support/guides/how-to-enable-and-test-nvidia-nvlink-on-quadro-and-geforce-rtx-cards-in-windows-10-1266/ |
| https://puget.systems/go/NVLinkTestCUDA11 |
孖『NVIDIA GeForce RTX 2080 Ti』都插係PCIEx16,鋪頭送『GeForce NVLINK』桥造總線带寛得『48.08GB/S』, 可能要『Quadro Nvlink』先有『100GB/S』带寛.


『clip』建构圖像文字之間連系模型,安裝『Stable Diffusion』時未有安裝『clip』.
| RuntimeError: Couldn’t install clip. |
進入『clip』
| https://github.com/openai/clip/ |
下載『clip』落『C:』碟
| git clone https://github.com/openai/CLIP.git |
或者下載『CLIP-main.zip』後解壓
| https://codeload.github.com/openai/CLIP/zip/refs/heads/main |
复制『C:\CLIP』到『C:\stable-diffusion-webui\venv\Scripts』
| C:\CLIP | Sour |
| C:\stable-diffusion-webui\venv\Scripts | dest |
進入『命令行模式CMD』
CD去『CLIP』檔䅁夾, 作為本地路徑
| cd C:\stable-diffusion-webui\venv\Scripts\CLIP |
执行下列安裝指令
| C:\stable-diffusion-webui\venv\Scripts\python.exe setup.py build install |

安裝『Stable Diffusion』時未有安裝『gfpgan』人樣修复.
| RuntimeError: Couldn’t install gfpgan. |
進入『GFPGAN』
| https://github.com/TencentARC/GFPGAN |
下載『GFPGAN』落『C:』碟
| git clone https://github.com/TencentARC/GFPGAN.git |
复制『C:\GFPGAN』到『C:\stable-diffusion-webui\venv\Scripts』
| C:\GFPGAN | Sour |
| C:\stable-diffusion-webui\venv\Scripts | dest |
進入『命令行模式CMD』
CD去『GFPGAN』檔䅁夾, 作為本地路徑
| cd C:\stable-diffusion-webui\venv\Scripts\GFPGAN |
执行下列安裝指令
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install basicsr |
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install facexlib |
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install -r requirements.txt |
| C:\stable-diffusion-webui\venv\Scripts\python.exe setup.py develop |
| C:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install realesrgan |


『Torch』基於神經網络人工智慧輵, 『PyTorch』係『Python』版本
首先确認NVIDIA顯卡支持CUDA版本. 下載最新顯卡驅動『552.22-desktop-win10-win11-64bit-international-nsd-dch-whql.exe』
網络安装『PyTorch』
| pip3 install torch torchvision torchaudio –index-url https://download.pytorch.org/whl/cu121 |
本地安装『PyTorch』
| https://download.pytorch.org/whl/torch/ |
| https://download.pytorch.org/whl/cu121/torch-2.3.0%2Bcu121-cp310-cp310-win_amd64.whl#sha256=002027d18a9c054f08fe9cf7a729e041229e783e065a71349015dcccc9a7137e |
| WARNING:There was an error checking the latest version of pip. |
| Defaulting to user installation because normal site-packages is not writeable |
| python -m pip install –upgrade pip |
測試『Pytorch』返回true,表示可調用GPU-CUDA指令, 進入『Pytho3.10』.
| import torch |
| print(torch.__version__) |
| torch.cuda.is_available() |
缷載tcrch
| Pip uninstall torch |
| Pip uninstall torchaudio torchvision |
| Pip uninstall torch-geometric torch-scatter torch-sparse torch-cluster torch-spline-conv |
| https://pytorch.org/get-started/locally/ |
| https://pytorch.org/get-started/previous-versions/ |















睇人AI繪畫,諗住買NVIDIA顯卡,中古RTX3060都要兩千幾,
可能係機房大批淘汰,Tesla P40-24GB係網大量焦拋售,柒百伍包郵,成色麻麻.配NVIDIA-8pin專用供電線,睇佢散熱槽,應該係風道式散熱. 係屎窟裝涡輪風扇, 點知電流大噪䡰大,再加30%降壓線壓低風.
使能PCIE-Above 4G
驅動下載
| 填NVIDIA Driver Downloads | |
| NVIDIA Driver Downloads | 揀 |
| Product Type | Data Center Tesla |
| Product Series | P-Series |
| Product | Tesla P40 |
| Operating System | Windows 10 64-bit |
『Tesla P40』裝驅動 默認係『TCC計算模式』, 需改為『WDDM圖形模式』.
| Computer \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318} |
| DriverDesc | |
| 0000 | NVIDIA Tesla P40 |
| 0001 | NVIDIA Quadro K6000 |
| NAME | TYPE | VALUE |
| AdapterType | REG_DWORD | 1 – DELETE |
| FeatureScore | REG_DWORD | 0Xcf->0Xd1 |
| GridLicensedFeatures | REG_DWORD | 7 (强制開啟GRID圖形模式) |
| EnableMsHybrid | REG_DWORD | 1 |
| NAME | TYPE | VALUE |
| EnableMsHybrid | REG_DWORD | 2 |
圖形設定指定-GPU: NVIDIA Tesla P40
NVIDIA GPU指定『Tesla P40』

『nvidia-smi.exe』, 係nvidia公司開發蒞睇gpu. 基於命令行界面, 而非圖形界面. 可能考慮兼容同稳定.随nvidia顯卡驅動安裝自動复制,路徑如下.
| C:\Windows\System32\nvidia-smi.exe |
| 講解 | |
| Nvidia-smi | 程式版本號 |
| Driver version | 顯卡驅動版本號 |
| CUDA Version | CUDA至高支援版本號 |
| GPU | 顯卡編號, 0開如始編址, |
| FAN | 風扇轉速(0~100%),冇風扇(N/A) |
| NAME | 顯卡型號 |
| Temp | GPU温度,0C ~ 100C |
| Perf | 性能, 至高p0級~至低p12級 |
| Pwr: Usage/Cap | 顯卡能耗, 『usage』 使用率,『Cap』能耗牆 |
| Bus-ID | 顯卡總線地埗 |
| Disp.A | 圖像顯示輸出,OFF閂, ON著 |
| Memory-Usage | 顯存使用率 |
| GPU-Util | GPU使用率 |
| Compute M. | 計算模式DEFAULT/EXCLUSIVE_PROCESS/PROHIBITED |
| ECC | 顯存校驗糾錯 |

CUDA係NVIDIA為GPU并行運算而開發,用C語言調用GPU-CUDA指令集進行大規模并行運行.
虽然上世紀以經有『INTEL-SEE』并行運算指令集,但係『NVIDIA-CUDA』青出於蓝.
『PyTorch』暫時至高支持『CUDA 12.1』.
登入『CUDA官網』, 下載『CUDA Toolkit 12.1.1』
| https://developer.nvidia.com/cuda-toolkit-archive/ |



github
gitHub攻略
git系統等於『檔案伺服』外加『版本管理』,
『Linux』安裝git
通過SSH登入
| ssh username@ubuntu |
root@ubuntu’s password: 填密碼. 冇字符顯示, 撳Enter鍵.
安裝git架撑
| sudo apt update |
| sudo apt install git |
| sudo apt update git |
下載『Quectel_MHI』
| sudo git clone https://github.com/ChaingTsung/Quectel_MHI/ |
『OpenWRT』安装『git』從缺小http傳輸支
| git: ‘remote-https’ is not a git command. See ‘git –help’. |
安装『git-http』修复
| sudo apt install git-http |
| sudo apt install curl |
| sudo apt install libcurl4 |
| git –version | 版本號 |
『windows10』下載祗安裝『Git-2.45.0-64-bit.exe』,家時最新2.45.0版.
| Additional icons on the Desktop | 桌面捷徑 |
| Windows Explorer integration Git Bash Here | 右鍵菜單 |
| Windows Explorer integration Git GUI Here | 右鍵菜單 |
| Git LFS (Large File Support) | 支援大檔䅁 |
| Associate .git* configuration files with the default text edito | 配置檔䅁.git關聯edito |
| Associate .sh files to be run with Bash | 關聯.sh檔䅁 |
| Check daily for Git for Windows updates | 日日檢查更新 |
| Add a Git Bash Profile to Windows Terminal | 將Git Bash設定檔新增到Windows終端 |
| Scalar(Git add-on to manage large-scale repositories) | 管理大型儲存庫 |
注册GitHub賬戶
| 賬戶信息 | |
| EMAIL電郵 | 電子郵箱, 用蒞收驗證電郵. |
| Username | 字母+字符 混合, 唯壹未被利用. |
| PASSWORD密碼 | 字母+數字+字符混合 |
下載GitHub卓面版『GitHubDesktopSetup-x64.exe』





『Python』其實係『虛擬機』, 先裝『.py』源碼編譯為字節碼『.pyc』. 『Python虛擬機』再執行『Python字節碼』. 同『java』壹樣.
登入『Python』官網『https://www.python.org/』.
| Documentation | 文檔 |
| Pip | (必揀)下載和管理python包 |
| Tcl/tk and IDLE | 裝IDLE包 |
| Python test suite | 裝測試包 |
| Py launcher For all users(requires admin privileges) | 裝‘py’啟動程式 |
| Install python 3.12 for all users | 冚辦闌帳號裝python程式 |
| Associate files with python(requires the ‘py’ launcher) | 關聯‘py’文檔 |
| Create shortcuts for installed applications | 制作python捷徑檔 |
| Add Python to environment variables | 將Python路徑添加到環境變量 |
| Precompile standard library | 預編譯標準庫 |
| Download debugging symbols | 下載調試符號 |
| Download debug binaries(requires VS 2017 or later) | 下載調試庫 |
| C:\Users\bookc\AppData\Roaming\Python\Python310\ |
| C:\Users\bookc\AppData\Roaming\Python\Python310\Scripts\ |
| C:\Users\bookc\AppData\Roaming\Python\Python310\site-packages\ |
| C:\Program Files\Python310\Scripts\ |
| C:\Program Files\Python310\ |
檢查最新版pip時出錯.
| WARNING:There was an error checking the latest version of pip. |
需手動升級pip至最新版.
| python -m pip install –upgrade pip |
| https://www.python.org/ |
| https://www.python.org/downloads/windows/ |
| https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe |
你必須登入才能發表留言。