Skip to content

Allow gradient calculation in DiffusionPipeline.__call__  #529

@JoaoLages

Description

@JoaoLages

Nowadays the gradient calculation is disabled when calling the DiffusionPipeline object (example in here).
IMO, this makes the framework less flexible to work with some use cases. For example, this framework had to copy the whole __call__ method just to be able to get the gradients attached to the output image tensor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions