Chii chinonzi Stable Diffusion, sei kuisa uye kuishandisa

mifananidzo yakagadzirwa nekupararira kwakagadzikana

Ichi ndicho chimwe gwara rekudzidza nezve Yakagadzikana Diffusion uye dzidzisa mashandisiro aungaita chishandiso ichi.

Mufananidzo uri pamusoro unogadzirwa neStable Diffusion. Yakagadzirwa kubva kune inotevera mavara (yekukurumidza)

Guta remudenga rine skycrapers, naStanislav Sidorov, dhijitari art, Ultra realistic, Ultra yakadzama, photorealistic, 4k, hunhu pfungwa, nyoro chiedza, blade runner, futuristic

Yakagadzikana Diffusion imhando-kune-mufananidzo muchina kudzidza modhi. Modhi yekudzidza yakadzama, yeungwaru hwekugadzira iyo inotibvumira kugadzira mifananidzo kubva muzvinyorwa zvatinoisa sekuisa kana kuisa.

Haisi yekutanga modhi kana chishandiso chekutanga chechimiro ichi, parizvino pane zvakawanda zvekutaura nezve Dall-e 2, MidJourney, Google Image, asi ndiyo inonyanya kukosha nekuda kwezvainomiririra. Yakagadzikana Diffusion iOpen Source purojekiti, saka chero munhu anogona kuishandisa nekuigadzirisa. Mushanduro 1.4 tine 4G .cpxt faira apo iyo yose yakagara yakadzidziswa muenzaniso inobva, uye iyi ishanduko chaiyo.

Zvakawanda zvekuti mumavhiki maviri kana matatu chete kubva pakuburitswa kwayo, tinowana mapulagi ePhotoShop, GIMP, Krita, WordPress, Blender, nezvimwe. zvakanaka chose chishandiso chinouya nemifananidzo chiri kuita Stable Diffusion, zvekuti nyangwe vakwikwidzi vakaita seMidjourney vari kuishandisa kusimudzira maturusi avo. Asi haingoshandiswe kugadzira maturusi chete, asi isu sevashandisi tinokwanisa kuiisa paPC yedu tomhanya nayo kuti tiwane mifananidzo munharaunda.

Nekuti kuwedzera pakuva Open Source hazvireve kuti ine simba shoma pane yapfuura. Chishamiso chechokwadi. Kwandiri izvozvi ndicho chishandiso chakanakisa chatinogona kushandisa kana tichida kugadzira mifananidzo yedu kune chero chirongwa.

Nzira dzekuisa uye kushandisa Stable Diffusion

Pane nzira dzakasiyana dzekuishandisa. Iye zvino ini ndinokurudzira 2. Kana kombiyuta yako ine simba rinodiwa, kureva, kadhi yemifananidzo ine inenge 8Gb ye RAM, wozoiisa pakombiyuta yako. Kana hardware yako isina simba rakakwana shandisa a Kudyidzana paGoogle, izvozvi ini ndinokurudzira iyo Altryne imwe, nekuti inouya ne graphical interface uye iri nyore kushandisa.

nhanho kune zvakadzama.

Colab yeAltryne

Iyi ndiyo sarudzo yandinokurudzira kana komputa yako isina simba rakakwana (GPU ine 8Gb ye RAM) kana iwe uchida kuiedza nezvose zvayo pasina kuisa chero chinhu.

Ini ndinoikurudzira nekuti ine yakanyatso kugadzikana graphical interface ine dzakawanda sarudzo dzekudzora mifananidzo uye mamwe maturusi emhando akadai semufananidzo kune mufananidzo uye upscale.

Isu tinoshandisa iyo Google colab yakagadzirwa naAltryne uye Google Drive kuchengetedza modhi nemhedzisiro.

zvese ndezvemahara. Ini ndinosiya vhidhiyo yemaitiro ese ayo sezvauchaona ari nyore kwazvo.

Isa pane PC

Kuti uiise kubva kuPC unogona kutevera mirairo yakapihwa muGitHub yayo, https://github.com/CompVis/stable-diffusion kana mushanduro yayo ine graphical interface yandinoda zvakanyanya https://github.com/AUTOMATIC1111/stable-diffusion-webui uye pamahwindo uye linux unogona kushandisa izvi zvinogoneka kuiisa Yakagadzikana Diffusion UI v2

Iwe unotoziva kuti unoda GPU ine simba ine hushoma hwe8Gb ye RAM kuti ishande zvakanaka. Iwe unogona kuita kuti idhonze CPU, asi inononoka uye zvakare zvinoenderana ne processor yaunayo. Saka kana midziyo yako yasakara uchafanira kuzvisiya pakushandisa Colab kana imwe nzira yekubhadhara kuti ushandise Stable Diffusion.

