diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-08 20:26:48 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-08 20:26:48 +0000 |
commit | 050a6a798cec90ae2f881c2ddd3f0221e69907dc (patch) | |
tree | 459d670bc5d4f3f2539d022f3842b1bafde3877d /modules/processing.py | |
parent | 432782163ae53e605470bcefc9a6f796c4556912 (diff) | |
download | stable-diffusion-webui-gfx803-050a6a798cec90ae2f881c2ddd3f0221e69907dc.tar.gz stable-diffusion-webui-gfx803-050a6a798cec90ae2f881c2ddd3f0221e69907dc.tar.bz2 stable-diffusion-webui-gfx803-050a6a798cec90ae2f881c2ddd3f0221e69907dc.zip |
support loading .yaml config with same name as model
support EMA weights in processing (????)
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 31220881..4fea6d56 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -347,7 +347,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: infotexts = []
output_images = []
- with torch.no_grad():
+ with torch.no_grad(), p.sd_model.ema_scope():
with devices.autocast():
p.init(all_prompts, all_seeds, all_subseeds)
|