From 6887b0b412f008cbb5473ec9b227c7788fb215c8 Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Tue, 24 Oct 2023 14:25:11 +0200 Subject: [PATCH] "Correct md5 hash reference in downloader script Updated the reference for the md5 hash in downloader.py. --- supervision/assets/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/assets/downloader.py b/supervision/assets/downloader.py index 6ce25b00..5e26e2de 100644 --- a/supervision/assets/downloader.py +++ b/supervision/assets/downloader.py @@ -79,7 +79,7 @@ def download_assets(asset_name: Union[VideoAssets, str]) -> str: copyfileobj(r_raw, f) elif path_exists(filename): - if not is_md5_hash_matching(filename, VIDEO_ASSETS[filename][2]): + if not is_md5_hash_matching(filename, VIDEO_ASSETS[filename][1]): print("File corrupted. Re-downloading... \n") os_remove(filename) download_assets(filename)