From 7715ef2a17c84e48612de2fb861e37aac724fa5d Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Tue, 24 Oct 2023 14:16:46 +0200 Subject: [PATCH] The downloader was incorrectly using 'asset_name' instead of 'filename' leading to missed video asset downloads. The reference has been corrected to use 'filename' for proper checking and downloading. --- 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 a501c468..6ef53c4a 100644 --- a/supervision/assets/downloader.py +++ b/supervision/assets/downloader.py @@ -53,7 +53,7 @@ def download_assets(asset_name: Union[VideoAssets, str]) -> str: if not path_exists(filename) and filename in VIDEO_ASSETS: print(f"Downloading {filename} assets \n") res: Response = get( - VIDEO_ASSETS[asset_name][0], stream=True, allow_redirects=True + VIDEO_ASSETS[filename][0], stream=True, allow_redirects=True ) if res.status_code != 200: res.raise_for_status()