read.cash Log in
@vcckvvOnNoiseApp

「aiArt」 之前原本想安裝一下AI繪畫Stable Diffusion來玩玩看,不過發現自己的老舊電腦好像有環境不相容的問題,只能玩玩線上的demo網頁,後來發現了有colab版的Stable Diffusion可以玩: colab.research.google.com/drive/1zAtGBys_2S21LSdoeKL-jyoD96W_K7qj#scrollTo=R-xAdMA5wxXd 基本上就是照著步驟點擊每個程式碼方塊左上角的執行按鈕,其中第2和第5步會產生警告訊息,不過不用管它 第8步只要下載其中一種ckpt檔,我個人比較喜歡使用萬用的sd-v1-4.ckpt,但是需要登入HuggingFace才能得到下載權限,這裡的程式碼沒辦法直接執行,所以我另外找了個方法下載:把程式碼改為 ! wget -P /content/stable-diffusion-webui/models/Stable-diffusion "帳號:密碼@huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt" 其中帳號二字改成你登入HuggingFace的帳號名字,密碼二字改成你登入HuggingFace的密碼,這樣就能取得下載權限 接下來跑第9步後,會出現xxxx.gradio.app的網址,點進去輸入它預設的帳號密碼就可以開始玩了 因為是利用colab的資源來跑,所以會有資源限制,不過好在Stable Diffusion消耗的資源很少,短時間內跑幾十張圖也沒有問題 介面有時候會卡住,不過重整一下頁面就能繼續跑,可以觀察一下colab的頁面有沒有在跑就知道有沒有卡住 --------------------- 輸入的prompt和參數可以參考以下網頁: www.ptt.cc/bbs/C_Chat/M.1665817748.A.B35.html github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features docs.qq.com/doc/DWHl3am5Zb05QbGVs 這次就簡單試一下來做一張風景畫 prompt: (extremely detailed CG unity 8k wallpaper),(((masterpiece))), (((best quality))), ((ultra-detailed)), (best illustration),(best shadow), ((an extremely delicate and beautiful)),dynamic angle,floating, fairyland,dynamic angle,sea of flowers,beautiful detailed garden,wind,classic,spring, (detailed light),feather, nature, (sunlight:1.5), river, forest,(((floating palace))),((the best building)),beautiful and delicate water,(painting),(sketch),(bloom),(sunshine),beautiful light and shadow,Makoto Shinkai negative prompt: cropped, worst quality, low quality, normal quality, jpeg artifacts, (blurry),vague 參數: Steps: 20, Sampler: DDIM, CFG scale: 6, Seed: 613636535, Size: 768x512, Model hash: 7460a6fa batch count=10 有很多功能和心得可以介紹,之後還會發幾篇文章來說說~ ------------ 另外跟有在看卜算板的噪友報告一下,因為最近開始忙起來了,所以之後不會再寫需要長時間準備的占卜算命相關的文章,發文的頻率也會盡量降低,可能就偶爾發一下自己做的圖

36 comments

Log in to join in Reading is open to everyone. Replying needs an account.