Skip to content

Exposing models elementary blocks to design new models #6824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zaccharieramzi opened this issue Feb 2, 2024 · 4 comments
Closed

Exposing models elementary blocks to design new models #6824

zaccharieramzi opened this issue Feb 2, 2024 · 4 comments

Comments

@zaccharieramzi
Copy link

Is your feature request related to a problem? Please describe.
I would like to implement a new model following the diffusers API, namely the conditional UNet1D (mentioned here, but saying that it will not be implemented at the moment).
To do so, I would like to reuse some of the elementary 1D blocks, like DownBlock1D or UpBlock1D.
Unfortunately they are not available for import.

Describe the solution you'd like.
I would like to be able to write the following import statement without a ModuleNotFoundError.

from diffusers.models.unet.unet_1d_blocks import (
    DownBlock1D,
    UpBlock1D,
)

Describe alternatives you've considered.
My current mitigation is to simply copy-paste the code.

@yiyixuxu
Copy link
Collaborator

yiyixuxu commented Feb 8, 2024

Hi @zaccharieramzi
sorry I'm not able to reproduce your issue
are you using latest version of diffusers?

@zaccharieramzi
Copy link
Author

@zaccharieramzi
Copy link
Author

Sorry there was a typo in the import, it's actually

from diffusers.models.unets.unet_1d_blocks import (
    DownBlock1D,
    UpBlock1D,
)

I was missing an "s" at the end of "unets".

@kkj15dk
Copy link
Contributor

kkj15dk commented Jul 1, 2024

Did you ever make a conditional 1D U-net. I would really like to make one which is compatible with the diffusers library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants