from app.core.sam3.preprocess import SAM3 class Preprocess: def __init__(self): from app.main import PREPROCESS if PREPROCESS == "sam3": print("使用 SAM3 进行预处理判断") self.preprocess = SAM3() def getPreprocess(self): return self.preprocess