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

Implement Spatial Transformer used by LDM UNet #438

Closed

Commits on Jul 27, 2023

  1. Implement Spatial Transformer used by LDM UNet (facebookresearch#438)

    Summary:
    Pull Request resolved: facebookresearch#438
    
    **TL;DR**
    Implements the Spatial Transformer and the Cross-Attention layers used within the LDM Unet.
    
    **Summary of Changes**
    1. Implement `TransformerCrossAttentionLayer` similar to LDM;s implementation. This module uses `GEGLU` activation instead of `GLU`
    1. Implements `SpatialTransformer` that operates on images.
    1. Implement `GEGLU` activation
    1. Implement `zero_module` util
    1. Add tests for each component
    
    Reviewed By: pbontrager
    
    Differential Revision: D47709486
    
    fbshipit-source-id: 16da8eaeac65c64b40b5afe266a12540d95a7bcc
    Abhinav Arora authored and facebook-github-bot committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    a5c8937 View commit details
    Browse the repository at this point in the history