import os import sys migc_path = os.path.dirname(os.path.abspath(__file__)) print(migc_path) if migc_path not in sys.path: sys.path.append(migc_path) from model_bbox.MIGC.inference_single_image import MIGC_Pipe def load_local_model(model_name, model_type): if model_name == "MIGC": pipe = MIGC_Pipe() else: raise NotImplementedError return pipe