-
Notifications
You must be signed in to change notification settings - Fork 2
Input Gathering Tasks
Don Kackman edited this page Jan 5, 2025
·
4 revisions
Tasks that collect inputs to feed into workflows
- Description: Gathers images from local files and/or URLs.
-
Arguments:
-
glob(optional): A pattern for matching local image files (e.g.,"images/*.png"). -
urls: A list of URLs to download images from.
-
- Returns: A list of loaded images.
-
Raises:
-
ValueError: If no images are found.
-
- Description: Gathers videos from local files and/or URLs.
-
Arguments:
-
glob(optional): A pattern for matching local video files (e.g.,"videos/*.mp4"). -
urls: A list of URLs to download videos from.
-
- Returns: A list of loaded videos.
-
Raises:
-
ValueError: If no videos are found.
-
- Description: Gathers input arguments for passing to the next task.
-
Arguments:
-
kwargs: A dictionary of input arguments.
-
- Returns: The input arguments unchanged.
- The
gather_imagesandgather_videosfunctions utilize logging to provide detailed information about the loading process, including any errors encountered. - Ensure that the
globpatterns and URLs provided are correct and accessible to avoid errors during the gathering process. - The
gather_inputsfunction is a utility to pass arguments forward without modification, useful in task pipelines.