Views
No views yet

PyTorch 2.5.1Diffusers 0.32.1Accelerate 1.2.1Transformers 4.47.1pip install torch
pip install diffusers accelerate transformersfrom PIL import Image
from diffusers import DiffusionPipeline
pipeline = DiffusionPipeline.from_pretrained("superdiff/superdiff-sdxl-v1-0", custom_pipeline='pipeline', trust_remote_code=True)
output = pipeline("a flamingo", "a candy cane", seed=1, num_inference_steps=200, batch_size=1)
image = Image.fromarray(output[0])
image.save("superdiff_output.png")pipeline():prompt_1 [required]: text prompt describing first concept to superimpose (e.g. "a flamingo")prompt_2[required]: text prompt describing second concept to superimpose (e.g. "a candy cane")seed[optional: default=None]: seed for random noise generator for reproducibility; for non-deterministic outputs, set to Nonenum_inference_steps[optional: default=200]: number of denoising stepsbatch_size [optional: default=1]: batch sizeguidance_scale [optional: default=7.5]: scale for classifier-free guidanceheight, width [optional: default=1024]: height and width of generated images (we recommend leaving it at 1024!)"teapot, high quality photography" or "a highly realistic photo of a volcano".@article{skreta2025superposition,
title={The Superposition of Diffusion Models Using the It$\backslash$\^{} o Density Estimator},
author={Skreta, Marta and Atanackovic, Lazar and Bose, Avishek Joey and Tong, Alexander and Neklyudov, Kirill},
journal={International Conference on Learning Representations},
year={2025}
}