Zvakanakira kuve nazvo paPC yako ndezvekuti inokurumidza kushandisa, haufanirwe kuisa kana kugadzirisa chero chinhu, kungoita kamwe chete zvakakwana, kubva ipapo zvese zvinokurumidza.

Uyewo, chimwe chikonzero nei ndichichifarira zvikuru ndechokuti ndinogona kuibatanidza mune mamwe magwaro uye kutora mukana wemifananidzo yakagadzirwa nekuiisa zvakananga mukufamba kwebasa remabasa, iyo inokosha zvikuru.

Official Collab Diffusers

Yakafanana chaizvo neColab yandakurudzira pamusoro, inomhanya zvakada kufanana, HAUFANANIswe kurodha modhi, asi haina graphical interface uye kugadzirisa chero sarudzo yaunofanirwa kushandura sarudzo dzekodhi. mabhuroki uye oashandura kuti agadzirise kune zvatinoda.

Mukuwedzera, isu hatigoni kushandisa mufananidzo kune sarudzo yemufananidzo, iyo inofadza chaizvo.

Unogona kuwana kubva pane izvi https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/stable_diffusion.ipynb

Isu tine sefa yemifananidzo yevakuru, iyo yakakurumbira NSFW, asi unogona kuidzima uchishandisa iyi kodhi, kureva, kugadzira sero mugwaro rine

def dummy_checker(images, **kwargs): return images, False
http://pipe.safety_checker = dummy_checker

Iwe unofanirwa kuiisa pakarepo mushure mesero

pipe = pipe.to("cuda")

uye unomhanya

Colab Yakagadzikana Diffusion Infinity

MuColab iyi tinogona kushandisa Infinity tool, iyo inotibvumira kupedzisa mifananidzo. Gadzira zvirimo kubva pamufananidzo uripo. Kupasa chaiko.

https://colab.research.google.com/github/lkwq007/stablediffusion-infinity/blob/master/stablediffusion_infinity_colab.ipynb#scrollTo=lVLSD0Dh0i-L

Dreambot ine Yakagadzikana Diffusion

Uku ndiko kuita kweGoogle's Dreamboth neStable Diffusion iyo inobvumira, kubva pamifananidzo mishoma yemunhu, kuwana yakasarudzika mhedzisiro nechiso icho demos.

Nzira inoshamisa yekugadzirisa mifananidzo

https://github.com/XavierXiao/Dreambooth-Stable-Diffusion

Mamwe maColabs

Iwe unotoziva kushanda muColab, zvakanaka ndichakusiira vamwe vandiri kuwana kuti ushandise waunoda zvakanyanya. Kunyangwe iwe uchida iwe unogona kugadzira kopi uye kuigadzirisa kune yaunoda kuti uve neyako vhezheni

Kubva pane webhusaiti yayo yepamutemo

Nzira iri nyore yekuishandisa, sekunge iwe unoshandisa Dall-e 2 muOpenAI, asi kana ukashandisa chikuva basa rinobhadharwa. https://stability.ai/

Kubva kuHuggingFace

Sarudzo inonakidza yekuiedza nekukurumidza uye kutora mimwe mifananidzo, kungoona kuti inoshanda sei, asi pane zvakawanda zvingasarudzwa zvatichashandisa kana isu tichizonyatsoita izvi.

https://huggingface.co/spaces/stabilityai/stable-diffusion

Uchishandisa AWS kana imwe Cloud sevhisi

Iyo Yakagadzika Diffusion modhi inogona kushandiswa nekuimhanyisa pane Hardware mugore, yakasarudzika sevhisi ndeyeAmazon's AWS. Parizvino ndiri kuyedza neEC2 zviitiko kushanda nemaalgorithms akasiyana. Ndichakuudza kuti zvakamira sei.

Mamwe mabasa ekubhadhara

Kune akawanda uye akawanda uye akawanda ari kubuda, kubva pakuitwa mustock mafoto kune mawebhusaiti anotitendera kuti tibatanidze nemaAPI. Parizvino izvi zvabata pfungwa dzangu, kunyangwe ini pachangu ndichashandisa masevhisi emahara

Zvishandiso zveinjiniya nekukurumidza

Injiniya yekuchimbidza ndicho chikamu chinoreva chizvarwa chekukurumidza, ndiko kuti, mutsara watinodyisa nawo modhi kuitira kuti igadzire mifananidzo yedu. Haisi nyaya diki uye unofanirwa kunyatsoziva mashandisiro ayo kuti uwane mibairo mikuru.

Chishandiso chinobatsira kwazvo kudzidza lexicon, kwatinoona mifananidzo uye nekukasira kwavakashandisa, mhodzi uye chiyero chekutungamira.

Kubhurawuza kwakatenderedza iwe unozodzidza rudzi rwezvinhu zvaunofanira kupa kune kukurumidza kuwana mhando yemhedzisiro yauri kutsvaga.

Leave mhinduro