Skip to content
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

Try diffusion models #4

Open
kumatheworld opened this issue Jul 8, 2023 · 1 comment
Open

Try diffusion models #4

kumatheworld opened this issue Jul 8, 2023 · 1 comment
Assignees

Comments

@kumatheworld
Copy link
Owner

Since the current VAEs and GANs don't look satisfactory, you might want to try some diffusion models. Hugging Face's diffusers will be a good starting point.

@kumatheworld
Copy link
Owner Author

I tried the following tiny model from diffusers, but the optimization step takes ~1s per batch of 64 images on my Apple M1 PC. Perhaps you might want to define a lightweight architecture on your own.

from diffusers import UNet2DModel

UNet2DModel(
    sample_size=64,
    in_channels=1,
    out_channels=1,
    layers_per_block=1,
    block_out_channels=[32, 32],
    down_block_types=["ResnetDownsampleBlock2D", "ResnetDownsampleBlock2D"],
    up_block_types=["ResnetUpsampleBlock2D", "ResnetUpsampleBlock2D"],
)

@kumatheworld kumatheworld self-assigned this Aug 1, 2023
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

1 participant