Use of unsafe yaml load. Allows instantiation of arbitrary objects. Consider yaml.safe_load().
6 from PIL import ImageColor
7
8 config_path = os.path.join(os.path.dirname(__file__), "../config.yaml")
9 if os.path.exists(config_path):
10 config = yaml.load(open(config_path, "r"), Loader=yaml.FullLoader)
11 else:
12 raise Exception("config.yaml file is neccessary, plz recreate the config file by downloading it from https://github.com/Fannovel16/ComfyUI-Video-Matting")
13 CKPTS_PATH = os.path.join(os.path.join(os.path.dirname(__file__), '..'), config["ckpts_path"])