The official Python SDK for FastLabel API, the Data Platform for AI
Project description
FastLabel Python SDK
Installation
$ pip install fastlabel
Usage
Configure API Key in environment variable.
export FASTLABEL_API_KEY="YOUR_API_KEY"
Initialize fastlabel client.
import fastlabel
client = fastlabel.Client()
Model Analysis
Upload Predictions
import fastlabel
from fastlabel.const import AnalysisType
# Initialize client
client = fastlabel.Client()
# Create predictions
const predictions = [
{
fileKey="sample1.jpg", # file name exists in project
labels=[
{
"value": "line_a", # class value exists in project
"points": [
{ "x": 10, "y": 10 },
{ "x": 20, "y": 20 },
]
},
{
"value": "line_b",
"points": [
{ "x": 30, "y": 30 },
{ "x": 40, "y": 40 },
]
}
]
}
]
# Upload predictions
client.upload_predictions(
project_id="project_id", # your fastlabel project id
analysis_type=AnalysisType.line, # annotation type to be analyze
threshold=20, # IoU percentage/pixel to analyze labels. (Ex: 0 - 100)
predictions=predictions
)
API Docs
Check this for further information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for fastlabel-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 753493f3bff87399732f13214770b38766322f8141c988f1b2a938379d742398 |
|
MD5 | ea48d70f36a70c9b6361ea239cb0860a |
|
BLAKE2b-256 | 7c278036c647717d9b7afbc1945e25b8157c8d6216ef1f5d7dccbdbb741636c9 |