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
23dafe6d
Unverified
Commit
23dafe6d
authored
Jan 25, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jan 25, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7151 from brkirch/fix-approx-nn
Fix Approx NN previews changing first generation result
parents
11485659
f64af77a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
processing.py
modules/processing.py
+5
-1
No files found.
modules/processing.py
View file @
23dafe6d
...
...
@@ -13,7 +13,7 @@ from skimage import exposure
from
typing
import
Any
,
Dict
,
List
,
Optional
import
modules.sd_hijack
from
modules
import
devices
,
prompt_parser
,
masking
,
sd_samplers
,
lowvram
,
generation_parameters_copypaste
,
script_callbacks
,
extra_networks
from
modules
import
devices
,
prompt_parser
,
masking
,
sd_samplers
,
lowvram
,
generation_parameters_copypaste
,
script_callbacks
,
extra_networks
,
sd_vae_approx
from
modules.sd_hijack
import
model_hijack
from
modules.shared
import
opts
,
cmd_opts
,
state
import
modules.shared
as
shared
...
...
@@ -568,6 +568,10 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
with
devices
.
autocast
():
p
.
init
(
p
.
all_prompts
,
p
.
all_seeds
,
p
.
all_subseeds
)
if
shared
.
opts
.
live_previews_enable
and
sd_samplers
.
approximation_indexes
.
get
(
shared
.
opts
.
show_progress_type
,
0
)
==
1
:
# preload approx nn model before sampling for a more deterministic result
sd_vae_approx
.
model
()
if
not
p
.
disable_extra_networks
:
extra_networks
.
activate
(
p
,
extra_network_data
)
...
...
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