Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
beeec2b5
Commit
beeec2b5
authored
Jan 14, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jan 14, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6728 from bbc-mc/exclude_clip_index_from_merge_target
Exclude clip index from merge
parents
86359535
5f868523
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/extras.py
modules/extras.py
+10
-0
No files found.
modules/extras.py
View file @
beeec2b5
...
...
@@ -326,8 +326,14 @@ def run_modelmerger(primary_model_name, secondary_model_name, tertiary_model_nam
print
(
"Merging..."
)
chckpoint_dict_skip_on_merge
=
[
"cond_stage_model.transformer.text_model.embeddings.position_ids"
]
for
key
in
tqdm
.
tqdm
(
theta_0
.
keys
()):
if
'model'
in
key
and
key
in
theta_1
:
if
key
in
chckpoint_dict_skip_on_merge
:
continue
a
=
theta_0
[
key
]
b
=
theta_1
[
key
]
...
...
@@ -352,6 +358,10 @@ def run_modelmerger(primary_model_name, secondary_model_name, tertiary_model_nam
# I believe this part should be discarded, but I'll leave it for now until I am sure
for
key
in
theta_1
.
keys
():
if
'model'
in
key
and
key
not
in
theta_0
:
if
key
in
chckpoint_dict_skip_on_merge
:
continue
theta_0
[
key
]
=
theta_1
[
key
]
if
save_as_half
:
theta_0
[
key
]
=
theta_0
[
key
]
.
half
()
...
...
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