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
6f23da60
Commit
6f23da60
authored
Jul 13, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix broken img2img
parent
76ebb175
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/sd_models_xl.py
modules/sd_models_xl.py
+4
-0
No files found.
modules/sd_models_xl.py
View file @
6f23da60
...
...
@@ -32,6 +32,9 @@ def apply_model(self: sgm.models.diffusion.DiffusionEngine, x, t, cond):
return
self
.
model
(
x
,
t
,
cond
)
def
get_first_stage_encoding
(
self
,
x
):
# SDXL's encode_first_stage does everything so get_first_stage_encoding is just there for compatibility
return
x
def
extend_sdxl
(
model
):
dtype
=
next
(
model
.
model
.
diffusion_model
.
parameters
())
.
dtype
model
.
model
.
diffusion_model
.
dtype
=
dtype
...
...
@@ -50,6 +53,7 @@ def extend_sdxl(model):
sgm
.
models
.
diffusion
.
DiffusionEngine
.
get_learned_conditioning
=
get_learned_conditioning
sgm
.
models
.
diffusion
.
DiffusionEngine
.
apply_model
=
apply_model
sgm
.
models
.
diffusion
.
DiffusionEngine
.
get_first_stage_encoding
=
get_first_stage_encoding
sgm
.
modules
.
attention
.
print
=
lambda
*
args
:
None
sgm
.
modules
.
diffusionmodules
.
model
.
print
=
lambda
*
args
:
None
...
...
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