# Architecture Overview

The architecture of Leona's Sketches is designed to maximize flexibility and performance.

<figure><img src="https://2929849728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeaF8ciUTA6BLYKFBYGnu%2Fuploads%2FvRLKFMa2Vx7nnc1RCCI9%2Fheader.png?alt=media&#x26;token=74e17622-81ea-4f80-85f6-4db9441ec6cf" alt=""><figcaption></figcaption></figure>

**Core Components:**

1. **Input Parsing:** Converts text prompts or sketches into high-dimensional embeddings using pre-trained encoders. This stage captures the essence of the input and sets the groundwork for sketch generation.
2. **Diffusion Process:** Utilizes iterative refinement steps to transform random noise into meaningful artistic sketches. Self-attention layers guide the process to focus on critical regions of the input.
3. **Post-Processing:** Applies user-specified enhancements such as style modifiers, denoising, and sharpening to produce a polished final output.

**Scalability:**

The architecture supports both single-image processing and batch operations, making it suitable for individual creators and production-level workflows.
