Skip to content

leo27945875/simple_sd_unet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple implementation of the UNet of StableDiffusion

This is a simpler implementation of the UNet of SD than diffusers. Researchers can test their new ideas on this implementation more quickly and conveniently.

It can directly load the SD model config and weights in the diffusers:

from diffusers import StableDiffusionPipeline
from simple_sd_unet.unet import Cond_UNet2DModel

pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
unet = Cond_UNet2DModel(pipe.unet.config)
unet.load_state_dict(pipe.unet.state_dict())

Reference

Releases

No releases published

Packages

No packages published

Languages