Views
No views yet

diffusers library as a custom pipeline.pip install torch torchvision diffusers transformers accelerate safetensors huggingface-hub1import torch
2
3from diffusers import DiffusionPipeline
4from pipeline import DrUM
5
6# Load pipeline and attach DrUM
7#drum = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", custom_pipeline = "Burf/DrUM", pipeline = "runwayml/stable-diffusion-v1-5", torch_dtype = torch.bfloat16, device = "cuda")
8pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype = torch.bfloat16).to("cuda")
9drum = DrUM(pipeline)
10
11# Generate personalized images
12images = drum(
13 prompt = "a photograph of an astronaut riding a horse",
14 ref = ["A retro-futuristic space exploration movie poster with bold, vibrant colors"],
15 weight = [1.0],
16 alpha = 0.3
17)
18
19images[0].save("personalized_image.png")| Architecture | Pipeline | Text encoder | DrUM weight |
|---|---|---|---|
| Stable Diffusion v1 | runwayml/stable-diffusion-v1-5, prompthero/openjourney-v4,stablediffusionapi/realistic-vision-v51,stablediffusionapi/deliberate-v2,stablediffusionapi/anything-v5, WarriorMama777/AbyssOrangeMix2, ... | openai/clip-vit-large-patch14 | L.safetensors |
| Stable Diffusion v2 | stabilityai/stable-diffusion-2-1, ... | openai/clip-vit-huge-patch14 | H.safetensors |
| Stable Diffusion XL | stabilityai/stable-diffusion-xl-base-1.0, ... | openai/clip-vit-large-patch14,laion/CLIP-ViT-bigG-14-laion2B-39B-b160k | L.safetensors,bigG.safetensors |
| Stable Diffusion v3 | stabilityai/stable-diffusion-3.5-largestabilityai/stable-diffusion-3.5-medium, ... | openai/clip-vit-large-patch14,laion/CLIP-ViT-bigG-14-laion2B-39B-b160k,google/t5-v1_1-xxl | L.safetensors,bigG.safetensors,T5.safetensors |
| FLUX | black-forest-labs/FLUX.1-dev, ... | openai/clip-vit-large-patch14,google/t5-v1_1-xxl | L.safetensorsT5.safetensors |
@InProceedings{kim2025drum,
author = {Kim, Hyungjin and Ahn, Seokho and Seo, Young-Duk},
title = {Draw Your Mind: Personalized Generation via Condition-Level Modeling in Text-to-Image Diffusion Models},
booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
month = {October},
year = {2025},
pages = {17171-17180}
}