Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyh1900 committed Nov 10, 2023
1 parent 889fc96 commit f1d76cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mmagic/models/editors/fastcomposer/fastcomposer_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
from transformers import (CLIPModel, CLIPPreTrainedModel, CLIPTextModel,
CLIPVisionConfig, CLIPVisionModel)
from transformers.modeling_outputs import BaseModelOutputWithPooling

try:
from transformers.models.clip.modeling_clip import _expand_mask
except:
from transformers.models.clip.modeling_clip import _prepare_4d_attention_mask as _expand_mask
from transformers.models.clip.modeling_clip import \
_prepare_4d_attention_mask as _expand_mask


class FastComposerModel(nn.Module):
"""FastComposerModel is based on the StableDiffusion Model and the Clip
Expand Down

0 comments on commit f1d76cc

Please sign in to comment.