The script train_dreambooth.py contains the following erroneous import:
from diffusers.utils import MHE_db as MHE
MHE isn't implemented in the diffusers library, and it is actually your own loss function.
The actual MHE_db is located in oft_utils, right inside oft-db.
Changing that line to:
from oft_utils import MHE_db as MHE
as it is done in some other of your scripts solves the issue.
The script train_dreambooth.py contains the following erroneous import:
MHE isn't implemented in the diffusers library, and it is actually your own loss function. The actual MHE_db is located in oft_utils, right inside oft-db.
Changing that line to:
as it is done in some other of your scripts solves the issue.