![]() conda activate ldmĪ prompt will appear where you can enter some natural language text. Activate the conda environment, preload models, and run the dream script. Once the setup is done, these are the steps to run Stable Diffusion. The first time this step runs, it will take a long time, due to the numerous dependencies involved. While still in the Stable Diffusion repo, create the conda environment in which the scripts will run. Mv ~/Downloads/sd-v1-4.ckpt models/ldm/stable-diffusion-v1/model.ckpt Create the conda environment Next, move the model file downloaded previously, into this repo, renaming it to model.ckpt mkdir -p models/ldm/stable-diffusion-v1/ The Dream Script Stable Diffusion repo is a fork of Stable Diffusion, it comes with some convenience functions to accept a text prompt, as well as a web interface. Get the Dream Script Stable Diffusion repository Under the ‘files and versions’ tab, download the checkpoint file, sd-v1-4.ckpt. Once registered, head to the latest model repository, which at the time of writing is stable-diffusion-v-1-4-original. You will need to register with any email address. The model file needed by Stable Diffusion is hosted on Hugging Face. ~/anaconda3/bin/conda init Get the model file ~/anaconda3/bin/conda config -set auto_activate_base false Once installation is finished, initialise conda, but tell it not to activate each time the shell starts. The download URL may change over time, so replace it.: wget Ĭhmod +x Anaconda3-2022.05-Linux-x86_64.sh Setup Install Anacondaĭownload the Anaconda installer script from their website and install it. The simplest and best way of running Stable Diffusion is through the Dream Script Stable Diffusion fork, which comes with some convenience functions. Because it’s open source, it’s also easy to run it locally, which makes it very convenient to experiment with in your own time. Stable Diffusion is a machine learning model that can generate images from natural language descriptions. ![]() Press Enter to this question: Do you wish the installer to initialize Anaconda3 by running conda init?Ĭlose and reopen the terminal and type in it: source ~/.The simplest way to get started with Stable Diffusion on Ubuntu Mendhak / Code The simplest way to get started with Stable Diffusion on Ubuntu Press Enter to install to the default folder. Type yes and press Enter to agree to the license agreement. Scroll down by pressing Enter on the license agreement. Install the Anaconda version that you downloaded: bash ~/Downloads/Anaconda3-2019.07-Linux-x86_64.sh # Anaconda 3.7 (latest 2019)īash ~/Downloads/Anaconda2-2019.07-Linux-x86_64.sh # Anaconda 2.7 Verify the downloaded data with MD5 or SHA-2, with /path/filename being the actual path/filename of the file that you downloaded: md5sum /path/filename # md5 For short instructions, do the following (running the commands below in a terminal):ĭownload the Linux Anaconda version you need. Thank you a lot for your help in advance,Ĭlick here for detailed explanation. My natural guess would be that i have to tell him, where the download is, or possibly im using the wrong commandline (or something with the 'bash' is fishy), but as i said i am quite clueless. Now i am quite confused, sadly could not find the answer around here (probably is somewhere already, but neither googling nor searching stackoverflow gave me the result, probably am just missing the right terms to google it) It told me: 'bash: Anaconda3-4.3.0-Linux-x86_64.sh: No such file or directory'. Naturally i skipped part 2, opened my cmd, pasted 'bash Anaconda3-4.3.0-Linux-x86_64.sh' in there and hit enter. In your terminal window type one of the below and follow the instructions:.Optional: Verify data integrity with MD5 or SHA-256 More info.In order to use GPU-supported tensorflow i tried to install Anaconda on my unix/gnome partition, following the instructions of the site: ( ) Spoiler: I'm still totally new to Ubuntu/Linux in general
0 Comments
Leave a Reply. |