MCPcopy Index your code
hub / github.com/modelscope/DiffSynth-Studio / ContrastEditor

Class ContrastEditor

diffsynth/processors/PILEditor.py:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5class ContrastEditor(VideoProcessor):
6 def __init__(self, rate=1.5):
7 self.rate = rate
8
9 @staticmethod
10 def from_model_manager(model_manager, **kwargs):
11 return ContrastEditor(**kwargs)
12
13 def __call__(self, rendered_frames, **kwargs):
14 rendered_frames = [ImageEnhance.Contrast(i).enhance(self.rate) for i in rendered_frames]
15 return rendered_frames
16
17
18class SharpnessEditor(VideoProcessor):

Callers 2

from_model_managerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected