Roboflow
tensoris.lib.integrations.roboflow ¶
Roboflow Computer Vision Dataset Integration Helper.
Classes¶
RoboflowIntegration ¶
Roboflow Helper for downloading computer vision datasets in YOLO, COCO, or Pascal VOC formats.
References
Roboflow Python SDK Documentation: https://docs.roboflow.com/
Source code in src/tensoris/lib/integrations/roboflow.py
Attributes¶
Methods:¶
__init__ ¶
Initialize Roboflow client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key
|
str | None
|
Optional Roboflow API key (defaults to ROBOFLOW_API_KEY env var). |
None
|
Source code in src/tensoris/lib/integrations/roboflow.py
download_dataset ¶
download_dataset(
workspace,
project_id,
version,
model_format="yolov8",
output_dir="inputs/datasets",
)
Download dataset version from Roboflow Universe or Workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
Roboflow workspace identifier. |
required |
project_id
|
str
|
Roboflow project ID. |
required |
version
|
int
|
Dataset version number integer. |
required |
model_format
|
str
|
Export format ('yolov8', 'coco', 'pascal_voc', 'tfrecord'). |
'yolov8'
|
output_dir
|
str | Path
|
Destination directory. |
'inputs/datasets'
|
Returns:
| Type | Description |
|---|---|
Any
|
Roboflow dataset download object containing dataset location. |