diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-04 06:09:09 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-04 06:13:46 +0000 |
commit | f0c1063a707a4a43823b0ed00e2a8eeb22a9ed0a (patch) | |
tree | 34a1afac76c34a13adf346850e7e97f91254494f /modules/processing.py | |
parent | 09165916fa2b16d8f1d622ef1743e37565cc39f3 (diff) | |
download | stable-diffusion-webui-gfx803-f0c1063a707a4a43823b0ed00e2a8eeb22a9ed0a.tar.gz stable-diffusion-webui-gfx803-f0c1063a707a4a43823b0ed00e2a8eeb22a9ed0a.tar.bz2 stable-diffusion-webui-gfx803-f0c1063a707a4a43823b0ed00e2a8eeb22a9ed0a.zip |
resolve some of circular import issues for kohaku
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/processing.py b/modules/processing.py index 8f34c8b4..8086a2b0 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -30,6 +30,7 @@ from ldm.models.diffusion.ddpm import LatentDepth2ImageDiffusion from einops import repeat, rearrange
from blendmodes.blend import blendLayers, BlendType
+decode_first_stage = sd_samplers_common.decode_first_stage
# some of those options should not be changed at all because they would break the model, so I removed them from options.
opt_C = 4
@@ -572,12 +573,6 @@ def decode_latent_batch(model, batch, target_device=None, check_for_nans=False): return samples
-def decode_first_stage(model, x):
- x = model.decode_first_stage(x.to(devices.dtype_vae))
-
- return x
-
-
def get_fixed_seed(seed):
if seed is None or seed == '' or seed == -1:
return int(random.randrange(4294967294))
|