【AI繪畫】想嘗試AI繪圖但主機(jī)配置太拉?那就白嫖Google的GPU來體驗(yàn)AI繪畫吧~


????????最近看到大家都在玩兒AI繪畫,手癢癢也想試試,但是我主機(jī)太拉了,還是AMD的RX660xt( ̄_ ̄|||),屬于是雪上加霜,網(wǎng)上看到了可以使用Google的Colab部署stable diffusion來作畫,淺嘗了一下,實(shí)際體驗(yàn)也比我本地作畫要快很多(≧?≦)ゞ。這個(gè)方法主要是使用Google的Colaboratory(簡稱 Colab)來白嫖Google的GPU進(jìn)行作畫,Colab是谷歌提供的一種托管式 Jupyter 筆記本服務(wù),可在瀏覽器中編寫和執(zhí)行 Python 代碼,主要有一下特點(diǎn):
* 不依賴本地主機(jī)的配置
* 免費(fèi)使用的16G的GPU
* 傻瓜式部署
使用Colab需要準(zhǔn)備的東西:
1、能夠訪問https://github.com和https://colab.research.google.com
2、一個(gè)Google賬號和Github賬號,并登陸
3、最好也用github登陸Civitai(https://civitai.com/),方便后面找tag
部署stable diffusion
1、打開https://github.com/camenduru/stable-diffusion-webui-colab?下拉找到Readme.md的Colab部分,紅框部分就是stable?diffusion部署的鏈接,直接選擇一個(gè)打開鏈接(跳轉(zhuǎn)可能會(huì)要授權(quán),直接接受就好);

2、打開后的界面,點(diǎn)擊一下這個(gè)文件夾圖標(biāo),這是Google這個(gè)虛擬的筆記本的文件夾;


3、點(diǎn)擊開始安裝部署,部署需要等一段時(shí)間;

4、安裝成功后會(huì)出現(xiàn)下面幾個(gè)鏈接,點(diǎn)擊就會(huì)打開部署好的stable diffusion,隨便用一個(gè),建議https,不建議幾個(gè)人一起用:


5、現(xiàn)在就可以進(jìn)行簡單的進(jìn)行繪畫了,而且速度還可以:

例子的描述詞:
best quality, masterpiece, highres, 1girl,china dress,hair ornament,necklace, jewelry,Beautiful face,upon_body, tyndall effect,photorealistic, dark studio, rim lighting, two tone lighting,(high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, volumetric lighting, candid, Photograph, high resolution, 4k, 8k, Bokeh
反向描述詞
(((simple background))),monochrome ,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, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, ugly,pregnant,vore,duplicate,morbid,mut ilated,tran nsexual, hermaphrodite,long neck,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,bad anatomy,bad proportions,malformed limbs,extra limbs,cloned face,disfigured,gross proportions, (((missing arms))),(((missing legs))), (((extra arms))),(((extra legs))),pubic hair, plump,bad legs,error legs,username,blurry,bad feet
6、如果想下載其他模型,可以點(diǎn)擊CivitAi欄,按下列步驟下載想要的模型,模型樣子可以到官網(wǎng)看https://civitai.com/

