Skip to content

Stable Diffusion

Stable Diffusion represents a groundbreaking implementation of latent diffusion models (LDMs) in AI image synthesis. This deep learning architecture operates by decomposing the image generation process into a lower-dimensional latent space, significantly reducing computational requirements while maintaining high-fidelity output.

Olares simplifies the deployment and management of Stable Diffusion. Unlike traditional deployments that require manual configuration of file systems and databases, Olares shields developers from these infrastructure complexities, allowing you to focus solely on using the model for image generation.

With Olares's multi-user support, team members can share a single Stable Diffusion deployment while maintaining individual data privacy. This approach eliminates the need for redundant system installations that would otherwise consume excessive hardware resources.

What can Stable Diffusion do?

Whether you're an artist looking to expand your creative toolkit, a developer integrating AI imaging into your workflow, or simply curious about AI art generation, Stable Diffusion offers:

  • Text-to-image generation
  • Image-to-image transformation
  • Inpainting and outpainting capabilities
  • Style transfer and artistic modifications
  • High-resolution image creation and upscaling

Install SD Web UI

The installation process is straightforward, with just a couple of steps based on your role:

  • For admin: Install both "SD Web UI For Cluster" and "SD Web UI".
  • For team members: Ensure your admin has installed "SD Web UI For Cluster", and install "SD Web UI" only.

Launch SD Web UI from your desktop, and voilà - unleash your creativity and start generating stunning images!

Prevent conflicts among members

In SD Web UI, checkpoint settings are globally applied to all users by default. When one user switches to a different checkpoint, all subsequent image generations by other users will also use this newly selected checkpoint. To prevent workflow disruptions in multi-user environments, you could specify checkpoints for individual tasks.

Checkpoint settings

  1. Global checkpoint
  2. Per-task checkpoint

Adjust system settings

When launching SD Web UI, the --xformers flag is enabled by default to:

  • Reduce VRAM usage
  • Accelerate image generation
  • Support higher resolution outputs

While this optimization allows for higher resolution image generation, it comes with some trade-offs, such as less stylistic variation between generated images, and slightly reduced prompt interpretation accuracy.

If you need to remove --xformers:

INFO

Only Olares admin can adjust system parameters through the Control Hub app.

  1. Open Control Hub, and navigate to Browse.

  2. Locate sdwebui under the admin's namespace.

  3. Under Deployments, click sdwebui.

  4. Click more_vert in the top right corner, and click Edit YAML.

  5. In the YAML editor, locate --xformers and remove it. The default YAML file should look similar to the following.

    yaml
    env:
      - name: CLI_ARGS
        value: >-
          --allow-code --enable-insecure-extension-access --api
          --no-hashing --gradio-queue --xformers
  6. Click OK to apply the system settings.

Image 1Image 2
Image 3Image 4