基本上要将项目排队进行培训,您必须使用以下 API:
POST {Endpoint}/customvision/v3.0/training/projects/{projectId}/train?trainingType={trainingType}&reservedBudgetInHours={reservedBudgetInHours}&forceTrain={forceTrain}¬ificationEmailAddress={notificationEmailAddress}
如果您想提供计算时间并且必须提供 reservedBudgetInHours 数量以用于计算时间,则 trainingType 应该是高级的。
trainingType string The type of training to use to train the project (default: Regular).
reservedBudgetInHours The number of hours reserved as budget for training (if applicable).
附加参考:
https://docs.microsoft.com/en-us/rest/api/cognitiveservices/customvisiontraining/trainproject/trainproject
如果您正在寻找一种使用 SDK 的方法,那么您必须使用以下方法:
train_project(project_id, training_type=None, reserved_budget_in_hours=0, force_train=False, notification_email_address=None, custom_headers=None, raw=False, **operation_config)
参考:
https://docs.microsoft.com/en-us/python/api/azure-cognitiveservices-vision-customvision/azure.cognitiveservices.vision.customvision.training.custom_vision_training_client.customvisiontrainingclient?view=azure-python#train-project- project-id--training-type-none--reserved-budget-in-hours-0--force-train-false--notification-email-address-none--custom-headers-none--raw-false- ---操作配置-
希望能帮助到你。