Note:

Deploy Stable Diffusion Automatic1111 on Oracle Cloud Infrastructure GPUs

In the ever-evolving landscape of artificial intelligence (AI) and machine learning (ML), researchers and engineers are constantly pushing the boundaries of what is possible. One remarkable development that has gained momentum in recent years is the Stable Diffusion model. This cutting-edge technology offers significant advantages, promises a wide array of use cases, and continues to see exciting developments. In this tutorial, we’ll delve into the world of Stable Diffusion AI/ML models, exploring their benefits, exploring their use cases, and discussing the latest developments in this fascinating field.

Introduction

Stable Diffusion: Stable Diffusion is a relatively new and innovative approach in the world of AI and ML. It’s a probabilistic generative model that has gained prominence due to its ability to generate high-quality data samples and its robustness to various training conditions. The stable diffusion model, often based on the diffusion process, allows for controlled data generation and manipulation. Here’s a brief overview of its key components:

Diffusion Process: The core idea of the stable diffusion model is the diffusion process, which models the evolution of a data distribution over time. It involves iteratively applying a noise process to the data until it converges to the desired distribution.

Denoising Autoencoder: Within the diffusion process, a denoising autoencoder is used to recover the original data from the noisy samples. This process helps the model learn and capture meaningful features of the data.

Objective

Automatic1111 Stable Diffusion is a game-changing tool in the realm of AI-generated imagery. This innovative WebUI offers a user-friendly platform, reshaping the landscape of creating AI-generated images. With it, users can seamlessly operate and oversee their AI models dedicated to image generation. We will be deploying Automatic1111 and its prerequisites to infer your favorite Stable Diffusion Model in Oracle Linux 8.

Prerequisities

Task 1: Provision an GPU compute instance on OCI

Task 2: Install Prerequisites for Automatic1111

Task 3: Run AUTOMATIC1111

Once you do this, the application should load and appear as illustrated below. You’ll find the desired models conveniently located in the top-right corner, as highlighted.

result

Task 4: Deploy AUTOMATIC1111 via service manager systemctl

Things to know and improvements

Model Loading

Acknowledgments

Author - Abhiram Ampabathina (Senior Cloud Architect)

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.