Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
PhotoMaker-base
Commits
e5b728c2
Unverified
Commit
e5b728c2
authored
Jul 24, 2024
by
M-A
Committed by
GitHub
Jul 24, 2024
Browse files
Fix import cycle (#153)
parent
8f1a95d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
photomaker/model_v2.py
photomaker/model_v2.py
+2
-2
No files found.
photomaker/model_v2.py
View file @
e5b728c2
...
...
@@ -6,7 +6,7 @@ import torch.nn as nn
from
transformers.models.clip.modeling_clip
import
CLIPVisionModelWithProjection
from
transformers.models.clip.configuration_clip
import
CLIPVisionConfig
from
.
import
FacePerceiverResampler
from
.
resampler
import
FacePerceiverResampler
VISION_CONFIG_DICT
=
{
"hidden_size"
:
1024
,
...
...
@@ -153,4 +153,4 @@ class PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken(CLIPVisionModelWithProjecti
return
updated_prompt_embeds
if
__name__
==
"__main__"
:
PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken
()
\ No newline at end of file
PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment