-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Classifier-free guidance added to the Inferers #8448
Copy link
Copy link
Labels
GenerativeModelsIssues relating to generative modelsIssues relating to generative models
Description
Diffusion inferers currently do not support classifier-free guidance; the classifier-free guidance tutorial (https://github.com/Project-MONAI/tutorials/tree/main/generation/classifier_free_guidance) has to implement the sample method outside of the inferer.
Describe the solution you'd like
Perhaps, there could be a classifier-free guidance attribute to the inferer that branches the sample logic so that, if not None, the sampling method samples an unconditioned / conditioned output for every t in the for loop as in the tutorial. This would not alter the behaviour if the attribute is defaulted to None.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
GenerativeModelsIssues relating to generative modelsIssues relating to generative models