File size: 457 Bytes
c10aebf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from PIL import Image
from sd_bmab.base.context import Context


class ProcessorBase(object):
	def __init__(self) -> None:
		super().__init__()

	def use_controlnet(self, context: Context):
		return False

	def preprocess(self, context: Context, image: Image):
		pass

	def process(self, context: Context, image: Image):
		pass

	def postprocess(self, context: Context, image: Image):
		pass

	def finalprocess(self, context: Context, image: Image):
		pass