mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-07 16:39:57 +00:00
i
This commit is contained in:
@@ -190,7 +190,7 @@ def apply_refiner(cfg_denoiser, x):
|
||||
unet_patcher = refiner.forge_objects.unet
|
||||
model_management.load_models_gpu(
|
||||
[unet_patcher],
|
||||
unet_patcher.memory_required([x.shape[0]] + list(x.shape[1:])) + inference_memory)
|
||||
unet_patcher.memory_required([x.shape[0]] * 2 + list(x.shape[1:])) + inference_memory)
|
||||
return True
|
||||
|
||||
|
||||
|
||||
@@ -70,3 +70,6 @@ def forge_sample(self, denoiser_params, cond_scale, cond_composition):
|
||||
|
||||
denoised = sampling_function(model, x, timestep, uncond, cond, cond_scale, model_options, seed)
|
||||
return denoised
|
||||
|
||||
|
||||
# def prepare_sampling(unet, )
|
||||
|
||||
Reference in New Issue
Block a user