|
|
--- |
|
|
license: apache-2.0 |
|
|
datasets: |
|
|
- yandex/alchemist |
|
|
language: |
|
|
- en |
|
|
base_model: |
|
|
- stabilityai/stable-diffusion-3.5-medium |
|
|
--- |
|
|
|
|
|
 |
|
|
|
|
|
# Stable Diffusion 3.5 Medium Alchemist 👨🔬 |
|
|
|
|
|
[Stable Diffusion 3.5 Medium Alchemist](https://huggingface.co/yandex/stable-diffusion-3.5-medium-alchemist) is finetuned version of [Stable Diffusion 3.5 Medium](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium) on [Alchemist](https://huggingface.co/datasets/yandex/alchemist) dataset, proposed in the research paper "Alchemist: Turning Public Text-to-Image Data into Generative Gold". Model generates images with improved aesthetics and complexity. Find more details about dataset and training details in the paer |
|
|
|
|
|
## Using with Diffusers |
|
|
Upgrade to the latest version of the [🧨 diffusers library](https://github.com/huggingface/diffusers) |
|
|
``` |
|
|
pip install -U diffusers |
|
|
``` |
|
|
|
|
|
and then you can run |
|
|
```py |
|
|
import torch |
|
|
from diffusers import StableDiffusion3Pipeline |
|
|
|
|
|
pipe = StableDiffusion3Pipeline.from_pretrained("yandex/stable-diffusion-3.5-medium-alchemist", torch_dtype=torch.bfloat16) |
|
|
pipe = pipe.to("cuda") |
|
|
image = pipe( |
|
|
"a man standing under a tree", |
|
|
num_inference_steps=40, |
|
|
guidance_scale=4.5, |
|
|
).images[0] |
|
|
image.save("man.png") |
|
|
``` |