mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-19 06:23:43 +00:00
15 lines
466 B
Python
15 lines
466 B
Python
from .base import VideoProcessor
|
|
|
|
|
|
class SequencialProcessor(VideoProcessor):
|
|
def __init__(self, processors=[]):
|
|
self.processors = processors
|
|
|
|
@staticmethod
|
|
def from_model_manager(model_manager, **kwargs):
|
|
return SequencialProcessor(**kwargs)
|
|
|
|
def __call__(self, rendered_frames, **kwargs):
|
|
for processor in self.processors:
|
|
rendered_frames = processor(rendered_frames, **kwargs)
|
|
return rendered_frames |