This commit is contained in:
lllyasviel
2024-01-27 21:46:33 -08:00
parent 0db0e3ed88
commit e8175e9a90
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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, )