[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(assets): ✨ assets and assets downloader add-on for supervision[assets] #476

Merged
merged 26 commits into from
Oct 24, 2023

Conversation

onuralpszr
Copy link
Collaborator
@onuralpszr onuralpszr commented Oct 13, 2023

Description

Introduce download assets for testing detections/segmentations

Install Method

"pip install supervision[assets]" as a optional install. This will install requests and tqdm but supervision can be used without install it. No effects to rest of the supervision.

List any dependencies that are required for this change.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Docs

  • Docs updated? What were the changes:

@onuralpszr onuralpszr added documentation Improvements or additions to documentation enhancement New feature or request dependencies Pull requests that update a dependency file version: 0.16.0 Feature to be added in `0.16.0` release labels Oct 13, 2023
@onuralpszr onuralpszr added this to the version: 0.16.0 milestone Oct 13, 2023
@onuralpszr onuralpszr self-assigned this Oct 13, 2023
…ssets]

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
SkalskiP and others added 2 commits October 24, 2023 13:23
Renamed enum and variables to improve clarity for VideoAssets in asset_list.py. For instance, MILK_1 is updated to MILK_BOTTLED_PLANT and PEOPLE_WALKING_BW to PEOPLE_WALKING. Also, the VIDEO_ASSETS dictionary type hint updated to Dict. Additionally, a new method 'list' added to class VideoAssets that returns a list of all enum values.
@onuralpszr
Copy link
Collaborator Author

@SkalskiP should we add your classic pictures too ?

@SkalskiP
Copy link
Collaborator

Hi @onuralpszr 👋🏻! Let's try to merge this first. I'm facing a few issues that I'm trying to solve.

@onuralpszr
Copy link
Collaborator Author

Hi @onuralpszr 👋🏻! Let's try to merge this first. I'm facing a few issues that I'm trying to solve.

issue on this PR ?

SkalskiP and others added 16 commits October 24, 2023 14:04
…e' leading to missed video asset downloads. The reference has been corrected to use 'filename' for proper checking and downloading.
Updated 'asset_name' to 'filename' in downloader.py. The downloader was using the incorrect variable 'asset_name', causing failed video asset downloads. Correcting to 'filename' allows for accurate md5 check and download."
Updated the reference for the md5 hash in downloader.py.
The code for the downloader function in the supervision/assets/downloader.py file has been refactored and optimized. Package imports were cleaned up to remove unnecessary functions and the "path_exists" and "os_remove" functions were replaced with their pathlib equivalents to improve consistency.
The file asset_list.py has been renamed to list.py for better readability and simplicity. In the VideoAssets enumeration, additional information has been included. This includes specific details for each member of the enum, notably the filename of the related video and its URL.
The 'Response' imported module from 'requests' in downloader.py is not needed.
Updated the docstring comment's format inside the VideoAssets enum in supervision/assets/list.py. The update aligns with PEP 8 E501 error code that requires line too long (>80 characters).
Updated the docstring comment's format inside the VideoAssets enum in supervision/assets/list.py. The update aligns with PEP 8 E501 error code that requires line too long (>80 characters).

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
Expanded the documentation to include instructions on how to install and use the Supervision assets utility. Instructions include steps for performing the installation using pip, allowing users to easily download video files for their demos.
Updated the docstring comment's format inside the VideoAssets enum in supervision/assets/list.py. The update aligns with PEP 8 E501 error code that requires line too long (>80 characters).

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
@SkalskiP SkalskiP added version: 0.17.0 Feature to be added in `0.17.0` release and removed version: 0.16.0 Feature to be added in `0.16.0` release labels Oct 24, 2023
@onuralpszr onuralpszr merged commit 14dfb32 into develop Oct 24, 2023
6 checks passed
@SkalskiP SkalskiP deleted the asset-addon branch January 2, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request version: 0.17.0 Feature to be added in `0.17.0` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants