def add_model_config(path):
    """ add model config path or file and update registry """
    if not isinstance(path, Path):
        path = Path(path)
    _MODEL_CONFIG_PATHS.append(path)
    _rescan_model_configs()
 add model config path or file and update registry 
diffsynth/extensions/ImageQualityMetric/open_clip/factory.py