Skip to content

Feature extraction from Unet of Stable Diffusion #4336

@danushkv

Description

@danushkv

Thanks to the HF community for this wonderful library. I'm currently working on a project where we are interested in looking into the intermediate features(feature maps from different layers) of the Unet in Stable diffusion model.

The transformers library has the option of output_hidden_states to extract the intermediate features from a transformer model. Similarly, is there an option to do so from the StableDiffusionPipeline ? I couldn't find an option for this, but please correct me if I'm wrong here.

If there's isn't an option, we would like to have one. I would be interested in working on this as a project also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues that haven't received updates

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions