def get_weights_path(url):
    """Get weights path from WEIGHTS_HOME, if not exists,
    download it from url.
    """
    url = parse_url(url)
    path, _ = get_path(url, WEIGHTS_HOME)
    return path
Get weights path from WEIGHTS_HOME, if not exists,
    download it from url.
    
ppdet/utils/download.py