def save_model_info(model_info, save_path):
    """
    save model info to the target path
    """
    with open(os.path.join(save_path, 'model.info.json'), 'w') as f:
        json.dump(model_info, f)
    logger.info("Already save model info in {}".format(save_path))

    save model info to the target path
    
paddleseg/utils/save_info.py