sdas / 3-bmab /sd_bmab /base /processorbase.py
dikdimon's picture
Upload 3-bmab using SD-Hub
c10aebf verified
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