Skip to content

Train the unet from scratch #8458

Answered by sayakpaul
dahui-y asked this question in Q&A
Discussion options

You must be logged in to vote

You could do something like:

from diffusers import UNet2DConditionModel

config = UNet2DConditionModel.load_config(
    "runwayml/stable-diffusion-v1-5", subfolder="unet"
)
unet = UNet2DConditionModel.from_config(config)
assert unet is not None

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dahui-y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants