Sudhanshu619's picture
Update links for repo name
ea56792 verified
|
Raw History Blame Contribute Delete
8.28 kB
---
license: creativeml-openrail-m
language:
- en
library_name: diffusers
pipeline_tag: text-to-image
base_model:
- Lykon/dreamshaper-8
- latent-consistency/lcm-lora-sdv1-5
base_model_relation: merge
thumbnail: https://huggingface.co/SDLC-Corp/DriyaGenAI-text-to-image/resolve/main/samples/sample_2.png
tags:
- text-to-image
- image-generation
- stable-diffusion
- stable-diffusion-1.5
- stable-diffusion-diffusers
- lcm
- lcm-lora
- latent-consistency-model
- fast-inference
- few-step
- cpu
- dreamshaper
- photorealistic
- art
widget:
- text: a majestic palace on a lake at sunset, cinematic lighting, highly detailed
output:
url: samples/sample_1.png
- text: a cute golden retriever puppy in a green garden, professional photography
output:
url: samples/sample_2.png
- text: a futuristic neon city at night in the rain, cyberpunk
output:
url: samples/sample_3.png
- text: a colorful macaw parrot on a branch, wildlife photography
output:
url: samples/sample_4.png
---
# DrushyaGen Fast v1: 4-Step Text-to-Image Model (Stable Diffusion 1.5 + LCM)
**Imagine. Generate. Create.** DrushyaGen Fast v1 is a **fast text-to-image model** that turns
a text prompt into a 512Γ—512 image in **just 4–8 denoising steps** instead of the usual 25–50.
It is built on [DreamShaper 8](https://huggingface.co/Lykon/dreamshaper-8), one of the most
popular Stable Diffusion 1.5 models, with the
[LCM-LoRA](https://huggingface.co/latent-consistency/lcm-lora-sdv1-5) (Latent Consistency Model)
**fused directly into the weights**. No LoRA loading, no scheduler setup: load it with πŸ€— Diffusers
and generate. It is light enough to run on a **CPU, a laptop, or a free Colab GPU**.
| | |
|---|---|
| **Steps per image** | 4–8 (vs. 25–50 for standard SD 1.5) |
| **Resolution** | 512 Γ— 512 |
| **Weights** | fp16 safetensors, ~2.7 GB total |
| **Runs on** | NVIDIA GPU, Apple Silicon (MPS), or CPU |
| **Safety checker** | Included and enabled by default |
| **License** | CreativeML OpenRAIL-M |
## Sample images
All generated with **4 steps**, guidance scale 1.5, 512Γ—512, no negative prompt, no post-processing.
| | |
|:---:|:---:|
| ![Palace on a lake at sunset, generated by DrushyaGen Fast v1](samples/sample_1.png) | ![Golden retriever puppy in a garden, generated by DrushyaGen Fast v1](samples/sample_2.png) |
| *a majestic palace on a lake at sunset, cinematic lighting, highly detailed* | *a cute golden retriever puppy in a green garden, professional photography* |
| ![Neon cyberpunk city at night in the rain, generated by DrushyaGen Fast v1](samples/sample_3.png) | ![Colorful macaw parrot on a branch, generated by DrushyaGen Fast v1](samples/sample_4.png) |
| *a futuristic neon city at night in the rain, cyberpunk* | *a colorful macaw parrot on a branch, wildlife photography* |
## Quick start
```bash
pip install diffusers transformers accelerate safetensors torch
```
```python
import torch
from diffusers import StableDiffusionPipeline
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
dtype = torch.float16 if device == "cuda" else torch.float32
pipe = StableDiffusionPipeline.from_pretrained(
"SDLC-Corp/DriyaGenAI-text-to-image", torch_dtype=dtype
).to(device)
image = pipe(
"a majestic palace on a lake at sunset, cinematic lighting, highly detailed",
num_inference_steps=4,
guidance_scale=1.5,
).images[0]
image.save("drushyagen.png")
```
The LCM scheduler is already the default, so the settings above are all you need.
### Reproducible results
```python
generator = torch.Generator(device).manual_seed(42)
image = pipe("a colorful macaw parrot on a branch", num_inference_steps=4,
guidance_scale=1.5, generator=generator).images[0]
```
### Several images at once
```python
images = pipe(["a red vintage car on a mountain road", "a cozy cabin in snowy woods"],
num_inference_steps=4, guidance_scale=1.5).images
```
## Recommended settings
| Setting | Recommended | Notes |
|---|---|---|
| `num_inference_steps` | **4** (fast) to **8** (more detail) | More than 8 rarely helps |
| `guidance_scale` | **1.0–2.0** | Values above ~2 over-saturate ("burn") the image |
| Size | **512 Γ— 512** | Other sizes lose quality quickly |
| Negative prompt | Usually not needed | Has little effect at low guidance |
| Scheduler | `LCMScheduler` (default) | Other schedulers need 20+ steps and will not look right |
## Prompting tips
- **Describe the subject, then the style and light:** `a lighthouse on a cliff, stormy sea, oil painting, dramatic lighting`
- **Photo keywords work well** (DreamShaper is strong at photorealism): `professional photography`, `85mm`, `natural light`, `bokeh`
- **Art styles work too:** `watercolor`, `anime style`, `fantasy concept art`, `Indian miniature painting`, `cyberpunk`
- Keep prompts **clear and non-contradictory**; the text encoder reads at most 77 tokens.
## Why DrushyaGen Fast v1?
- **Fast:** 4 steps instead of 25–50, roughly 6–12Γ— fewer UNet passes than standard SD 1.5.
- **Simple:** one `from_pretrained` call. The LCM-LoRA is pre-merged and the scheduler is pre-set.
- **Low hardware needs:** SD 1.5 architecture, fp16 weights. In our test, a 4-step image took
about 2 minutes on a laptop CPU with no GPU.
- **Good-looking by default:** DreamShaper 8 base, which is known for strong photorealistic and
artistic results.
- **Safe by default:** the standard Stable Diffusion NSFW safety checker is included.
## Use cases
Concept art and mood boards, blog and social media images, game and storyboard ideas,
rapid prototyping of image ideas, teaching and demos of diffusion models, and apps that
need image generation on modest hardware.
## How it was made
1. Base model: [`Lykon/dreamshaper-8`](https://huggingface.co/Lykon/dreamshaper-8) (Stable Diffusion 1.5 architecture).
2. LoRA: [`latent-consistency/lcm-lora-sdv1-5`](https://huggingface.co/latent-consistency/lcm-lora-sdv1-5) merged into the UNet at scale 1.0 (fused in fp32 for accuracy).
3. Scheduler: `LCMScheduler` saved as the default.
4. Weights saved as fp16 safetensors in the standard πŸ€— Diffusers layout.
5. NSFW safety checker: [`CompVis/stable-diffusion-safety-checker`](https://huggingface.co/CompVis/stable-diffusion-safety-checker).
No additional training was done. This is a merge of the models above, packaged for easy, fast use.
The build script is open source: [GitHub, DrushyaGen AI](https://github.com/Sudhanshu619/-DriyaGenAI-text-to-image).
## Limitations and bias
- Best at **512Γ—512**; larger or non-square sizes may show repeated objects or distortion.
- Like all SD 1.5 models, it is **weak at legible text, hands, and scenes with many objects**.
- Few-step generation trades some fine detail for speed compared with 30+ step sampling.
- Inherits the biases of Stable Diffusion 1.5 and its LAION training data. Outputs may
reflect social and cultural stereotypes. Review images before publishing them.
- Not intended for generating images of real people without consent, or for misinformation.
## License
[CreativeML OpenRAIL-M](https://huggingface.co/spaces/CompVis/stable-diffusion-license), inherited from
Stable Diffusion 1.5 and DreamShaper 8. You may use the model and its outputs commercially, but you must
follow the license's use restrictions and pass them on to anyone you share the model with.
## About
DrushyaGen Fast v1 was developed at [SDLC Corp](https://sdlccorp.com/), an AI engineering company.
It is designed for fast, low-cost image generation in marketing and content workflows.
## Credits
- [Stable Diffusion 1.5](https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5) by CompVis, Stability AI and Runway
- [DreamShaper 8](https://huggingface.co/Lykon/dreamshaper-8) by Lykon
- [LCM-LoRA](https://huggingface.co/latent-consistency/lcm-lora-sdv1-5) by the Latent Consistency Models team ([paper](https://arxiv.org/abs/2311.05556))
- [πŸ€— Diffusers](https://github.com/huggingface/diffusers) by Hugging Face
## Citation
```bibtex
@misc{drushyagen-fast-v1,
title = {DrushyaGen Fast v1: a 4-step text-to-image model},
author = {SDLC Corp},
year = {2026},
url = {https://huggingface.co/SDLC-Corp/DriyaGenAI-text-to-image}
}
```