Active Learning
समीक्षा और पुनः प्रशिक्षण के माध्यम से अपने model को लगातार बेहतर बनाने के लिए production inference data एकत्र करें।
के बारे में
Active Learning आपके परिनियोजित मॉडलों से प्रोडक्शन डेटा एकत्र करता है और उसे समीक्षा तथा पुनः प्रशिक्षण के लिए उपलब्ध कराता है। जब आपका मॉडल प्रोडक्शन में inference चलाता है, तो Active Learning आपके द्वारा कॉन्फ़िगर किए गए नियमों (जैसे कम-विश्वास वाली भविष्यवाणियाँ या विशिष्ट वर्ग) के आधार पर स्वतः छवियों का नमूना लेता है और उन्हें मानवीय समीक्षा के लिए कतार में रखता है।
वेब ऐप
Active Learning सक्षम करें
अपना Project खोलें और बाएँ साइडबार में "Active Learning" चुनें।
Active Learning को चालू करें।
Active Learning द्वारा डेटा एकत्र करने के लिए आपके Project में एक प्रशिक्षित मॉडल और एक सक्रिय क्लाउड परिनियोजन होना चाहिए।
संग्रह नियम कॉन्फ़िगर करें
Active Learning के कॉन्फ़िगरेशन की दो श्रेणियाँ हैं: संग्रह सीमाएँ और शर्तें।
संग्रह सीमाएँ
नियंत्रित करें कि Active Learning कितना डेटा एकत्र करता है:
सैंपलिंग दर: इन्फ़रेंस का वह प्रतिशत जिसे सैंपल करना है (उदा.: 0.5%)
प्रति-मिनट, प्रति-घंटा और दैनिक छवि सीमाएँ
संपीड़न स्तर और अधिकतम छवि आयाम
बैच पुनः-निर्माण आवृत्ति (दैनिक, साप्ताहिक, मासिक, या कभी नहीं)
क्या एकत्रित छवियों के साथ मॉडल पूर्वानुमान बनाए रखना है
इन सेटिंग्स को संपादित करने के लिए, Collection Limits अनुभाग में "Edit" पर क्लिक करें और कॉन्फ़िगरेशन मोडल में मान अपडेट करें।
शर्तें
शर्तें फ़िल्टर करती हैं कि कौन-सी छवियाँ एकत्र की जाएँ। आप अपने मॉडल प्रकार के आधार पर नियम परिभाषित कर सकते हैं:
विश्वास-सीमा: (उदा.: वे छवियाँ एकत्र करें जिनमें confidence 60% से कम हो)
रुचि वाले विशिष्ट वर्ग
डिटेक्शन गिनती आवश्यकताएँ
शर्तें सेट करने के लिए, Conditions अनुभाग में "Edit" पर क्लिक करें।
एजेंट से Active Learning प्रबंधित करें
आप Active Learning को यहाँ भी प्रबंधित कर सकते हैं: Roboflow Agent. एक प्रोजेक्ट टैब खोलें, "Settings" चुनें, और इस पेज जैसे ही टॉगल, Collection Limits और Conditions का उपयोग करें। इसके लिए Manage Workflows, Publish Workflows, और Dataset Active Learning अनुमतियाँ चाहिए।
एकत्रित छवियों की समीक्षा करें
जैसे-जैसे Active Learning छवियाँ एकत्र करता है, वे Active Learning पेज के Images अनुभाग में दिखाई देती हैं। पेज समीक्षा के लिए तैयार छवियों की संख्या और वर्तमान में समीक्षा की जा रही छवियों की संख्या दिखाता है।
समीक्षा शुरू करने के लिए:
रिव्यू कतार खोलने के लिए "Review Images" पर क्लिक करें।
बैचों को स्थिति (Not Started, In Progress) के अनुसार ब्राउज़ करें और उन्हें निर्माण तिथि, छवि संख्या, या प्रगति के अनुसार क्रमबद्ध करें।
समीक्षा शुरू करने के लिए कोई बैच चुनें।
समीक्षकों को असाइन करें
आप समीक्षा का काम अपनी टीम में बाँट सकते हैं:
रिव्यू कतार खोलें और एक बैच चुनें।
समीक्षकों को असाइन करने के लिए क्लिक करें।
टीम सदस्यों को चुनें, असाइन की जाने वाली छवियों की संख्या निर्धारित करें, और वैकल्पिक रूप से समीक्षा निर्देश जोड़ें।
प्रत्येक समीक्षक को मिलने वाली छवियों को यादृच्छिक बनाने के लिए "Shuffle Images" चालू करें।
जब छवियाँ उन्हें असाइन की जाती हैं, तो समीक्षकों को सूचना दी जाती है। आप किसी भी समय छवियों को किसी अन्य समीक्षक को पुनः असाइन कर सकते हैं।
Active Learning आपके प्रशिक्षण लूप में कैसे फिट होता है
सामान्य वर्कफ़्लो:
एक मॉडल को प्रशिक्षित करें और परिनियोजित करें।
अपने उपयोग-केस के अनुसार समायोजित शर्तों के साथ Active Learning सक्षम करें।
आपकी शर्तों से मेल खाने वाला प्रोडक्शन डेटा एकत्र किया जाता है और कतार में रखा जाता है।
समीक्षक एकत्रित छवियों को लेबल करते हैं।
समीक्षित छवियों को अपने डेटासेट में जोड़ें और अपने मॉडल को बेहतर बनाने के लिए पुनः प्रशिक्षण करें।
इससे एक फीडबैक लूप बनता है, जहाँ आपका मॉडल उन मामलों में बेहतर होता है जिनमें उसे सबसे अधिक कठिनाई होती है।
HTTP API
Active Learning को चालू या बंद करने, संग्रह नियम अपडेट करने, और रिव्यू कतार में छवियाँ सूचीबद्ध करने के लिए HTTP API का उपयोग करें। Active Learning Project के base Workflow के भीतर चलता है, इसलिए प्रत्येक परिवर्तन उस Workflow के एक नए संस्करण को सहेजता और परिनियोजित करता है।
Active Learning कॉन्फ़िगरेशन प्राप्त करें
Returns the project's base Workflow, its model, and its Active Learning settings. Requires project:read and the Active Learning permission in the workspace.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Successful response.
The request is invalid.
Authentication is missing or invalid.
You do not have the Active Learning permission in this workspace.
The resource does not exist or is not accessible.
The request rate is too high.
GET /{workspace}/{project}/deploy/active-learning HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"project": {
"id": "abc123",
"url": "my-project",
"name": "My Project",
"owner": "my-workspace-id",
"type": "object-detection",
"classes": [
"cat",
"dog"
],
"multilabel": false
},
"workflow": {
"id": "wf_xyz",
"name": "My Project Base Workflow",
"url": "my-project-base-workflow",
"workspaceUrl": "my-workspace",
"inferencePath": "/infer/workflows/my-workspace/my-project-base-workflow"
},
"model": {
"id": "rfdetr-medium",
"kind": "pretrained",
"displayName": "RF-DETR Medium",
"modelId": "rfdetr-medium"
},
"deployability": {
"status": "deployable",
"modelWasConfigured": false,
"selectedModelId": null,
"selectionReason": null
},
"activeLearning": {
"enabled": false,
"collectionLimits": {
"dataPercentage": 100,
"minutelyUsageLimit": 10,
"hourlyUsageLimit": 100,
"dailyUsageLimit": 1000,
"labelingBatchesRecreationFrequency": "daily",
"usageQuotaName": "upload_quota_active_learning",
"imageCompressionLevel": 95,
"maxImageHeight": 1080,
"maxImageWidth": 1920,
"persistPredictions": true
},
"filters": []
}
}Active Learning सक्षम करें
यदि Project में कोई मॉडल सेट नहीं है, तो सेवा पहले एक चुनती है।
Turns on image collection in the project's base Workflow. If no model is set, picks one first. Calling it again changes nothing. Requires project:update.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Successful response.
The base Workflow is not deployable, or no model could be set.
Authentication is missing or invalid.
You do not have the Active Learning permission in this workspace.
The resource does not exist or is not accessible.
The request rate is too high.
POST /{workspace}/{project}/deploy/active-learning/enable HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"project": {
"id": "abc123",
"url": "my-project",
"name": "My Project",
"owner": "my-workspace-id",
"type": "object-detection",
"classes": [
"cat",
"dog"
],
"multilabel": false
},
"workflow": {
"id": "wf_xyz",
"name": "My Project Base Workflow",
"url": "my-project-base-workflow",
"workspaceUrl": "my-workspace",
"inferencePath": "/infer/workflows/my-workspace/my-project-base-workflow"
},
"model": {
"id": "rfdetr-medium",
"kind": "pretrained",
"displayName": "RF-DETR Medium",
"modelId": "rfdetr-medium"
},
"deployability": {
"status": "deployable",
"modelWasConfigured": false,
"selectedModelId": null,
"selectionReason": null
},
"activeLearning": {
"enabled": false,
"collectionLimits": {
"dataPercentage": 100,
"minutelyUsageLimit": 10,
"hourlyUsageLimit": 100,
"dailyUsageLimit": 1000,
"labelingBatchesRecreationFrequency": "daily",
"usageQuotaName": "upload_quota_active_learning",
"imageCompressionLevel": 95,
"maxImageHeight": 1080,
"maxImageWidth": 1920,
"persistPredictions": true
},
"filters": []
}
}Active Learning अक्षम करें
Turns off image collection. Your collection limits and filters are kept. Requires project:update.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Successful response.
The request is invalid.
Authentication is missing or invalid.
You do not have the Active Learning permission in this workspace.
The resource does not exist or is not accessible.
The request rate is too high.
POST /{workspace}/{project}/deploy/active-learning/disable HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"project": {
"id": "abc123",
"url": "my-project",
"name": "My Project",
"owner": "my-workspace-id",
"type": "object-detection",
"classes": [
"cat",
"dog"
],
"multilabel": false
},
"workflow": {
"id": "wf_xyz",
"name": "My Project Base Workflow",
"url": "my-project-base-workflow",
"workspaceUrl": "my-workspace",
"inferencePath": "/infer/workflows/my-workspace/my-project-base-workflow"
},
"model": {
"id": "rfdetr-medium",
"kind": "pretrained",
"displayName": "RF-DETR Medium",
"modelId": "rfdetr-medium"
},
"deployability": {
"status": "deployable",
"modelWasConfigured": false,
"selectedModelId": null,
"selectionReason": null
},
"activeLearning": {
"enabled": false,
"collectionLimits": {
"dataPercentage": 100,
"minutelyUsageLimit": 10,
"hourlyUsageLimit": 100,
"dailyUsageLimit": 1000,
"labelingBatchesRecreationFrequency": "daily",
"usageQuotaName": "upload_quota_active_learning",
"imageCompressionLevel": 95,
"maxImageHeight": 1080,
"maxImageWidth": 1920,
"persistPredictions": true
},
"filters": []
}
}Active Learning कॉन्फ़िगरेशन अपडेट करें
नए Project पर इसे कॉन्फ़िगर करने से पहले Active Learning सक्षम करें। पूरा भेजें collectionLimits ऑब्जेक्ट हर बार: जिन वैकल्पिक फ़ील्ड्स को आप छोड़ते हैं, उन्हें हटा दिया जाता है।
Saves collection limits and, when you send them, filters. Enable Active Learning on the project first: the call fails when collection was never turned on. It does not turn collection on or off. Requires project:update.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Successful response.
collectionLimits or filters are invalid (the body has error and details), or a detectionSize filter was sent for a project that is not object detection or instance segmentation.
Authentication is missing or invalid.
You do not have the Active Learning permission in this workspace.
The resource does not exist or is not accessible.
The request rate is too high.
POST /{workspace}/{project}/deploy/active-learning/configuration HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 472
{
"collectionLimits": {
"dataPercentage": 50,
"minutelyUsageLimit": 10,
"hourlyUsageLimit": 100,
"dailyUsageLimit": 1000,
"labelingBatchesRecreationFrequency": "daily",
"usageQuotaName": "default",
"imageCompressionLevel": 85,
"imageName": "camera-1",
"maxImageHeight": 1080,
"maxImageWidth": 1920,
"registrationTags": [
"production"
],
"persistPredictions": true
},
"filters": [
{
"type": "classConfidence",
"classFilterMode": "any",
"classes": [
"cat"
],
"confidenceLowerBound": 0.2,
"confidenceUpperBound": 0.8
}
]
}{
"project": {
"id": "abc123",
"url": "my-project",
"name": "My Project",
"owner": "my-workspace-id",
"type": "object-detection",
"classes": [
"cat",
"dog"
],
"multilabel": false
},
"workflow": {
"id": "wf_xyz",
"name": "My Project Base Workflow",
"url": "my-project-base-workflow",
"workspaceUrl": "my-workspace",
"inferencePath": "/infer/workflows/my-workspace/my-project-base-workflow"
},
"model": {
"id": "rfdetr-medium",
"kind": "pretrained",
"displayName": "RF-DETR Medium",
"modelId": "rfdetr-medium"
},
"deployability": {
"status": "deployable",
"modelWasConfigured": false,
"selectedModelId": null,
"selectionReason": null
},
"activeLearning": {
"enabled": false,
"collectionLimits": {
"dataPercentage": 100,
"minutelyUsageLimit": 10,
"hourlyUsageLimit": 100,
"dailyUsageLimit": 1000,
"labelingBatchesRecreationFrequency": "daily",
"usageQuotaName": "upload_quota_active_learning",
"imageCompressionLevel": 95,
"maxImageHeight": 1080,
"maxImageWidth": 1920,
"persistPredictions": true
},
"filters": []
}
}Active Learning छवियाँ सूचीबद्ध करें
Lists the review queue: batches of collected images and the annotation jobs made from them, with totals. Requires project:read.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Page number, from 1.
1Items per page.
10Text matched against queue names, types, IDs, reviewers, and labelers.
Reviewer email, or unassigned for items with no reviewer.
not_started for batches, in_progress for annotation jobs.
allPossible values: createdPossible values: descPossible values: Successful response.
The request is invalid.
Authentication is missing or invalid.
You do not have the Active Learning permission in this workspace.
The resource does not exist or is not accessible.
The request rate is too high.
GET /{workspace}/{project}/deploy/active-learning/images HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"activeLearningImages": {
"totalImagesReadyForReview": 0,
"totalImagesBeingReviewed": 0,
"batches": [],
"annotationJobs": [],
"latestBatch": null,
"latestAnnotationJob": null,
"sampleImages": [],
"reviewQueueCounts": {
"all": 0,
"notStarted": 0,
"inProgress": 0
},
"reviewQueuePage": {
"page": 1,
"pageSize": 20,
"totalItems": 0,
"totalPages": 1,
"items": [],
"search": "",
"status": "all",
"sortBy": "created",
"sortDirection": "desc",
"reviewer": ""
}
}
}Python SDK
Workspace.active_learning() यह किसी डायरेक्टरी की हर छवि पर inference चलाता है और शर्तों के आधार पर छवि (और उसकी prediction) को गंतव्य Project में अपलोड करता है। यह SDK का अंतर्निहित active-learning लूप है: अपने मौजूदा मॉडल को यह तय करने दें कि किसे लेबल करना चाहिए, और कच्ची फुटेज से एक लेबलिंग कतार तैयार करें।
इसी पैटर्न को बेहतर रूप से इस रूप में बनाया जाता है: Workflow प्रोडक्शन उपयोग के लिए, लेकिन active_learning() यह "मेरे पास फ़्रेमों का एक फ़ोल्डर है" से "Project में जाने वाला लेबल किया गया डेटा" तक पहुँचने का सबसे तेज़ रास्ता है।
मूल उपयोग
पैरामीटर
raw_data_location(str) - इनपुट छवियों की डायरेक्टरी।raw_data_extension(str) - मिलाने के लिए छवि एक्सटेंशन (उदा..jpg,.png).inference_endpoint(list,[प्रोजेक्ट, संस्करण]) - ट्रायेज़ चरण के रूप में चलाने वाला मॉडल।upload_destination(str) - योग्य छवियों और predictions को अपलोड करने के लिए project id। अक्सर वही Project होता है जो मॉडल है।conditionals(dict) - वे नियम जो निर्धारित करते हैं कि कोई छवि अपलोड होगी या नहीं। सामान्य keys:confidence_interval-[न्यूनतम, अधिकतम]; केवल वही छवियाँ आगे भेजी जाती हैं जिनके detection इस सीमा में आते हैं।required_class_variance_count- आवश्यक न्यूनतम भिन्न वर्ग।minimum_size_requirement/maximum_size_requirement- पिक्सल में डिटेक्शन क्षेत्र के आधार पर फ़िल्टर करें।required_class_count- कुल detections.
use_localhost(bool, डिफ़ॉल्टFalse) - जबTrue, तो self-hosted Roboflow Inference server पर hosted inference के बजाय अनुरोध भेजें।local_server(str) - स्थानीय inference server के लिए base URL। डिफ़ॉल्ट:http://localhost:9001/.
इसे क्यों उपयोग करें
सामान्य लूप:
एक छोटे लेबल किए गए सेट पर v1 मॉडल को प्रशिक्षित करें।
इशारा करें
active_learning()अनलेबल किए गए प्रोडक्शन डेटा वाले फ़ोल्डर की ओर।केवल वही छवियाँ आगे भेजें जहाँ मॉडल अनिश्चित है (कम confidence) या दुर्लभ वर्ग देखता है।
उन्हें Roboflow वेब ऐप में लेबल करें।
नए उदाहरणों के साथ v2 तैयार करें और पुनः प्रशिक्षण करें।
ट्यूनिंग conditionals यही इसे "सब कुछ अपलोड करें" से एक वास्तविक ट्रायेज़ नीति में बदलता है।
बड़े पाइपलाइन
यदि आपका इनपुट वीडियो स्ट्रीम है, आपका मॉडल Workflow के पीछे है, या आप batching और retries चाहते हैं, तो इसका समकक्ष इस रूप में बनाएँ: Workflow. active_learning() यह एक स्थिर फ़ोल्डर से एक बार की bootstrapping passes के लिए सबसे अच्छा है।
MCP Server
अपने AI agent को इससे जोड़ें: MCP Server और यह इन टूल्स के साथ Active Learning सेट अप कर सकता है:
project_deployment_enable_active_learning
किसी Project Deployment के लिए Active Learning सक्षम करें।
project_deployment_configure_active_learning
कॉन्फ़िगर करें कि कोई deployment Active Learning डेटा कैसे एकत्र करता है।
project_deployment_disable_active_learning
Active Learning संग्रह रोकें।
project_deployment_list_review_queues
प्रोडक्शन inference द्वारा भरी गई review queues की सूची बनाएं।
अंतिम अपडेट
क्या यह उपयोगी था?