Views
No views yet
| Model | Params (M) | UNet 1-step inference time (ms) | GPU Memory Usage (MiB) |
|---|---|---|---|
| SDXL | 2560 | 448.47 | 18431 |
| Hybrid-sd-xl-700m | 780 ↓ | 185.93 ↓ | 10651 ↓ |








.safetensors versions of the Hybrid-sd-xl-700m weights.1import torch
2from diffusers import StableDiffusionXLPipeline,UNet2DConditionModel
3
4unet = UNet2DConditionModel.from_pretrained('cqyan/hybrid-sd-xl-700m')
5pipe = StableDiffusionXLPipeline.from_pretrained(
6 'stabilityai/stable-diffusion-xl-base-1.0',
7 unet = unet,
8 torch_dtype=torch.float16)
9
10prompt = "full body, cat dressed as a Viking, with weapon in his paws, battle coloring, glow hyper-detail, hyper-realism, cinematic"
11image = pipe(prompt, num_inference_steps=25, guidance_scale=7).images[0]
12image.save("cat.png")