Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
0792fae0
Commit
0792fae0
authored
Jan 22, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix missing field for aesthetic embedding extension
parent
26215661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sd_disable_initialization.py
modules/sd_disable_initialization.py
+3
-1
No files found.
modules/sd_disable_initialization.py
View file @
0792fae0
...
...
@@ -41,7 +41,9 @@ class DisableInitialization:
return
self
.
create_model_and_transforms
(
*
args
,
pretrained
=
None
,
**
kwargs
)
def
CLIPTextModel_from_pretrained
(
pretrained_model_name_or_path
,
*
model_args
,
**
kwargs
):
return
self
.
CLIPTextModel_from_pretrained
(
None
,
*
model_args
,
config
=
pretrained_model_name_or_path
,
state_dict
=
{},
**
kwargs
)
res
=
self
.
CLIPTextModel_from_pretrained
(
None
,
*
model_args
,
config
=
pretrained_model_name_or_path
,
state_dict
=
{},
**
kwargs
)
res
.
name_or_path
=
pretrained_model_name_or_path
return
res
def
transformers_modeling_utils_load_pretrained_model
(
*
args
,
**
kwargs
):
args
=
args
[
0
:
3
]
+
(
'/'
,
)
+
args
[
4
:]
# resolved_archive_file; must set it to something to prevent what seems to be a bug
...
...
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