Draft of a simple activation map exporter for diffusers pipelines.
Currently only supports torch models and the unet module in pipelines.
TODO:
- Add a simple example
- Polish the callback and exporter
- Add support for other models, like these in
transformers, etc. (especially theCLIPmodel for text prompt encoder) - Add a proper
ActivationMapclass for managing captured activations - Add a hook in the pipeline to recover original image size and restore it for activation maps