How to run Stable Diffusion? 5 methods for running it online and locally.
Stable Diffusion is a text-to-image generative model released in 2022 by the startup Stability AI and researchers from the University of Munich and Runway. This article will explain how to run Stable Diffusion online and locally...
Stable Diffusion is a product of the startup Stability AIIn 2022, researchers from the University of Munich and Runway released a text-to-image generative model that supports functions such as text-to-image, image-to-image, image modification, and low-resolution image filling. Due to its...freeopen sourceStable Diffusion produces high-quality images, making it popular among creators. This article will explain how to run Stable Diffusion online and locally, allowing you to...fastGet started generating the images you want.
Table of Contents
How to run Stable Diffusion online
DreamStudio
DreamStudio is StabilityAIThe company's official website application for generating images is based on the Stable Diffusion model. Users can input natural language and change adjustment parameters to create custom images. It also supports API access for use in self-developed applications or robots. After registering and logging into DreamStudio, you can obtain...freeThe 25 bonus points can generate approximately 30 standard images. If you need more generation times, you can purchase additional points for $10, which can be used to purchase 1000 additional points.
Official website address:https://beta.dreamstudio.ai/generate
Clipdrop Stable Diffusion XL
Clipdrop is StabilityAIA series of launchesAIImage processing toolkit, supporting image erasure, image enlargement, image lighting, background removal, background replacement, scaling and filling, etc.AIImage functionality. In addition to these features, Clipdrop supports...up to dateThe Stable Diffusion XL version allows users to visit its website, enter a prompt text description, select an image style, and click the Generate button to generate an image. Currently,freeThe current version of Clipdrop allows users to generate 400 images per day using Stable Diffusion XL, which will display a small Clipdrop watermark in the lower right corner. For more generation attempts and watermark removal, consider upgrading to the premium version of Clipdrop, which allows for 1500 image generation per day and unlimited use of other tools.AIFunction.
Official website address:https://clipdrop.co/stable-diffusion
Hugging Face
Hugging Face is well-known.open sourceAIThe model community is a platform that brings together major global brands.AIThe model can be downloaded by users via Hugging Face.AIThe model's dataset can also be run online to view real-time results. Stable Diffusion on Hugging Face is powered by Stability.AIThis is an officially created platform, currently at version 2.1. Users can directly enter a description and click "Generate image" to generate an image. Due to the large user base of Hugging Face, image generation may be slow, taking approximately 10 seconds or more.
Official website address:https://huggingface.co/spaces/stabilityai/stable-diffusion
Replicate
Replicate is a tool to help usersfastrunopen sourceMachine LearningPlatforms for models, such as language models, video creation and editing, image resolution enhancement, image restoration, and image-to-text conversion, allow users to add just a few lines of code.fastDevelop your ownAIApplications. The Replicate platform also provides an online runtime environment for Stable Diffusion, which generates data faster than Hugging Face.
Official website address:https://replicate.com/stability-ai/stable-diffusion
How to run Stable Diffusion locally
If you're willing to experiment and fine-tune the data model based on the provided input, or if you're concerned about privacy and security, running the Stable Diffusion model on your local computer might be a good option. Here are the steps to run Stable Diffusion locally:
Step 1: Install Python and Git
To install Python version 3.10.6, you can start from...Python official websiteDownload and install it. After installation, you can open the command-line terminal and type...python -versionTo check the Python version, the next step is to install the code management tool Git, which can be found from [link to Git installation guide].Git's official websiteDownload the installation package.
Step 2: Register GitHub and Hugging Face accounts
GitHub is used to host software code, while Hugging Face is...open sourceAIRegistering accounts on these two platforms will make it easier for you to synchronize and manage your code and download Stable Diffusion models.
Step 3: Clone the Stable Diffusion Web-UI to your local computer
Stable Diffusion Web-UI is aopen sourceThe Stable Diffusion web interface project, developed based on Grado, can help developers.fastCreate the user interface for Stable Diffusion. First, create a folder, such as sd-project, and then use the cd command to navigate to that folder.cd sd-projectThen run the `git clone` command to download the project.git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Step 4: Download the Stable Diffusion model from Hugging Face
Visit the Hugging Face website and log in with your registered account.Download Stable Diffusion version 1.5After the model is downloaded, navigate to the "models" folder inside the stable-diffusion-webui folder, and then place the model there.
Step 5: Set up the Stable Diffusion Web-UI
Open a command-line terminal and use the `cd` command to navigate to the `stable-diffusion-webui` folder, such as...cd xx/sd-project/stable-diffusion-webuiThen enterwebui-user.batInstall dependencies.
Step 6: Run Stable Diffusion
After the dependencies are successfully installed, a URL will appear in the command prompt:http://127.0.0.1:7860Copy and paste it into your browser's address bar to run stable-diffusion-web-ui.