mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-06-13 21:01:06 +08:00
i
This commit is contained in:
parent
0db0e3ed88
commit
e8175e9a90
@ -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, )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user