Skip to content

Update support for global cond U-Net#331

Open
sgreenbury wants to merge 3 commits intomainfrom
update-support-for-global-cond-unet
Open

Update support for global cond U-Net#331
sgreenbury wants to merge 3 commits intomainfrom
update-support-for-global-cond-unet

Conversation

@sgreenbury
Copy link
Copy Markdown
Contributor

Analogous PR to #330 but for U-Net.

This pull request updates the Azula UNet processor to support global conditioning and improves flexibility in normalization and modulation. The main changes include adding support for an optional global conditioning vector, updating configuration files to control this feature, and refactoring the processor to use the new TemporalUNetBackbone with enhanced argument handling.

Global conditioning support and configuration:

  • Added include_global_cond and global_cond_channels arguments to the AzulaUNetProcessor and corresponding YAML config files, allowing the model to optionally use a global conditioning vector. [1] [2] [3] [4]
  • Updated the processor's forward and map methods to handle global conditioning, including input validation and correct tensor passing. [1] [2]

Processor and backbone refactoring:

  • Switched the processor implementation from the old UNet to the new TemporalUNetBackbone, introducing new arguments for normalization (norm, groups), modulation, and global conditioning. [1] [2]
  • Updated the backbone and processor to support precomputed modulation and flexible normalization/grouping, propagating these arguments throughout the codebase. [1] [2] [3] [4] [5]

Documentation improvements:

  • Expanded docstrings for the processor to clarify the new arguments and usage patterns. [1] [2]

AzulaUNetProcessor.forward(x, x_noise=None) regressed after the
TemporalUNetBackbone refactor: None was forwarded into the base
class, which hit AttributeError on t.ndim. Substitute zeros of
shape (B, mod_features) to match what map() already does.

Also drop the duplicate include_global_cond/global_cond_channels
check; TemporalBackboneBase already raises.
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

Successfully merging this pull request may close these issues.

1 participant