![]() * Initialization done ! Awaiting your command (-h for help, 'q' to quit )Īs an example, try dream> photograph of highly detailed closeup of victoria sponge cake 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. The simplest way to get started with Stable Diffusion on Ubuntu Mendhak / Code The simplest way to get started with Stable Diffusion on Ubuntu
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |