Skip to content

Ccreate a class LatentDiffusion(torch.nn.Module) and then use composition #25

@DavidBert

Description

@DavidBert

Would it make sense to create a class LatentDiffusion(torch.nn.Module) and then use composition i.e. create a wrapper class ComposerLatentDiffusion(ComposerModel) that holds a reference to a LatentDiffusion and delegates forward etc. to it?

Reasoning: Try to cleanly separate Composer related parts from PRX pipeline logic.

Originally posted by @photoroman in #7 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions