diff --git a/ppocr/utils/network.py b/ppocr/utils/network.py index fd2d8a64ba..71d050c8a3 100644 --- a/ppocr/utils/network.py +++ b/ppocr/utils/network.py @@ -25,6 +25,9 @@ def download_with_progressbar(url, save_path): logger = get_logger() + if save_path and os.path.exists(save_path): + logger.info(f"Path {save_path} already exists. Skipping...") + return response = requests.get(url, stream=True) if response.status_code == 200: total_size_in_bytes = int(response.headers.get("content-length", 1))