E-book details

Using Stable Diffusion with Python. Leverage Python to control and automate high-quality AI image generation using Stable Diffusion

Using Stable Diffusion with Python. Leverage Python to control and automate high-quality AI image generation using Stable Diffusion

Andrew Zhu (Shudong Zhu), Matthew Fisher

Ebook
Stable Diffusion is a game-changing AI tool that enables you to create stunning images with code. The author, a seasoned Microsoft applied data scientist and contributor to the Hugging Face Diffusers library, leverages his 15+ years of experience to help you master Stable Diffusion by understanding the underlying concepts and techniques.
You’ll be introduced to Stable Diffusion, grasp the theory behind diffusion models, set up your environment, and generate your first image using diffusers. You'll optimize performance, leverage custom models, and integrate community-shared resources like LoRAs, textual inversion, and ControlNet to enhance your creations. Covering techniques such as face restoration, image upscaling, and image restoration, you’ll focus on unlocking prompt limitations, scheduled prompt parsing, and weighted prompts to create a fully customized and industry-level Stable Diffusion app. This book also looks into real-world applications in medical imaging, remote sensing, and photo enhancement. Finally, you'll gain insights into extracting generation data, ensuring data persistence, and leveraging AI models like BLIP for image description extraction.
By the end of this book, you'll be able to use Python to generate and edit images and leverage solutions to build Stable Diffusion apps for your business and users.
  • 1. Introducing Stable Diffusion
  • 2. Setting Up the Environment for Stable Diffusion
  • 3. Generating Images Using Stable Diffusion
  • 4. Understanding the Theory Behind Diffusion Models
  • 5. Understanding How Stable Diffusion Works
  • 6. Using Stable Diffusion Models
  • 7. Optimizing Performance and VRAM Usage
  • 8. Using Community-Shared LoRAs
  • 9. Using Textual Inversion
  • 10. Overcoming 77-Token Limitations and Enabling Prompt Weighting
  • 11. Image Restore and Super-Resolution
  • 12. Scheduled Prompt Parsing
  • 13. Generating Images with ControlNet
  • 14. Generating Video Using Stable Diffusion
  • 15. Generating Image Descriptions using BLIP-2 and LLaVA
  • 16. Exploring Stable Diffusion XL
  • 17. Building Optimized Prompts for Stable Diffusion
  • 18. Applications - Object Editing and Style Transferring
  • 19. Generation Data Persistence
  • 20. Creating Interactive User Interfaces
  • 21. Diffusion Model Transfer Learning
  • 22. Exploring Beyond Stable Diffusion
  • Title: Using Stable Diffusion with Python. Leverage Python to control and automate high-quality AI image generation using Stable Diffusion
  • Author: Andrew Zhu (Shudong Zhu), Matthew Fisher
  • Original title: Using Stable Diffusion with Python. Leverage Python to control and automate high-quality AI image generation using Stable Diffusion
  • ISBN: 9781835084311, 9781835084311
  • Date of issue: 2024-06-03
  • Format: Ebook
  • Item ID: e_3pti
  • Publisher: Packt Publishing