aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-08-04 14:38:16 +0800
committerKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-08-04 14:38:16 +0800
commit70e66e81e56f0bb187395878ee49705acbfab40c (patch)
treeb7745d409c7c9192eec0fe0722acf316f8342f79 /modules/processing.py
parentc134a480164bef017cd4b33fae57a31a86556beb (diff)
parentf0c1063a707a4a43823b0ed00e2a8eeb22a9ed0a (diff)
Merge branch 'dev' into efficient-vae-methods
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 099d86b7..aae39866 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,13 +573,6 @@ def decode_latent_batch(model, batch, target_device=None, check_for_nans=False):
return samples
-def decode_first_stage(model, x):
- from modules.sd_samplers_common import samples_to_images_tensor, approximation_indexes
- x = x.to(devices.dtype_vae)
- approx_index = approximation_indexes.get(opts.sd_vae_decode_method, 0)
- return samples_to_images_tensor(x, approx_index, model)
-
-
def get_fixed_seed(seed):
if seed is None or seed == '' or seed == -1:
return int(random.randrange(4294967294))