IOPaint/lama_cleaner/plugins/base_plugin.py

16 lines
280 B
Python
Raw Normal View History

2023-03-26 06:37:58 +02:00
from loguru import logger
class BasePlugin:
def __init__(self):
err_msg = self.check_dep()
if err_msg:
logger.error(err_msg)
exit(-1)
def __call__(self, rgb_np_img, files, form):
...
def check_dep(self):
...