utils/downloader
module¶
downloader
¶
Functions¶
download_google_drive_file
¶
Download a file from Google Drive using a file ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_id
|
str
|
Unique identifier of the file on Google Drive. |
required |
output_file
|
str
|
Local path where the downloaded file will be saved. |
required |
Returns:
Type | Description |
---|---|
None
|
|
Source code in color_correction/utils/downloader.py
downloader_model_yolov8
¶
Download the appropriate YOLOv8 model based on device specifications.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_gpu
|
bool
|
Flag indicating whether to use a GPU model; default is False. |
False
|
Returns:
Type | Description |
---|---|
str
|
The file path to the downloaded YOLOv8 model. |