Skip to content

Commit

Permalink
Update import for changes to latest diffusers (deepspeedai#5065)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwyattii authored Feb 2, 2024
1 parent 567f97b commit a049370
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deepspeed/module_inject/containers/unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def __init__(self):
try:
import diffusers
self._orig_layer_class = diffusers.models.unet_2d_condition.UNet2DConditionModel
except AttributeError:
self._orig_layer_class = diffusers.models.unets.unet_2d_condition.UNet2DConditionModel
except ImportError:
self._orig_layer_class = None

Expand Down

0 comments on commit a049370

Please sign in to comment.