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 cca2627 commit 0383703
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mmagic/models/editors/fastcomposer/fastcomposer_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
CLIPVisionConfig, CLIPVisionModel)
from transformers.modeling_outputs import BaseModelOutputWithPooling

from mmagic.utils import try_import
from mmagic.utils import try_import

_expand_mask = try_import('transformers.models.clip.modeling_clip')
if _expand_mask is None:
_expand_mask = try_import('ransformers.models.clip.modeling_clip._prepare_4d_attention_mask')
if _expand_mask is None:
_expand_mask = try_import(
'ransformers.models.clip.modeling_clip._prepare_4d_attention_mask')


class FastComposerModel(nn.Module):
Expand Down

0 comments on commit 0383703

Please sign in to comment.