mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
fix pag with batch count
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user