fix pag with batch count

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-12-22 17:38:51 -05:00
parent 6d3d23bddd
commit b15cf4adae
3 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ def set_free_init(method, iters, order, spatial, temporal):
def set_free_noise(frames):
context_length = 16
context_stride = 4
if frames >= context_length:
if frames >= context_length and hasattr(shared.sd_model, 'enable_free_noise'):
shared.log.debug(f'AnimateDiff free noise: frames={frames} context={context_length} stride={context_stride}')
shared.sd_model.enable_free_noise(context_length=context_length, context_stride=context_stride)