![]() You can also use a crude image as a source for the prompt with the -init_img flag. dream> photograph of highly detailed closeup of victoria sponge cake -S2420237860 This allows you to regenerate the exact same image by specifying the seed with your text prompt. Against each line, you will also see a seed number that looks something like this: -S2420237860. Wait a few seconds, and an image gets generated in the outputs/img-sample folder.Ĭonveniently, a dream_log.txt file shows you all the prompts you’ve run in case you want to refer back to something. * 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. To view the license, type yes and hit Enter.The simplest way to get started with Stable Diffusion on Ubuntu Mendhak / Code The simplest way to get started with Stable Diffusion on Ubuntu ![]() Once you have run the Bash script, it'll prompt you to view the license agreement. The first command will download the package, the second command will verify the hash integrity of the downloaded file, and the third command executes the Miniconda installer. Sha256sum Miniconda3-latest-Linux-x86_64. To install Miniconda, use the following commands: wget https: ///miniconda/Miniconda3-latest-Linux-x86_64.sh ![]() If you want to install any scientific packages, you can still do it with conda. Miniconda is a lighter distribution that only comes packed with conda and Python. Those who don’t want Anaconda to take up all the disk space on their system can install Miniconda instead. To install Anaconda, run the Anaconda Bash shell script like this: bash Anaconda3-2022. If the code matches, you can move on to install Anaconda on your system. If the match fails, you will get errors and the script will not install Anaconda.
0 Comments
Leave a Reply. |